Page 1 of 1

Stop unconfigured objects from showing up on logs repeatedly

Posted: Wed Feb 26, 2014 8:15 am
by johndoe
In my deployment we mainly use Passive checks.

I have some passive checks that are sent regularly however I do not want to configure them as of yet.

However it becomes a "problem" when constantly these messages keep popping up on the log files:
[1393420415] Warning: Check result queue contained results for host 'XXXXX', but the host could not be found! Perhaps you forgot to define the host in your config files?
... and ...
[1393420445] 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?
... and (The ones that are correctly configured) ....
[1393421045] SERVICE ALERT: XXXXXX;Current Load;OK;HARD;1;OK - load average: 0.15, 0.22, 0.21
Now I still want the objects to show up as unconfigured objects, i just want Nagios to stop logging it all the time to the logs.

How can i achieve this?

Re: Stop unconfigured objects from showing up on logs repeat

Posted: Wed Feb 26, 2014 8:26 am
by johndoe
It seems this should be an option:

Format: log_passive_checks=<0/1>
Example: log_passive_checks=1
This variable determines whether or not Nagios will log passive host and service checks that it receives from the external command file.

However i still get all the previous mentioned log entries...

Re: Stop unconfigured objects from showing up on logs repeat

Posted: Wed Feb 26, 2014 11:36 am
by sreinhardt
At this point I do not believe this is an option, as most would want to see that results are being sent, that are not yet configured. However if you wanted to submit a feature request on tracker.nagios.org, we are always open to suggestions. I ask that you open it, so that you are better able to follow its progress.