Page 1 of 1

NRDS checks showing up in Unconfigured Objects

Posted: Mon Jun 03, 2013 4:03 pm
by jbennett
I'm struggling with where I'm missing this.

I have renamed some checks in my NRDS config on the Nagios server. I have removed the service checks via the CCM and applied the changes.

The new, renamed checks are now configured correctly, but the old checks continue to show up in the Unconfigured objects.

Here's an example:

On my Nagios server via the CCM, this is what I see:
Config name - VES
Config Version - 0.9
Config checks -
command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[Check Users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[Check Load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[Check Disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[Check Zombie Procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[Check Total Procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[Check NTP Sync]=/usr/local/nagios/libexec/check_ntp_time -H localhost -w 0.5 -c 1
command[Disk Usage - SDA1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
command[Disk Usage - Root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/mapper/VolGroup-lv_root

On the host that continues to send the service checks that have been removed and show up in unconfigured objects -

Code: Select all

CONFIG_VERSION="0.9"
CONFIG_OS="Linux"
CONFIG_NAME="VES"
URL="http://xxx.xxx.xxx.xxx/nrdp/"
TOKEN="6nkf34brogs6"
PLUGIN_DIR="/usr/local/nagios/libexec"
SEND_NRDP="/usr/local/nrdp/clients/send_nrdp.sh"
TMPDIR="/usr/local/nrdp/clients/tmp"
COMMAND_PREFIX=""
LOG_FILE=""
UPDATE_CONFIG="1"
UPDATE_PLUGINS="1"


command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[Check Users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[Check Load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[Check Disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[Check Zombie Procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[Check Total Procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[Check NTP Sync]=/usr/local/nagios/libexec/check_ntp_time -H localhost -w 0.5 -c 1
command[Disk Usage - SDA1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
command[Disk Usage - Root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/mapper/VolGroup-lv_root
I am getting two checks for specific processes that have been removed, but were once implemented.

What am I missing?

Re: NRDS checks showing up in Unconfigured Objects

Posted: Mon Jun 03, 2013 4:09 pm
by sreinhardt
Are these still configured on the remote nrds client?

Re: NRDS checks showing up in Unconfigured Objects

Posted: Mon Jun 03, 2013 4:12 pm
by jbennett
I'm guessing you mean are they still showing in the nrds.cfg file that is on the client that sends Nagios the results of the checks? If so, that's the nrds.cfg file that I copied above. It doesn't show the checks in question and it matches the version of the config that is on the Nagios server for the client in question.

Re: NRDS checks showing up in Unconfigured Objects

Posted: Mon Jun 03, 2013 4:18 pm
by scottwilkerson
In Unconfigured objects, what is the last seen time for these checks? Is the time updating?

Re: NRDS checks showing up in Unconfigured Objects

Posted: Mon Jun 03, 2013 4:24 pm
by sreinhardt
AH :D Sorry didn't catch that for some reason. Have you verified the client nrds config is the same as the one deployed from the nagios server?(I know there were some issues a little while back) Have you restarted the nrds service on the remote client? Finally, have you cleared the unconfigured objects list since reconfiguring this, so that these are new? I am anticipating a yes to all of these, but just want to cover the bases.

Re: NRDS checks showing up in Unconfigured Objects

Posted: Tue Jun 04, 2013 8:19 am
by jbennett
After letting it sit overnight and clearing the unconfigured objects, it appears that the items that shouldn't be there, are no longer there.

I've tried to clear the items in the past, but they kept coming back.

Can someone please explain how the clearing works? Will these items stay in unconfigured objects until they have been cleared and they aren't sending check results? I've cleared some checks in the past, but they would just come back. I've also removed some checks in the past by using the little red X but they continued to come back, even though the check its self had been removed or renamed in the NRDS configs.

Re: NRDS checks showing up in Unconfigured Objects

Posted: Tue Jun 04, 2013 2:17 pm
by sreinhardt
Can someone please explain how the clearing works? I can certainly try! When a check comes into nrds\nrpd it gets put into a queue to be essentially indexed into nagios. If the services and host are known it simply throws the data at the results for the correct service\host. However if this is unknown it is put in the unconfigured objects list until it is added or removed from this list.
Will these items stay in unconfigured objects until they have been cleared and they aren't sending check results? Yes they will stay there, this is to give an opportunity to add checks that may only be intermittent or scheduled with a wide time range, such as weekly backups. We do not want to presume that something is no longer going to be used just because it has been a few days since a result was sent in.

I've cleared some checks in the past, but they would just come back. I've also removed some checks in the past by using the little red X but they continued to come back, even though the check its self had been removed or renamed in the NRDS configs.
They should only come back if the device is still reporting to the nagios server and the check has not been configured. A suggested resolution would be to remove the check on the remove agent, then remove the service from nagios to be sure it does not come in as an UCO.

Re: NRDS checks showing up in Unconfigured Objects

Posted: Thu Jun 06, 2013 9:19 am
by jbennett
Thanks so much for the clarification. This thread can be marked closed.