check-netapp-ng.pl "Can't create SNMP session to.."
Posted: Mon Aug 22, 2016 10:11 am
hi all
when I run the command from command line, I have no problem:
./check-netapp-ng.pl -H XXX.XXX.XXX.XXX -C XXXXXX -V 2c -T CPULOAD
OK: CPULOAD 33% | cpuload=33%;500;500;;
When I use same command inside Nagios , I receive the error:
"Can't create SNMP session to.."
I defined the command like this:
define command {
command_name check_netapp_cpuload
command_line $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -V c2 -C XXXXXX -T CPULOAD
}
Any idea ?
Regards
when I run the command from command line, I have no problem:
./check-netapp-ng.pl -H XXX.XXX.XXX.XXX -C XXXXXX -V 2c -T CPULOAD
OK: CPULOAD 33% | cpuload=33%;500;500;;
When I use same command inside Nagios , I receive the error:
"Can't create SNMP session to.."
I defined the command like this:
define command {
command_name check_netapp_cpuload
command_line $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -V c2 -C XXXXXX -T CPULOAD
}
Any idea ?
Regards