Netapp Monitoring

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.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Netapp Monitoring

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Netapp Monitoring

Post 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.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Netapp Monitoring

Post by nathanplatt »

Its 7-mode, running 8.2.2RC1
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Netapp Monitoring

Post by tgriep »

Could you post how you have the command defined and how the checks are defined too?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Netapp Monitoring

Post 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.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Netapp Monitoring

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Netapp Monitoring

Post 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)
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Netapp Monitoring

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Netapp Monitoring

Post by jdalrymple »

Have you made your perl script executable?

Maybe instead of `./check_netapp_ng.pl` do `perl check_netapp_ng.pl`
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Netapp Monitoring

Post 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?
Locked