Stop unconfigured objects from showing up on logs repeatedly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Stop unconfigured objects from showing up on logs repeatedly

Post 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?
Last edited by johndoe on Wed Feb 26, 2014 8:26 am, edited 1 time in total.
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Stop unconfigured objects from showing up on logs repeat

Post 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...
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Stop unconfigured objects from showing up on logs repeat

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked