Page 1 of 2

Nagios XI (master) & Nagios Core (slave)

Posted: Tue Oct 09, 2012 5:24 pm
by jhobbins
G'day Guys,

Doing a distributed monitoring proof of concept and have completed the following:

1. Read http://assets.nagios.com/downloads/gene ... r_MSPs.pdf

2. Completed steps in http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

3. Completed steps in http://assets.nagios.com/downloads/nrdp ... erview.pdf (Using /usr/local/nrdp/clients/send_nrdp.sh instead of send_nrdp.php)

4. send_nrdp.sh (from Nagios Core slave) successfully sends a check to http://192.168.2.151/nrdp (Nagios XI master) and the device appears in Unconfigured Objects.

Now my question...

Where can I go to get documentation on configuring my Nagios Core slave to automatically send checks to Nagios XI master?

Happy to receive draft documentation and help contribute to its development.

Regards,

John Hobbins
Australia

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Wed Oct 10, 2012 9:29 am
by mguthrie
From a Core server, you can use an OSCP command to forward the check results after each service check is run. See the following tutorial:
http://www.openlogic.com/wazi/bid/18813 ... ith-Nagios

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Wed Oct 10, 2012 10:36 pm
by jhobbins
Thanks mate.

The doco has instructions for NSCA. Do you know of any doco with details on NRDP?

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Thu Oct 11, 2012 9:32 am
by scottwilkerson
This is pretty much outlined in this post, you may need to modify for your setup

http://support.nagios.com/forum/viewtop ... 144#p29144

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Fri Oct 12, 2012 5:39 am
by jhobbins
G'day Scott,

Thank you very much mate.

Your advice on send_nrdp.sh and send_nrdp.php

Which would you recommend and why?

Regards,
John Hobbins
Australia

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Fri Oct 12, 2012 9:54 am
by slansing
It's really all personal preference, the .sh version is the bash alternative to send_nrdp.php. They are both NRDP clients.

There is also a Python, and Perl version. I suppose it really comes down to what you have, or want to have installed on your system. Some may not have php, or even shell installed.

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Fri Oct 12, 2012 2:47 pm
by jhobbins
Thanks mate.

Another question from http://support.nagios.com/forum/viewtop ... 144#p29144

What is <SERVER_TO_SEND_TO>." in the instruction "You will need to create two scripts in the /usr/local/nagios/libexec/eventhandlers directory replacing..." referring to?

Regards, John

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Fri Oct 12, 2012 3:14 pm
by scottwilkerson
Actually, it should read "replacing <URL of the NRDP server> with the actual URL for your nrdp server and <shared token> with your token"

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Fri Oct 12, 2012 3:19 pm
by jhobbins
Thank you very much for your prompt response Scott.

Much appreciated!

Re: Nagios XI (master) & Nagios Core (slave)

Posted: Fri Oct 12, 2012 4:01 pm
by jhobbins
I'm guessing I'll have to change the rights on service_check and host_check shell scripts.

What command would I use? Sorry man, I've been out of the IT game for many years. Killed too many brain cells.