Page 2 of 2

Re: integrate Nagios with Netcool

Posted: Tue Feb 24, 2015 4:46 pm
by Fred Kroeger
Thanks for that Troy
Running up another VM was what I was trying to avoid. Most of my Nagios Sites just have the one Virtualisation host so as you rightly pointed out - it needs to be on different hardware.
Also another consideration is that I get charged for each VM that I run. Which is why it would be really good to have a package I can install on a existing server that can monitor a Nagios instance and send an alert if Nagios stops. And yes, it's not entirely fail-safe as exchange could be down as well or a network failure - but at that stage the monitoring won't be a primary concern.

regards.. Fred

Re: integrate Nagios with Netcool

Posted: Tue Feb 24, 2015 5:35 pm
by jolson
hanya.radwan,

I see that your question was answered above, and some suggestions were given. Would it be alright if I locked and closed this case out, or do you have further questions?

Re: integrate Nagios with Netcool

Posted: Wed Feb 25, 2015 8:24 pm
by Fred Kroeger
Yes - you can close it . I had already worked through those solutions - but adding another VM is out of the question.
Still looking for a simple script on an external server to check if NAgios is running - guess I can add that to my list of jobs!

Thanks to all for taking the time to respond. Fred

Re: integrate Nagios with Netcool

Posted: Wed Feb 25, 2015 9:13 pm
by Box293
This is my last comment, I would have PM'd Fred but his account doesn't allow it. I had to comment as there is already a script that does what he is after and I would cringe if he re-invented the wheel.
Fred Kroeger wrote:Still looking for a simple script on an external server to check if NAgios is running - guess I can add that to my list of jobs!
Just grab the script that the "Nagios XI Server" monitoring wizard uses in it's services:

/usr/local/nagios/libexec/check_nagiosxiserver.php

On a test XI box, run the wizard, create the services and you'll see what commands are created in CCM. Then you'll know how to use the check_nagiosxiserver.php plugin/script on a non-XI server.

Re: integrate Nagios with Netcool

Posted: Thu Feb 26, 2015 4:04 am
by hanya.radwan
from your replies, I create the solution which fit my Nagios environment, that is:

our company has two data centers, and Nagios exist in one of them, so I will let one server (in second data center)to check Nagios server if up or down by ping .

regards that can anyone has script to check Nagios service also if up from remote server.

Re: integrate Nagios with Netcool

Posted: Thu Feb 26, 2015 8:52 am
by scottwilkerson
You can use the following plugin that is on the Nagios XI server (just copy it)

Code: Select all

/usr/local/nagios/libexec/check_nagiosxiserver.php
help like

Code: Select all

php /usr/local/nagios/libexec/check_nagiosxiserver.php -h
the "ticket" can be found on your XI server in the URL's located at Admin -> Manage Components -> Backend API URLs

Re: integrate Nagios with Netcool

Posted: Tue Mar 10, 2015 12:31 am
by Fred Kroeger
Thanks all - the php script looks like what I was looking for - so will give that a try.
Just realised that at one of my sites the Nagios server is the only UNIX server, all the others are Windows servers, so that will test my abilities a bit to get the same thing working and alerting on a windows server.

regards... Fred

Re: integrate Nagios with Netcool

Posted: Tue Mar 10, 2015 10:26 am
by cmerchant
Let us know how that works for you on the php script. I'll leave this thread open for now. Thanks.

Re: integrate Nagios with Netcool

Posted: Thu Mar 12, 2015 9:49 pm
by Fred Kroeger
I've got what I need for now so if the OP is satisified you can close.

Thanks... Fred

Re: integrate Nagios with Netcool

Posted: Fri Mar 13, 2015 9:10 am
by jdalrymple
Were you able to sort this out hanya.radwan, or should we leave the ticket open so we can assist further?