Adding netapp storage to nagios xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
venkitesh
Posts: 67
Joined: Tue Jan 27, 2015 12:34 am

Adding netapp storage to nagios xi

Post 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
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Adding netapp storage to nagios xi

Post by cmerchant »

You can check out the monitoring plugins here:

http://exchange.nagios.org/directory/Pl ... NAS/NetApp
venkitesh
Posts: 67
Joined: Tue Jan 27, 2015 12:34 am

Re: Adding netapp storage to nagios xi

Post 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.
venkitesh
Posts: 67
Joined: Tue Jan 27, 2015 12:34 am

Re: Adding netapp storage to nagios xi

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Adding netapp storage to nagios xi

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
venkitesh
Posts: 67
Joined: Tue Jan 27, 2015 12:34 am

Re: Adding netapp storage to nagios xi

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Adding netapp storage to nagios xi

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
venkitesh
Posts: 67
Joined: Tue Jan 27, 2015 12:34 am

Re: Adding netapp storage to nagios xi

Post by venkitesh »

thanks
it worked!!!!!!!!!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Adding netapp storage to nagios xi

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked