Page 1 of 2

Services in Core Config Manager

Posted: Tue Sep 03, 2013 10:28 am
by hermanns
Still new to Nagios, and accidently deleted the default services in the Core Config Mgr. Now when I try to add them back it says they are duplicates.

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 10:32 am
by slansing
Can you show us the errors you get when running the write config tool?

Configure > CCM > Tools > Write Config Tool "Click the buttons from top to bottom"

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 10:33 am
by abrist
You should be able to just roll back your snapshot. Go to Admin --> Config Snapshots. Click the "Restore" link (green arrows) for the snapshot before you removed the entries in question.

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 11:15 am
by hermanns
Ok, tried to roll back from the oldest config (beginning of July) and still no services.

A little background: had to pull off of the intall/config of this instance of Nagios to work on another in a Restricted environment (which is running awesome) and now coming back after 2 months to get this one up and working good.

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 11:38 am
by hermanns
To answer the first reply when I manually add a service back, apply the config and then go back to services and it looks good. When I add the host "boa" and apply the config I get the following:

Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Current Load.cfg'...
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Current Load' on host 'boa'
Error: Could not register service (config file '/usr/local/nagios/etc/services/Current Load.cfg', starting on line 14)
Error processing object config files!

***> One or more problems was encountered while processing the config files...

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 11:44 am
by abrist
Looks .like you are missing some required fields. How are you adding the host? If you are doing so through the ccm, you should probably apply a template or fill in the required fields.

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 12:29 pm
by hermanns
Adding hosts through CCM. Missing fields in the host or in the service?

Everything looks fine compared to our parallel Restricted instance...

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 1:02 pm
by abrist
Did you also check the templates on the service "Current Load" on Boa? You need to set (either on the object, or through a template):

Code: Select all

Invalid max_attempts
check_interval
retry_interval
notification_interval value

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 4:15 pm
by hermanns
On the host I had prior to deleting the service set the:

Max attemps = 3
Check interval =15
Retry =5
Check Period = 24x7

Re: Services in Core Config Manager

Posted: Tue Sep 03, 2013 4:16 pm
by hermanns
I think the real issue is that the default services were set up on install, I used them for about 50 hosts and then deleted them. Now if I try to add them back it acts like they are already there.