summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c43abaf)
raw | patch | inline | side by side (parent: c43abaf)
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Thu, 1 Aug 2002 05:06:53 +0000 (05:06 +0000) | ||
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Thu, 1 Aug 2002 05:06:53 +0000 (05:06 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@68 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_snmp.c | patch | blob | history |
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 13e12ff8f567459c63b4a55bb29d7b2d6c09bf9f..eae52ca8777f4b0c6c95c945da3b6a368e7a513f 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
iresult = STATE_WARNING;
}
- result = max (result, iresult);
+ result = max_state (result, iresult);
if (nlabels > 1 && i < nlabels && labels[i] != NULL)
outbuff = ssprintf
/* WARNING if output found on stderr */
if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr))
- result = max (result, STATE_WARNING);
+ result = max_state (result, STATE_WARNING);
/* close stderr */
(void) fclose (child_stderr);
/* close the pipe */
if (spclose (child_process))
- result = max (result, STATE_WARNING);
+ result = max_state (result, STATE_WARNING);
if (nunits > 0)
printf ("%s %s -%s\n", label, state_text (result), outbuff);