Page 1 of 1

Need Help with Apply configs on NagiosXI

Posted: Thu Feb 28, 2019 9:26 pm
by sandbox
Hi,
I am no able to apply configurations. Please see the error below.

Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Sandbox API Cached Manager' on host 'SandboxAPI'
Error: Could not register service (config file '/usr/local/nagios/etc/services/CachendManager.cfg', starting on line 16).

Nagios XI - System Info
Nagios XI Version : 5.4.13
nagiosxi.sj.ivt.net 2.6.32-696.6.3.el6.x86_64 x86_64
CentOS release 6.9 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Server Name: 10.10.2.79
Server Address: 10.10.2.79
Server Port: 443

Re: Need Help with Apply configs on NagiosXI

Posted: Fri Mar 01, 2019 8:30 am
by scottwilkerson
Can you go to the CCM -> Services
Select CachendManager from the Config Name Dropdown
Then click "View Config icon on the right next to one of the services

then post the output

Re: Need Help with Apply configs on NagiosXI

Posted: Fri Mar 01, 2019 7:37 pm
by sandbox
Hi Scott - Please the output below.
Thanks
Mobina Baseer


###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.11
# Date: 2019-03-02 00:35:40
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define service {
host_name SandboxAPI
service_description Sandbox API Cached Manager
check_command check_nrpe!check_init_service!-a 'cachedmanager'!!!!!!
register 1
}

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
####################################################

Re: Need Help with Apply configs on NagiosXI

Posted: Mon Mar 04, 2019 8:00 am
by scottwilkerson
Ok so this check is missing some essential items as mentioned in the error.

Probably the easiest thing to do would be to apply a generic service template, otherwise you can edit the service and add the missing items on the "Check Settings" and Alert Settings tabs.