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.
check-netapp-ng.pl plugin
Re: check-netapp-ng.pl plugin
Phil7269,
What are the file permissions of check_netapp_temp?
Thanks,
-Yancy
What are the file permissions of check_netapp_temp?
Thanks,
-Yancy
Re: check-netapp-ng.pl plugin
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
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
I followed this example and it is working now
http://exchange.nagios.org/directory/Pl ... NG/details
http://exchange.nagios.org/directory/Pl ... NG/details
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check-netapp-ng.pl plugin
Great, thanks for letting the community know what you used.