Page 2 of 3
Re: How to monitor Netapp 8.3
Posted: Mon Oct 07, 2019 7:29 am
by krzysie1997
I dont modify the plugin because i dont know how
I run the plugin with nagios user and i get "null" in nagios page.
Re: How to monitor Netapp 8.3
Posted: Mon Oct 07, 2019 3:09 pm
by scottwilkerson
Can you run this command exactly from the CLI and return the results?
Code: Select all
su nagios -c '/usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol0'
Re: How to monitor Netapp 8.3
Posted: Tue Oct 08, 2019 1:38 am
by krzysie1997
The reply is:
Code: Select all
OK: DISKUSED /vol/vol0 8% | /vol/vol0=14584784KB;0;0;; /vol/vol0:perc=8%;500;500;;100
Re: How to monitor Netapp 8.3
Posted: Tue Oct 08, 2019 7:07 am
by scottwilkerson
Hmm, when you run it from the command like is there a blank space first?
e.g.
Code: Select all
[root@localhost ~]# su nagios -c '/usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol0'
OK: DISKUSED /vol/vol0 8% | /vol/vol0=14584784KB;0;0;; /vol/vol0:perc=8%;500;500;;100
[root@localhost ~]#
Can you post a screenshot of the service detail page in the Nagios GUI for this service?
Re: How to monitor Netapp 8.3
Posted: Thu Oct 10, 2019 2:08 am
by krzysie1997
There is no blank space.
Code: Select all
root@nagios:~# su nagios -c '/usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol0'
OK: DISKUSED /vol/vol0 8% | /vol/vol0=14467448KB;0;0;; /vol/vol0:perc=8%;500;500;;100
root@nagios:~#
Screen in attachment.
Re: How to monitor Netapp 8.3
Posted: Thu Oct 10, 2019 6:38 am
by scottwilkerson
Please post the command definition and the service definition
Thanks
Re: How to monitor Netapp 8.3
Posted: Fri Oct 11, 2019 1:16 am
by krzysie1997
Code: Select all
define command{
command_name disk_vol0
command_line su nagios -c '/usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol0'
}
#define command{
#command_name disk_vol1
#command_line /usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol1
#}
#define command{
#command_name disk_vol2
#command_line /usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol2
#}
define command{
command_name cpuload
command_line /usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T CPULOAD
}
define service{
use generic-service
host_name NETAPP
service_description cpuload
check_command cpuload
}
define service{
use generic-service
host_name NETAPP
service_description diskused_vol0
check_command disk_vol0
}
Re: How to monitor Netapp 8.3
Posted: Fri Oct 11, 2019 6:19 am
by scottwilkerson
Change this
Code: Select all
define command{
command_name disk_vol0
command_line su nagios -c '/usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol0'
}
to this:
Code: Select all
define command{
command_name disk_vol0
command_line /usr/lib/nagios/plugins/check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol0
}
Re: How to monitor Netapp 8.3
Posted: Mon Oct 14, 2019 3:23 am
by krzysie1997
After change GUI return this error:
Code: Select all
**ePN /usr/lib/nagios/plugins/check-netapp-ng.pl: "Argument "" isn't numeric in multiplication (*) at (eval 1) line 763,".
Re: How to monitor Netapp 8.3
Posted: Mon Oct 14, 2019 6:33 am
by scottwilkerson
Can you zip and attach your file from /usr/lib/nagios/plugins/check-netapp-ng.pl
The one you linked doesn't have any commands on line 763
Also, please post the output of the following command