Tag Archives: Thanks Linux

Nagios snmp_check problem

By mancora

Hi,

I am configuring nagios for snmp monitoring and I havent go further after getting a timeout error from the monitoring console from Nagios.
As far as I can see everything is well configured. But this is my first nagios implementation and I am not sure as I am learning on the way.
I am making snmpgets from the command line which are succesfull but Nagios system gets a timeout. Any idea what is the problem. Any tip hardly appreciated.

details from behavior and configuration below.

Thanks!
————————————————————————————————–
Linux nagios01 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Packet nagios3

Package nagios3:
i 3.2.3-3ubuntu1

———————————————————————————————-
Error from web interface

nagios02

CPU Load

UNKNOWN 2013-03-29 16:18:43 0d 21h 28m 14s 4/4 External command error: Timeout: No Response from 192.168.1.250:161.

CPU Stats

UNKNOWN 2013-03-29 16:14:58 0d 22h 21m 36s 4/4 External command error: Timeout: No Response from 192.168.1.250:161.

—————————————————————————–
Test from CLI

sudo /usr/lib/nagios/plugins/check_snmp -H 192.168.1.250 -C pedropicapiedra -o .1.3.6.1.4.1.2021.11.9.0,.1.3.6.1.4.1.2021.11.10.0,.1.3.6.1.4.1.2021.11.11.0 -l ‘CPU usage (user system idle)’ -u ‘%’

SNMP OK – CPU usage (user system idle) 0 % 0 99 | CPU usage (user system idle)=0 iso.3.6.1.4.1.2021.11.10.0=0 iso.3.6.1.4.1.2021.11.11.0=99

sudo /usr/lib/nagios/plugins/check_snmp -H 192.168.1.250 -C pedropicapiedra -o .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3 -w :70,:70,:70 -c :90,:90,:90 -l load

SNMP OK – load 0 1 5 | load=0 iso.3.6.1.4.1.2021.10.1.5.2=1 iso.3.6.1.4.1.2021.10.1.5.3=5

—————————————————————————–

Service Definition

define service{
use generic-service
name CPU-stats
check_command snmp_cpustats!supersecreto
service_description CPU Stats
host_name nagios02
notification_interval 0
…read more
Source: FULL ARTICLE at The UNIX and Linux Forums