Can't get my ProCurve monitoring to work.
Posted: Tue Aug 14, 2012 5:15 pm
Hey all, I just downloaded two .cfg files so I can see a little more deeply into my ProCurve switches. HOWEVER, I've hit a snag and I'm not sure what the problem is. Here's the Command Definition:
and here's the Service Definition:
and here's what I see on the Nagios web page:
BUT, if I run the command from the command line here's what I see:
Any ideas on why it works from the command line and not from within Nagios? I copied the config lines from the downloaded file to my file.
Thanks,
Joe B
Code: Select all
define command{
command_name check_hpmemoryfree
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1 -t 5 -w $ARG2$ -c $ARG3$ -u bytes -l free
} Code: Select all
# Service definition MEM-FREE
define service{
use generic-service ; Name of service template to use
hostgroup switches
service_description MEM-FREE
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_hpmemoryfree!nagios!2000:30000000!1000:30000000
}
Code: Select all
MEM-FREE UNKNOWN 08-14-2012 14:54:32 0d 1h 48m 51s 3/3 External command error: Timeout: No Response from 192.168.2.20:161. Code: Select all
[root@link libexec]# ./check_snmp -H 192.168.2.20 -o 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1
SNMP OK - 24307576 | iso.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1=24307576
Thanks,
Joe B