Page 1 of 1
Adding netapp storage to nagios xi
Posted: Mon Feb 09, 2015 4:12 am
by venkitesh
Hi Team,
Could anyone tell me how to add netapp storage devices to nagios xi and what all main things we can monitor in that.
Kindly help
Re: Adding netapp storage to nagios xi
Posted: Mon Feb 09, 2015 2:13 pm
by cmerchant
Re: Adding netapp storage to nagios xi
Posted: Tue Feb 10, 2015 4:00 am
by venkitesh
Thanks for your reply.
As i am newbie in nagios xi, i am not finding adding netapp devices in core config manager- configuration wizards.
may i know how to add these devices.
Re: Adding netapp storage to nagios xi
Posted: Tue Feb 10, 2015 5:08 am
by venkitesh
Hi Guys,
i was able to get netapp disk used details with the below command
/usr/local/nagios/libexec/check-netapp-ng.pl -H test.abc.com -C test -T DISKUSED -w 1 -c 2 --vol /vol/test/
But here i am getting disk used value of only one volume.
is there any way we can get disk used information of all the volumes in one command.
Thanks
Re: Adding netapp storage to nagios xi
Posted: Tue Feb 10, 2015 10:52 am
by abrist
I looked at the plugin in question and it looks like it is limited to specific volume checks. There is a full aggregate checker on the exchange though:
http://exchange.nagios.org/directory/Pl ... ls/details
Re: Adding netapp storage to nagios xi
Posted: Thu Nov 26, 2015 6:20 am
by venkitesh
hi Team,
i have created my own perl script to monitor netapp volumes and i have created a new command in nagios xi and given this same script.
so any volume which will go beyond 95% it will show in nagios xi.
Now my issue is as its a custom script, nagios xi is just displaying the ouput and it doesn't know when to change service status to critical and when it should show OK.
So could you please help me on this on what needs to be tweaked for nagios xi to understand when the service state needs to be changed.
Regards
Venkitesh
Re: Adding netapp storage to nagios xi
Posted: Thu Nov 26, 2015 7:36 pm
by Box293
When your script exits, it needs to
1) echo/print the output
2) exit with the correct status code like 0, 1, 2, 3
Nagios looks at the exit code and will know if it's OK, Warning, Critical or Unknown.
This is explained here:
https://nagios-plugins.org/doc/guidelines.html#AEN78
I found this basic example:
https://www.digitalocean.com/community/ ... untu-12-10
Code: Select all
#!/usr/bin/perl
use strict;
use warnings;
use feature qw(switch say);
my $used_space = `df -h / \|awk 'FNR == 2 {print \$5}'`;
given ($used_space) {
chomp($used_space);
when ($used_space lt '85%') { print "OK - $used_space of disk space used."; exit(0); }
when ($used_space eq '85%') { print "WARNING - $used_space of disk space used."; exit(1); }
when ($used_space gt '85%') { print "CRITICAL - $used_space of disk space used."; exit(2); }
default { print "UNKNOWN - $used_space of disk space used."; exit(3); }
}
The key to it is
exit(0) or
exit(1) etc etc
Re: Adding netapp storage to nagios xi
Posted: Mon Nov 30, 2015 3:58 am
by venkitesh
thanks
it worked!!!!!!!!!
Re: Adding netapp storage to nagios xi
Posted: Mon Nov 30, 2015 11:36 am
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.