Skip to content

Instantly share code, notes, and snippets.

@dynax60
Created December 3, 2010 14:08
Show Gist options
  • Save dynax60/726990 to your computer and use it in GitHub Desktop.
Save dynax60/726990 to your computer and use it in GitHub Desktop.
Nagios check_ping plugin: Disable warning message "System call sent warnings to stderr"
--- check_ping.c~ 2008-12-01 00:23:18.000000000 +0300
+++ check_ping.c 2010-12-03 16:40:05.000000000 +0300
@@ -487,7 +487,7 @@
if ((result=error_scan(buf, addr)) == STATE_OK) {
result = STATE_WARNING;
if (warn_text == NULL) {
- warn_text = strdup(_("System call sent warnings to stderr "));
+ /* warn_text = strdup(_("System call sent warnings to stderr ")); */
} else {
asprintf(&warn_text, "%s %s", warn_text, _("System call sent warnings to stderr "));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment