check-netapp-ng.pl plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Phil7269
Posts: 24
Joined: Tue Oct 16, 2012 1:13 pm

check-netapp-ng.pl plugin

Post 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.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: check-netapp-ng.pl plugin

Post by yancy »

Phil7269,

What are the file permissions of check_netapp_temp?

Thanks,

-Yancy
Phil7269
Posts: 24
Joined: Tue Oct 16, 2012 1:13 pm

Re: check-netapp-ng.pl plugin

Post 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
Phil7269
Posts: 24
Joined: Tue Oct 16, 2012 1:13 pm

Re: check-netapp-ng.pl plugin

Post by Phil7269 »

I followed this example and it is working now

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

Post by slansing »

Great, thanks for letting the community know what you used.
Locked