Netapp Monitoring
-
- Posts: 267
- Joined: Thu May 07, 2015 4:59 am
Netapp Monitoring
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
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
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Netapp Monitoring
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.
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.
-
- Posts: 267
- Joined: Thu May 07, 2015 4:59 am
Re: Netapp Monitoring
Its 7-mode, running 8.2.2RC1
Re: Netapp Monitoring
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!
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Netapp Monitoring
Looks like we'll need to see your command definitions - working OK on my 8.1 7 mode filer (simulator):
You might try running from the command line also to simplify troubleshooting.
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
-
- Posts: 267
- Joined: Thu May 07, 2015 4:59 am
Re: Netapp Monitoring
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
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
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Netapp Monitoring
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)
-
- Posts: 267
- Joined: Thu May 07, 2015 4:59 am
Re: Netapp Monitoring
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
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
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Netapp Monitoring
Have you made your perl script executable?
Maybe instead of `./check_netapp_ng.pl` do `perl check_netapp_ng.pl`
Maybe instead of `./check_netapp_ng.pl` do `perl check_netapp_ng.pl`
-
- Posts: 267
- Joined: Thu May 07, 2015 4:59 am
Re: Netapp Monitoring
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?