Need Help with Apply configs on NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sandbox
Posts: 2
Joined: Tue Feb 26, 2019 5:00 pm

Need Help with Apply configs on NagiosXI

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need Help with Apply configs on NagiosXI

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sandbox
Posts: 2
Joined: Tue Feb 26, 2019 5:00 pm

Re: Need Help with Apply configs on NagiosXI

Post 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
#
####################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need Help with Apply configs on NagiosXI

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked