Help with NRDS?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Help with NRDS?

Post by lmiltchev »

You can view the crontab by running the following command on the clinet:

Code: Select all

crontab -u nagios -l
The "nrds.cfg" is overwritten on update.
I'm not seeing that if it is the case.
Can you elaborate on this?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Help with NRDS?

Post by jbennett »

I am making changes to the nrds configs and they're being incrimented on the nagios server, yet when I check the client after some time, that file isn't being updated.

I'm guessing that the cron (*/1 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H <hostname> 2>&1) is what's supposed to update the nrds.cfg file?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Help with NRDS?

Post by lmiltchev »

You can run it directly:

Code: Select all

/usr/local/nrdp/clients/nrds/nrds.pl -H <hostname>
If successful, you should see something like this:

Code: Select all

Sent x checks to http://<server_ip_address>/nrdp/
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Help with NRDS?

Post by jbennett »

I guess I'm wondering why it isn't being run on it's own? Shouldn't it be?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Help with NRDS?

Post by lmiltchev »

So it works when you run it manually, but it's not running as a cron job? I am not sure what you mean.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Help with NRDS?

Post by jbennett »

when I run it manually, I get the following:

Code: Select all

Sent 42 checks to http://xxx.xxx.xxx.xxx/nrdp/
Yet, when I check nrds.cfg, it's still at the first version and has not updated with the changes that I made on the Nagios server.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Help with NRDS?

Post by lmiltchev »

Can you verify the config names match on the server and the client machine?

On the client:

Code: Select all

grep "CONFIG_NAME=" /usr/local/nrdp/clients/nrds/nrds.cfg
On the Nagios XI server (from the web UI):

Code: Select all

Admin->NRDS Config Manager
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Help with NRDS?

Post by jbennett »

I've checked as of this morning and both of the boxes I'm testing on now have the newest version of configs and they match the Nagios server as far as the config name.

When I check the time stamp on these two boxes for the nrds.cfg file, it matches the 'last changed' time stamp of the configs on the Nagios server.

This doesn't follow what I was noticing yesterday.

I will be continuing to edit these configs today and will try and pinpoint how long it is taking for the files to sync.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Help with NRDS?

Post by lmiltchev »

I will be continuing to edit these configs today and will try and pinpoint how long it is taking for the files to sync.
Sure. Let us know how it is working for you. In theory, time to sync the files should be approximately equal to whatever you have in the crontab.
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Help with NRDS?

Post by scottwilkerson »

They should sync after the next check, so if your interval is 5 minutes, they should sync on that host withing 5 minutes after making a change on the XI server.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked