diff options
author | Matthew Kent <mattkent@users.sourceforge.net> | 2004-12-05 22:07:30 +0000 |
---|---|---|
committer | Matthew Kent <mattkent@users.sourceforge.net> | 2004-12-05 22:07:30 +0000 |
commit | a7b1d2b060eff806ddc5ebb2e78df8f51c1c67d4 (patch) | |
tree | be9e9ab89f7b52dbd91a11949bbc975b98d845c2 /plugins | |
parent | c0d5ac8efc1d59fa02c7f12264b5b4a337bc5bb5 (diff) | |
download | monitoring-plugins-a7b1d2b060eff806ddc5ebb2e78df8f51c1c67d4.tar.gz |
Fix for -s string matching (#756567, Tony Missana)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1006 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 6fae3d1f..ab110fbd 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -259,7 +259,7 @@ main (int argc, char **argv) | |||
259 | 259 | ||
260 | /* Process this block for string matching */ | 260 | /* Process this block for string matching */ |
261 | else if (eval_method[i] & CRIT_STRING) { | 261 | else if (eval_method[i] & CRIT_STRING) { |
262 | if (strcmp (response, string_value)) | 262 | if (strcmp (show, string_value)) |
263 | iresult = STATE_CRITICAL; | 263 | iresult = STATE_CRITICAL; |
264 | else | 264 | else |
265 | iresult = STATE_OK; | 265 | iresult = STATE_OK; |