Page 1 of 3

Unconfigured objects not showing up

Posted: Thu Apr 11, 2013 9:12 am
by johndoe
Recently i've had no unconfigured objects showing up, they are using NRDP and they reach the server as can be seen from the logs.
Apr 11 14:10:00 localhost nagios: Warning: Check result queue contained results for service 'MySQL' on host 'testhost' but the service could not be found! Perhaps you forgot to define the service in your config files?
This has happened in the past but i can't recall how it was solved (I guess it was solved on the Customer NAGIOS XI forum which now i have no access to).

Nagios XI 2012R1.6

Re: Unconfigured objects not showing up

Posted: Thu Apr 11, 2013 9:25 am
by slansing
Are these NRDP plugin results coming from a Windows server or a Linux server? Has this happened to all of your NRDP objects? Troubleshooting steps will be different for each.

Re: Unconfigured objects not showing up

Posted: Thu Apr 11, 2013 9:27 am
by johndoe
Hi slansing, the normal checks for the machine for objects that are already configured show up, just new ones don't.

They are coming from a linux server (any linux server with a new object to be configured)

Re: Unconfigured objects not showing up

Posted: Thu Apr 11, 2013 12:59 pm
by lmiltchev
When you run on the client:

Code: Select all

crontab -u nagios -l
do you see the "testhost" in there?

Re: Unconfigured objects not showing up

Posted: Fri Apr 12, 2013 3:45 am
by johndoe
I actually see no crontab for the user

Code: Select all

# crontab -u nagios -l
no crontab for nagios

Re: Unconfigured objects not showing up

Posted: Fri Apr 12, 2013 2:28 pm
by lmiltchev
Do you see any errors if you try to reinstall NRDS on the client machine?

Code: Select all

./installnrds HOSTNAME INTERVAL
You can view all of the commands you need to run on the client under the NRDS Config Manager. Click on the "Client Install Instructions" next to your config.

Are there any spaces in the hostname, that you are using?

Re: Unconfigured objects not showing up

Posted: Mon Apr 15, 2013 7:27 am
by johndoe
it's NRDP not NRDS.. I believe the problem lies on the SERVER, not the CLIENT :)

Re: Unconfigured objects not showing up

Posted: Mon Apr 15, 2013 11:00 am
by slansing
Please run the following:

Code: Select all

tail -50 /var/log/messages

tail -50 /usr/local/nagios/var/nagios.log
Please reply with this information and wrap it in

Code: Select all

  wrap.

Re: Unconfigured objects not showing up

Posted: Tue Apr 16, 2013 6:10 am
by johndoe
Hi Slansing, i have cut this down to fewer lines, some are just repeated OK statuses so not of much value... also the hosts were hidden for security however as previously stated on a previous message you can see there the " Check result queue contained results for service 'TIME' on host 'XXXXX', but the service could not be found! Perhaps you forgot to define the service in your config files?" this tells me that the checks are reaching the server, so no issue with the client here i guess?

Code: Select all

[...]
Apr 16 10:52:19 localhost nagios: Warning: The results of service 'TIME' on host 'XXXXX' are stale by 0d 0h 1m 0s (threshold=0d 0h 4m 0s).  I'm forcing an immediate check of the service.
Apr 16 10:52:19 localhost nagios: Warning: The results of service 'Swap Usage' on host 'XXXXX' are stale by 0d 0h 1m 0s (threshold=0d 0h 4m 0s).  I'm forcing an immediate check of the service.
Apr 16 10:52:19 localhost nagios: Warning: The results of service 'PING' on host 'XXXXX' are stale by 0d 0h 1m 0s (threshold=0d 0h 4m 0s).  I'm forcing an immediate check of the service.
Apr 16 10:52:19 localhost nagios: Warning: The results of service 'TIME' on host 'XXXXX' are stale by 0d 0h 1m 0s (threshold=0d 0h 4m 0s).  I'm forcing an immediate check of the service.
Apr 16 10:52:24 localhost nagios: SERVICE ALERT: vXXXXX;Memory;OK;HARD;1;OK - 22.4% (1718372 kB) used.
Apr 16 10:52:27 localhost rsyslogd-2177: imuxsock begins to drop messages from pid 10577 due to rate-limiting
Apr 16 10:52:28 localhost rsyslogd-2177: imuxsock lost 52 messages from pid 10577 due to rate-limiting
Apr 16 10:52:34 localhost nagios: Warning: Check result queue contained results for service 'PING' on host 'XXXXX', but the service could not be found!  Perhaps you forgot to define the service in your config files?
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;PING;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 0.05 ms
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Memory;OK;HARD;1;OK - 23.2% (1176488 kB) used.
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Current Load;OK;HARD;1;OK - load average: 0.08, 0.10, 0.13
Apr 16 10:52:34 localhost nagios: Warning: Check result queue contained results for service 'NAS' on host 'XXXXX', but the service could not be found!  Perhaps you forgot to define the service in your config files?
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Current Load;OK;HARD;1;OK - load average: 0.01, 0.06, 0.11
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;HTTPS;OK;HARD;1;HTTP OK: HTTP/1.1 200 OK - 4736 bytes in 0.387 second response time
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Memory;OK;HARD;1;OK - 62.6% (5118156 kB) used.
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Memory;OK;HARD;1;OK - 47.6% (4876364 kB) used.
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Memory;OK;HARD;1;OK - 31.2% (1907100 kB) used.
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Memory;OK;HARD;1;OK - 38.2% (2337784 kB) used.
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;PING;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 0.06 ms
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Current Load;OK;HARD;1;OK - load average: 0.54, 0.45, 0.51
Apr 16 10:52:34 localhost nagios: SERVICE ALERT: XXXXX;Current Load;OK;HARD;1;OK - load average: 0.36, 0.29, 0.15
Apr 16 10:52:34 localhost nagios: Warning: Check result queue contained results for service 'TIME' on host 'XXXXX', but the service could not be found!  Perhaps you forgot to define the service in your config files?
[...]
Same here:

Code: Select all

[1366110104] SERVICE ALERT: XXXXX;Memory;OK;HARD;1;OK - 37.8% (24935388 kB) used.
[1366110104] SERVICE ALERT: XXXXX;Root Partition;OK;HARD;1;DISK OK - free space: / 7784 MB (85% inode=94%):
[1366110104] SERVICE ALERT: XXXXX;Total Processes;OK;HARD;1;PROCS OK: 127 processes with STATE = RSZDT
[1366110104] Warning: Check result queue contained results for service 'SSH' on host 'XXXXX', but the service could not be found!  Perhaps you forgot to define the service in your config files?
[1366110104] SERVICE ALERT: XXXXX;Root Partition;OK;HARD;1;DISK OK - free space: / 7579 MB (83% inode=94%):
[1366110105] SERVICE NOTIFICATION:XXXXX;XXXXX;Root Partition;OK;xi_service_notification_handler;DISK OK - free space: / 7579 MB (83% inode=94%):
[1366110105] SERVICE ALERT: XXXXX;TIME;OK;HARD;1;TIME OK - 1 second time difference

Re: Unconfigured objects not showing up

Posted: Tue Apr 16, 2013 1:46 pm
by scottwilkerson
Is the feedproc cron running?

Code: Select all

ps -ef |grep feedproc
If so, are you getting any errors when tailing this log

Code: Select all

tail -f /usr/local/nagiosxi/var/feedproc.log