Page 1 of 1

Need assistance in configuring software raid1 plugin.

Posted: Fri Jan 25, 2013 6:42 am
by John12
hi,

my nagiosxi monitoring server version: nagiosxi 2012 VM
monitored server: cenots 5.7

I am trying to add a plugin called "check_md_raid" from http://exchange.nagios.org/directory/Pl ... ms/details
With no much info about configuration, all its given to run the plugin from root. and when i execute it from command line in host..it gives output.

Adding the plugin in nagiosxi and performing check command doesn't gives any output.
the steps i followed are:
I uploaded the plugin , chown nagios: check_md_raid
i added NAGIOSXI (ALL)=ALL NOPASSWD:/path/to/check_md_raid in my /etc/sudoers file on nagios monitoring server VM.

added :
command Name: check_md_raid
command line: /usr/bin/sudo $USER1$/check_md_raid -H $HOSTADDRESS$
command type: check_command

applied the config.

on services management, added new and selected the check command as check_md_raid. when check the test command check.. the output displayed blank..

This plugin required to be executed via root. and i followed the steps.. let me know what i was doing wrong. :roll:

awaiting your response. highly in need to monitor raid check.

thanks.

Re: Need assistance in configuring software raid1 plugin.

Posted: Fri Jan 25, 2013 10:45 am
by slansing
Can you show us how you have the command defined that runs the plugin including the warning and critical values, in essence..how Nagios runs it through the CLI? Example:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c yourplugin.pl -a "-w 600 -c 1200"

Re: Need assistance in configuring software raid1 plugin.

Posted: Sat Jan 26, 2013 8:51 am
by John12
Thanks for reply.

I already given in my 1st post the command i followed..
attached is the screenshot. let me know what need to be changed..
command.JPG

I found another post for this plugin which is for nagios.
link: http://www.cyberz.org/blog/2009/01/03/n ... ad-output/

I don't have idea why check test command wont gives any output. and when force saving the service configuration, the configuration get failed.

I have got a mail in my nagiosxi monitoring server VM in /var/spool/mail/root
screenshot below:
root mail.JPG

Re: Need assistance in configuring software raid1 plugin.

Posted: Mon Jan 28, 2013 4:49 am
by John12
I downloaded another plugin called check_linux_raid.pl from nagios plugin http://www.nagios.org/download/plugins

plugin:
check_linux_raid.pl
I am in lack of knowledge on configuring this custom plugin in nagiosxi.

Is it necessary to upload the plugin in both monitored host and nagiosxi monitoring server?

if i have to check it with check_nrpe, what will be the command definition that i need to put on in nagiosXI -> command.


Awaiting response, :?
john.

Re: Need assistance in configuring software raid1 plugin.

Posted: Mon Jan 28, 2013 9:05 am
by John12
i found the workaround.

i need to add command definition in nrpe.cfg file in remote host. plugin works.

this thread can be closed .