Created
December 3, 2010 14:08
-
-
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"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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
http://dynax60.blogspot.com/2010/12/nagios-checkping-system-call-sent.html