Page 2 of 2
Re: Nagios API
Posted: Mon Nov 09, 2015 3:09 pm
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?
Re: Nagios API
Posted: Mon Nov 09, 2015 3:19 pm
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.
Re: Nagios API
Posted: Wed Nov 11, 2015 3:40 pm
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?
Re: Nagios API
Posted: Wed Nov 11, 2015 9:58 pm
by Box293
Re: Nagios API
Posted: Fri Nov 13, 2015 9:47 am
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?
Re: Nagios API
Posted: Fri Nov 13, 2015 10:20 am
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?
Re: Nagios API
Posted: Fri Nov 13, 2015 12:16 pm
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.
Re: Nagios API
Posted: Fri Nov 13, 2015 1:08 pm
by gabrotherton
Please close this thread. I spoke with Trevor over e-mail and I'm going to open a support case.