Page 1 of 3

Netapp Monitoring

Posted: Wed May 20, 2015 7:39 am
by nathanplatt
Hi Everyone,

I'm trying to configure netapp monitoring for our filers, i'm using the .pl from https://exchange.nagios.org/directory/P ... NG/details and have added it to my commands.cfg and windows.cfg files but nagios is reporting the following issue.

Notification Type: PROBLEM

Service: CPU Load
Host: Netapp A
Address: 192.168.87.170
State: UNKNOWN

Date/Time: Wed May 20 12:15:39 UTC 2015

Additional Info:

**ePN /usr/lib/nagios/plugins/check-netapp-ng.pl: Argument 123 days, 01:22:51.06 isnt numeric in numeric gt () at (eval 1) line 484,.

and

***** Nagios *****

Notification Type: PROBLEM

Service: Fan Fail
Host: Netapp A
Address: 192.168.87.170
State: UNKNOWN

Date/Time: Wed May 20 12:15:59 UTC 2015

Additional Info:

**ePN /usr/lib/nagios/plugins/check-netapp-ng.pl: Argument 123 days, 01:23:14.01 isnt numeric in numeric gt () at (eval 1) line 484,.

Any ideas?

Nathan

Re: Netapp Monitoring

Posted: Wed May 20, 2015 8:59 am
by jdalrymple
What version of OnTap?

cDOT or 7 mode?

I've tested that plugin successfully with 7 mode, but never ran it against clustered - don't know if it works.

Re: Netapp Monitoring

Posted: Wed May 20, 2015 9:09 am
by nathanplatt
Its 7-mode, running 8.2.2RC1

Re: Netapp Monitoring

Posted: Wed May 20, 2015 12:20 pm
by tgriep
Could you post how you have the command defined and how the checks are defined too?

Re: Netapp Monitoring

Posted: Wed May 20, 2015 1:36 pm
by jdalrymple
Looks like we'll need to see your command definitions - working OK on my 8.1 7 mode filer (simulator):

Code: Select all

[jdalrymple@localhost libexec]$ ./check_netapp.pl -H 192.168.145.11 -C public -T CPULOAD
OK: CPULOAD 3% | cpuload=3%

[jdalrymple@localhost libexec]$ ./check_netapp.pl -H 192.168.145.11 -C public -T FAN
OK: FAN 0 | failedfans=0
You might try running from the command line also to simplify troubleshooting.

Re: Netapp Monitoring

Posted: Thu May 21, 2015 3:31 am
by nathanplatt
define command{
command_name check_netapp_cpu
command_line $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T CPULOAD -w 80 -c 90$
}

define command{
command_name check_netapp_fan
command_line $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T FAN -w 1 -c 3 -C pu$
}

the check-netapp-ng.pl is stored in the /usr/lib/nagios/plugins folder and this is defined as the address for the plugins in the nagios.cfg file.

Hope this helps.

Nathan

Re: Netapp Monitoring

Posted: Thu May 21, 2015 9:55 am
by jdalrymple
Was there just some sort of a copy/past fail?
nathanplatt wrote:define command{
command_name check_netapp_cpu
command_line $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T CPULOAD -w 80 -c 90$
}

Code: Select all

[root@localhost libexec]# ./check_netapp.pl -H 192.168.145.11 -T CPULOAD -C public -w 80 -c 90
OK: CPULOAD 1% | cpuload=1%
[root@localhost libexec]# ./check_netapp.pl -H 192.168.145.11 -T CPULOAD -C public -w 80 -c 90$
Value "90$" invalid for option c (number expected)

Re: Netapp Monitoring

Posted: Thu May 21, 2015 10:12 am
by nathanplatt
I think it was a copy paste fail;

define command{
command_name check_netapp_cpu
command_line $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T CPULOAD -w 80 -c 90 -C public
}

define command{
command_name check_netapp_fan
command_line $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T FAN -w 1 -c 3 -C public
}

When i try to run from the command line this is the error I get.

pi@raspberrypi /usr/lib/nagios/plugins $ ./check-netapp.pl -H 192.168.87.170 -T CPULOAD -C public -w80 -c 90
-bash: ./check-netapp.pl: No such file or directory
pi@raspberrypi /usr/lib/nagios/plugins $ ./check-netapp-ng.pl -H 192.168.87.170 -T CPULOAD -C public -w80 -c 90
-bash: ./check-netapp-ng.pl: Permission denied
pi@raspberrypi /usr/lib/nagios/plugins $ sudo ./check-netapp-ng.pl -H 192.168.87.170 -T CPULOAD -C public -w80 -c 90
sudo: ./check-netapp-ng.pl: command not found
pi@raspberrypi /usr/lib/nagios/plugins $ sudo check-netapp-ng.pl -H 192.168.87.170 -T CPULOAD -C public -w80 -c 90
sudo: check-netapp-ng.pl: command not found
pi@raspberrypi /usr/lib/nagios/plugins $ sudo check-netapp-ng.pl -H 192.168.87.170 -T CPULOAD -C public -w80 -c 90

Re: Netapp Monitoring

Posted: Thu May 21, 2015 10:38 am
by jdalrymple
Have you made your perl script executable?

Maybe instead of `./check_netapp_ng.pl` do `perl check_netapp_ng.pl`

Re: Netapp Monitoring

Posted: Fri May 22, 2015 3:37 am
by nathanplatt
You're right if i type perl before it runs. Excuse my ignorance but what do I need to do next? As i can get the command to work manually but to get it work as part of the automated command it doesn't seem to want to work still?