diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-08-01 05:06:53 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-08-01 05:06:53 +0000 |
commit | cf34ddfdeb9235440b847548a321b49eb6bb94f3 (patch) | |
tree | 65124d4bcc21d4ff5e2ad5975a372b96d5ce0b3b | |
parent | c43abafb9465849a21c5b723c3048d9c8cbba523 (diff) | |
download | monitoring-plugins-cf34ddfdeb9235440b847548a321b49eb6bb94f3.tar.gz |
re-patched exit state comparison
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@68 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_snmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 13e12ff8..eae52ca8 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -261,7 +261,7 @@ main (int argc, char **argv) iresult = STATE_WARNING; } - result = max (result, iresult); + result = max_state (result, iresult); if (nlabels > 1 && i < nlabels && labels[i] != NULL) outbuff = ssprintf @@ -292,14 +292,14 @@ main (int argc, char **argv) /* 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); |