How to monitor Netapp 8.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
krzysie1997
Posts: 12
Joined: Thu Aug 01, 2019 6:49 am

Re: How to monitor Netapp 8.3

Post by krzysie1997 »

I dont modify the plugin because i dont know how :oops:

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

Post 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'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
krzysie1997
Posts: 12
Joined: Thu Aug 01, 2019 6:49 am

Re: How to monitor Netapp 8.3

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to monitor Netapp 8.3

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
krzysie1997
Posts: 12
Joined: Thu Aug 01, 2019 6:49 am

Re: How to monitor Netapp 8.3

Post 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.
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

Post by scottwilkerson »

Please post the command definition and the service definition

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
krzysie1997
Posts: 12
Joined: Thu Aug 01, 2019 6:49 am

Re: How to monitor Netapp 8.3

Post 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
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to monitor Netapp 8.3

Post 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
}
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
krzysie1997
Posts: 12
Joined: Thu Aug 01, 2019 6:49 am

Re: How to monitor Netapp 8.3

Post 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,". 
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to monitor Netapp 8.3

Post 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

Code: Select all

which perl
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked