Page 8 of 9
Re: Help with NRDS?
Posted: Wed May 15, 2013 2:30 pm
by lmiltchev
You can view the crontab by running the following command on the clinet:
The "nrds.cfg" is overwritten on update.
I'm not seeing that if it is the case.
Can you elaborate on this?
Re: Help with NRDS?
Posted: Wed May 15, 2013 2:46 pm
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?
Re: Help with NRDS?
Posted: Wed May 15, 2013 3:03 pm
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/
Re: Help with NRDS?
Posted: Wed May 15, 2013 3:31 pm
by jbennett
I guess I'm wondering why it isn't being run on it's own? Shouldn't it be?
Re: Help with NRDS?
Posted: Wed May 15, 2013 3:48 pm
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.
Re: Help with NRDS?
Posted: Wed May 15, 2013 3:57 pm
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.
Re: Help with NRDS?
Posted: Wed May 15, 2013 4:25 pm
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):
Re: Help with NRDS?
Posted: Thu May 16, 2013 7:50 am
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.
Re: Help with NRDS?
Posted: Thu May 16, 2013 11:53 am
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.
Re: Help with NRDS?
Posted: Thu May 16, 2013 11:55 am
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.