This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Wed May 15, 2013 2:30 pm
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?
Be sure to check out our
Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522 Joined: Mon Apr 16, 2012 3:00 pm
Post
by jbennett » Wed May 15, 2013 2:46 pm
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?
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Wed May 15, 2013 3:03 pm
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
Post
by jbennett » Wed May 15, 2013 3:31 pm
I guess I'm wondering why it isn't being run on it's own? Shouldn't it be?
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Wed May 15, 2013 3:48 pm
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
Post
by jbennett » Wed May 15, 2013 3:57 pm
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.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Wed May 15, 2013 4:25 pm
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):
Be sure to check out our
Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522 Joined: Mon Apr 16, 2012 3:00 pm
Post
by jbennett » Thu May 16, 2013 7:50 am
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.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Thu May 16, 2013 11:53 am
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:
Post
by scottwilkerson » Thu May 16, 2013 11:55 am
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.