Nagios API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Nagios API

Post by gabrotherton »

I think we're working toward the right path, just talking past each other a bit. We actually have a working gateway for our CORBA interface. So that part is solved. The part we are missing is simply receiving Nagios messages. If we can somehow consume the output messages from Nagios, we can write a consumer and pass the appropriate data to the CORBA interface. I like the NRDP output idea and think that would solve our problem

If running the NRDP agent on another server will receive outbound messages from the Nagios XI server, how can we access those messages?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios API

Post by tmcdonald »

I think the idea is to run NRDP *on* your COBRA server. NRDP is nothing more than a set of PHP files that are POST-ed to using Curl or something similar. It's a web page, basically. You post to it in XML, then it writes those XML results to disk. From there you can do whatever you want with them. The hacky part comes from formatting those messages how you need them.
Former Nagios employee
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Nagios API

Post by gabrotherton »

I think this is a solution we would like to look into. Could you provide the URLs for configuring NRDP on both sides?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios API

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Nagios API

Post by gabrotherton »

Thanks. I'm getting an error when trying to create the NRDS config file whiie using the NRDS config manager interface. Do I need to make sure the config file exists in /usr/local/nrdp/configs first? Or will the NRDS configuration write to that directory?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios API

Post by lmiltchev »

Do I need to make sure the config file exists in /usr/local/nrdp/configs first? Or will the NRDS configuration write to that directory?
The NRDS Config Manager should create these files. What is the error that you are seeing in the web UI?
Be sure to check out our Knowledgebase for helpful articles and solutions!
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Nagios API

Post by gabrotherton »

Nothing useful. Just a red block at the top of the NRDS Configuration Manager window that says: Error writing to file. /usr/local/nrdp/configs/awe_update.cfg

I checked the configs directory:

drwxrwxr-x. 2 nagios nagios 4096 Nov 13 10:11 configs

So the ugo permissions look fine, owner and group are OK.

I even tried copying the .SAMPLE file in that directory to another name .cfg file. The NRDS manager saw that new file, but could not update it either.
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Nagios API

Post by gabrotherton »

Please close this thread. I spoke with Trevor over e-mail and I'm going to open a support case.
Locked