check_cisco.pl
Posted: Tue Feb 07, 2012 1:51 pm
Cannot seem to get the plugin check_cisco.pl to work from nagios ... What am i doing wrong?
pre-flight check shows nothing wrong ..
From terminal it runs fine ..
/opt/nagios/libexec # perl check_cisco.pl -H 10.10.10.10 -C yadayada -t mem -w 20%
Memory: OK - Free Memory 57% | memory_total=76MB memory_used=31MB
Nagios returns a null when it is used in nagios configuration ..
# SNMP Check Cisco - Memory
define command{
command_name check_cisco_mem
command_line $USER1$/check_cisco.pl -H $HOSTADDRESS$ -C yadayada -t mem -w 25% -c 15%
}
define host{
use switches-template
host_name cisco_3750
alias Switch
address 10.10.10.10
hostgroups switches
}
define service{
use local-service
hostgroup_name switches
service_description Memory Usage
check_command check_cisco_mem
}
pre-flight check shows nothing wrong ..
From terminal it runs fine ..
/opt/nagios/libexec # perl check_cisco.pl -H 10.10.10.10 -C yadayada -t mem -w 20%
Memory: OK - Free Memory 57% | memory_total=76MB memory_used=31MB
Nagios returns a null when it is used in nagios configuration ..
# SNMP Check Cisco - Memory
define command{
command_name check_cisco_mem
command_line $USER1$/check_cisco.pl -H $HOSTADDRESS$ -C yadayada -t mem -w 25% -c 15%
}
define host{
use switches-template
host_name cisco_3750
alias Switch
address 10.10.10.10
hostgroups switches
}
define service{
use local-service
hostgroup_name switches
service_description Memory Usage
check_command check_cisco_mem
}