Page 1 of 1

check-netapp-ng.pl plugin

Posted: Tue Feb 12, 2013 12:55 pm
by Phil7269
I recently installed a netapp fas2240 device on our network. I want to be able to have nagios monitor different aspects of this device. I have installed the check-netapp-ng.pl plugin and need assistance getting the plugin to work correctly. so far I have done the following:

Added the following to commands.cfg

define command{
command name check_netapp_temp
command_line /usr/bin/perl5.14.2 $USER1$/check-netapp-ng.pl -H $HOSTADDRESS -T TEMP -C public
}

and have added the following in windows.cfg

define service{
use generic-service
host_name netapp-device (host has been defined in Windows.cfg)
service_description Temperature
check_command check_netapp_temp
}


When I restart nagios and it runs the check I get the following error "Missing -T"

Not sure what I am doing wrong. I can run the Ping check against this device just fine. if i run the following command from the command line: ./check-netapp-ng.pl -H 192.168.10.12 -T TEMP -C public it will respond with the following: "OK: TEMP is ok | overtemperature=l

Appreciate any assistance.

thank you.

Re: check-netapp-ng.pl plugin

Posted: Tue Feb 12, 2013 1:06 pm
by yancy
Phil7269,

What are the file permissions of check_netapp_temp?

Thanks,

-Yancy

Re: check-netapp-ng.pl plugin

Posted: Tue Feb 12, 2013 6:30 pm
by Phil7269
Ok. I've changed the service definition to the following


define command{
command name check-netapp-ng
command_line /usr/bin/perl5.14.2 $USER1$/check-netapp-ng.pl -H $HOSTADDRESS -T $ARG1%$ -C public
}


permissions are as follows for check-netapp-ng: rwxr xr x

I'm just really not sure how to get this plugin working. even after the change it still errors with "-T Missing"

thanks for your help.

PT

Re: check-netapp-ng.pl plugin

Posted: Tue Feb 12, 2013 6:46 pm
by Phil7269
I followed this example and it is working now

http://exchange.nagios.org/directory/Pl ... NG/details

Re: check-netapp-ng.pl plugin

Posted: Wed Feb 13, 2013 5:29 pm
by slansing
Great, thanks for letting the community know what you used.