Page 1 of 1

Warning not counted in configuration apply, FYI

Posted: Wed Oct 14, 2020 8:28 am
by Bitflogger
Hello, I'm running 5.6.14 on a 64-bit VM CentOS 7 system.

I tend to use the end key to see the warning and critical counts of the configuration apply results e-mail. I was surprised to find out I had a warning that was not counted. And I did not see it for a while because of my use of the end key.

The output comes from a cron job: 05 7,12,17 * * 1-5 nagios /usr/local/nagiosxi/scripts/reconfigure_nagios.sh

FYI, you can lock the call.

Earl

No entry for terminal type "unknown";
using dumb terminal settings.

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions Setting configuration
> file/directory permissions Setting perfdata directory and RRD
> permissions Setting libexec directory permissions Setting Nagios XI
> config permissions Setting NOM checkpoint user:group permissions
> + Setting Nagios Core corelog.newobjects user:group permissions
> + Setting CCM configuration file user:group permissions Setting
> + Recurring Downtime file user:group permissions Setting BPI
> + configuration file user:group permissions
--------------------------------------

--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/ Importing
> config files into the CCM
No files to import
--------------------------------------

--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
Finished writing out configuraton
--------------------------------------

--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 2019-08-20
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'w_load' on host '****.***.wisc.edu' (config file '/usr/local/nagios/etc/services/w_load_nsclient_05.cfg', starting on line 16)
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 15234 services.
Checked 774 hosts.
Checked 84 host groups.
Checked 9 service groups.
Checked 476 contacts.
Checked 359 contact groups.
Checked 281 commands.
Checked 79 time periods.
Checked 0 host escalations.
Checked 375 service escalations.
Checking for circular paths...
Checked 774 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 79 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------

Re: Warning not counted in configuration apply, FYI

Posted: Wed Oct 14, 2020 4:54 pm
by ssax
That is by design, only the warnings/errors from the pre-flight check are counted.

Re: Warning not counted in configuration apply, FYI

Posted: Wed Oct 14, 2020 5:17 pm
by Bitflogger
Ok. So an infinite number of non-preflight warnings are ignored?

I like to keep it completely clean.

Please lock the case.

Earl

Re: Warning not counted in configuration apply, FYI

Posted: Thu Oct 15, 2020 2:31 pm
by ssax
Ok. So an infinite number of non-preflight warnings are ignored?
Correct. if you'd like to submit a feature request for that to be added you can request it here:

https://github.com/NagiosEnterprises/nagioscore/issues

Locking the thread.