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
Adding netapp storage to nagios xi
Re: Adding netapp storage to nagios xi
You can check out the monitoring plugins here:
http://exchange.nagios.org/directory/Pl ... NAS/NetApp
http://exchange.nagios.org/directory/Pl ... NAS/NetApp
Re: Adding netapp storage to nagios xi
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.
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
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
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
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
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.
"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.
Re: Adding netapp storage to nagios xi
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Adding netapp storage to nagios xi
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
The key to it is exit(0) or exit(1) etc etc
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); }
}As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Adding netapp storage to nagios xi
thanks
it worked!!!!!!!!!
it worked!!!!!!!!!
Re: Adding netapp storage to nagios xi
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!