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
Post
by krzysie1997 » Fri Oct 04, 2019 2:56 am
Hi
I try to monitor Netapp 8.3.
When I used snmpwalk:
Code: Select all
snmpwalk -v2c -c public 10.10.10.100
I get:
Code: Select all
iso.3.6.1.2.1.1.1.0 = STRING: "NetApp Release 8.3.2P2: Mon May 23 13:45:25 UTC 2016"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.789.2.5
iso.3.6.1.2.1.1.3.0 = Timeticks: (4207338296) 486 days, 23:03:02.96
iso.3.6.1.2.1.1.4.0 = ""
iso.3.6.1.2.1.1.5.0 = STRING: "XXXX"
iso.3.6.1.2.1.1.6.0 = STRING: "XXXX"
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
When i tried use this plugin:
https://exchange.nagios.org/directory/P ... 4292527640
by this command:
Code: Select all
./testnetapp -2 public -h 10.10.10.100 -v
I get:
Code: Select all
./testnetapp: line 227: [: No Such Object available on this agent at this OID: integer expression expected
Synology model: No Such Object available on this agent at this OID
Synology s/n: No Such Object available on this agent at this OID
DSM Version: No Such Object available on this agent at this OID
DSM update: No Such Object available on this agent at this OID
System Status: Failed
Temperature: No Such Object available on this agent at this OID (Normal)
Power Status: Failed
System Fan Status: Failed
CPU Fan Status: Failed
Number of disks: 0
Number of RAID volume: 0
CRITICAL - Synology No Such Object available on this agent at this OID (s/n: No Such Object available on this agent at this OID, No Such Object available on this agent at this OID), System status: Failed , Power status: Failed , System fan status: Failed , CPU fan status: Failed
Any ideas how to repair this?
krzysie1997
Posts: 12 Joined: Thu Aug 01, 2019 6:49 am
Post
by krzysie1997 » Fri Oct 04, 2019 7:38 am
Thanks,
now I use this script:
https://github.com/ranl/monitor-utils/b ... tapp-ng.pl
unfortunatelly some of the commands doesnt work
for example:
Code: Select all
root@nagios:/usr/lib/nagios/plugins# ./check-netapp-ng.pl -H 10.10.10.100 -C public -T FAN
OK: FAN noSuchObject | failedfans=noSuchObject
root@nagios:/usr/lib/nagios/plugins# ./check-netapp-ng.pl -H 10.10.10.100 -C public -T PS
OK: PS Fail noSuchObject | failedpowersupplies=noSuchObject
root@nagios:/usr/lib/nagios/plugins# ./check-netapp-ng.pl -H 10.10.10.100 -C public -T TEMP
CRIT: Over TEMP ! | overtemperature=noSuchObject
root@nagios:/usr/lib/nagios/plugins# ./check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/data
WARN: Unknown volume path or aggregate name '/vol/data'. Available values: aggr0_c2 /vol/vol0 /vol/vol0/.snapshot aggr1_c1 aggr1_c2 /vol/svmc1_root /vol/svmc1_root/.snapshot /vol/vol1 /vol/vol1/.snapshot /vol/svmc2_root /vol/svmc2_root/.snapshot /vol/vol2 /vol/vol2/.snapshot /vol/vol_3 /vol/vol_3/.snapshot /vol/vol_4 /vol/vol_4/.snapshot /vol/vol_5 /vol/vol_5/.snapshot aggr0_c1 /vol/vol0 /vol/vol0/.snapshot
root@nagios:/usr/lib/nagios/plugins#
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Oct 04, 2019 8:27 am
On the first 3 commands, you might want to reach out to the author of the plugin, we do not have a Netapp appliance to test any of this against.
As for the 4th command, it is showing a list of possibilities for the path, you may want to try
Code: Select all
./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
Post
by krzysie1997 » Mon Oct 07, 2019 5:43 am
When I use this command:
Code: Select all
./check-netapp-ng.pl -H 10.10.10.100 -C public -T DISKUSED -v /vol/vol0
I get:
Code: Select all
OK: DISKUSED /vol/vol0 9% | /vol/vol0=14707508KB;0;0;; /vol/vol0:perc=9%;500;500;;100
but in nagios page i get 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,".
Anyone can help?
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Mon Oct 07, 2019 6:40 am
Can you share the configuration for the command you created as well as the definition for the service?
Thanks
krzysie1997
Posts: 12 Joined: Thu Aug 01, 2019 6:49 am
Post
by krzysie1997 » Mon Oct 07, 2019 6:45 am
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
}
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:
Post
by scottwilkerson » Mon Oct 07, 2019 6:54 am
Do you get the valid response if you run it in the CLI as the nagios user?
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
Post
by krzysie1997 » Mon Oct 07, 2019 7:15 am
In linux I have good result,
but in nagios page I have
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Mon Oct 07, 2019 7:23 am
krzysie1997 wrote: but in nagios page i get 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,".
Anyone can help?
I looked at the code on the plugin you linked here and there is not multiplication on line 763, did you modify the plugin?
https://github.com/ranl/monitor-utils/b ... tapp-ng.pl
krzysie1997 wrote: In linux I have good result,
but in nagios page I have
Did you run it
as the nagios user like the command I posted above?