Invalid max_check_attempts value for host
Posted: Mon Sep 23, 2019 12:52 pm
I attempted to "applyconfiguration" in the hosts section and got:
--------------------------------------------------------------------------
I tried to delete audadb31 and apply the config again but got the same error. I recreated audadb31, still got the same error. I searched this forum and found a post that said go into config file manager, delete files, write files and tail /usr/local/nagiosxi/var/cmdsubsys.log. Here is the output:
-------------------------------------
-------------------------------------
Can someone point out what I'm doing wrong, please?
Thanks,
Toney
-------------------------------------
Code: Select all
Apply Configuration
Configuration import failed.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
Error: Invalid max_check_attempts value for host 'audadb31'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/audadb31.cfg', starting on line 16)
I tried to delete audadb31 and apply the config again but got the same error. I recreated audadb31, still got the same error. I searched this forum and found a post that said go into config file manager, delete files, write files and tail /usr/local/nagiosxi/var/cmdsubsys.log. Here is the output:
-------------------------------------
Code: Select all
# tail -F /usr/local/nagiosxi/var/cmdsubsys.log
PROCESSING COMMAND ID 21...
PROCESS COMMAND: CMD=1150, DATA=remove
CMDLINE=php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncall
CMD: syncall
MSG: BPI configuration applied successfully! BPI configuration applied successfully!
OUTPUT=MSG: BPI configuration applied successfully! BPI configuration applied successfully!
RETURNCODE=0
..............................................................
PROCESSED 1 COMMANDS
..........................................................
PROCESSED 0 COMMANDS
.PROCESSING COMMAND ID 22...
PROCESS COMMAND: CMD=17, DATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
Resetting configuration permissions failed!
OUTPUT=Resetting configuration permissions failed!
RETURNCODE=3
PROCESSING COMMAND ID 23...
PROCESS COMMAND: CMD=1150, DATA=remove
CMDLINE=php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncall
CMD: syncall
MSG: BPI configuration applied successfully! BPI configuration applied successfully!
OUTPUT=MSG: BPI configuration applied successfully! BPI configuration applied successfully!
RETURNCODE=0
............................^CCan someone point out what I'm doing wrong, please?
Thanks,
Toney