I run the plugin with nagios user and i get "null" in nagios page.
How to monitor Netapp 8.3
-
krzysie1997
- Posts: 12
- Joined: Thu Aug 01, 2019 6:49 am
Re: How to monitor Netapp 8.3
I dont modify the plugin because i dont know how
I run the plugin with nagios user and i get "null" in nagios page.
I run the plugin with nagios user and i get "null" in nagios page.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to monitor Netapp 8.3
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'-
krzysie1997
- Posts: 12
- Joined: Thu Aug 01, 2019 6:49 am
Re: How to monitor Netapp 8.3
The reply is:
Code: Select all
OK: DISKUSED /vol/vol0 8% | /vol/vol0=14584784KB;0;0;; /vol/vol0:perc=8%;500;500;;100-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to monitor Netapp 8.3
Hmm, when you run it from the command like is there a blank space first?
e.g.
Can you post a screenshot of the service detail page in the Nagios GUI for this service?
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 ~]# -
krzysie1997
- Posts: 12
- Joined: Thu Aug 01, 2019 6:49 am
Re: How to monitor Netapp 8.3
There is no blank space.
Screen in attachment.
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:~#
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to monitor Netapp 8.3
Please post the command definition and the service definition
Thanks
Thanks
-
krzysie1997
- Posts: 12
- Joined: Thu Aug 01, 2019 6:49 am
Re: How to monitor Netapp 8.3
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
}
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to monitor Netapp 8.3
Change this
to 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'
}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
}-
krzysie1997
- Posts: 12
- Joined: Thu Aug 01, 2019 6:49 am
Re: How to monitor Netapp 8.3
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,".
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to monitor Netapp 8.3
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
The one you linked doesn't have any commands on line 763
Also, please post the output of the following command
Code: Select all
which perl