I'm having some difficulty with check_snmp. This is probably something rather simple but I'm stumped. I have 2 nagios servers one running OMD 48 and the other was a compile of nagios 3.2.3 with the plugin package. <br>
<br>Basically I have a temp probe that I'm trying to monitor warning and critical temps. Here goes..<br><br><br>define host{<br> use generic-host<br> host_name sensor1<br> max_check_attempts 1<br>
alias Temp Sensor 1<br> check_command check_snmp!-C public -p 161 -o 1.3.6.1.4.1.17095.1.1.0<br> normal_check_interval 10<br> retry_check_interval 1<br> address x.x.x.x <br> hostgroups sensors <br>
}<br><br>define service{<br> use generic-service<br> host_name sensor1<br> service_description Room Temp<br> check_command check_snmp! -o 1.3.6.1.4.1.17095.3.2.0 -w@75:79 -c:80<br> }<br>
<br><br>This is what is displayed in check_mk with the -v<br><br><table class="dataset"><tbody><tr class="data"><td>/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] x.x.x.x:161 1.3.6.1.4.1.17095.3.2.0</td></tr>
<tr class="data"><td class="left">Long output of check plugin (multiline)</td><td>iso.3.6.1.4.1.17095.3.2.0 = STRING: "77.68"<br>SNMP OK - "77.68" </td></tr>
<tr class="data"><td class="left">Service performance data</td><td><br></td></tr>
<tr class="data"><td class="left">Service check command</td><td>check_snmp! -o 1.3.6.1.4.1.17095.3.2.0 -w@75:79 -c:80 -v</td></tr></tbody></table><br>I have another command such as check_snmp!-c public -p 161 -o 1.3.6.1.4.1.17095.3.6.0 -r "PWR OK" that works fine so I have no idea why the other check command is not giving a warning in nagios. <br>
<br>Any help is welcome!!<br><br>Thanks!<br><br clear="all">--<br>Dave Callahan<br>