Services in Core Config Manager

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hermanns
Posts: 19
Joined: Wed Dec 19, 2012 2:50 pm

Services in Core Config Manager

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Services in Core Config Manager

Post 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"
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Services in Core Config Manager

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
hermanns
Posts: 19
Joined: Wed Dec 19, 2012 2:50 pm

Re: Services in Core Config Manager

Post 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.
hermanns
Posts: 19
Joined: Wed Dec 19, 2012 2:50 pm

Re: Services in Core Config Manager

Post 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...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Services in Core Config Manager

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
hermanns
Posts: 19
Joined: Wed Dec 19, 2012 2:50 pm

Re: Services in Core Config Manager

Post by hermanns »

Adding hosts through CCM. Missing fields in the host or in the service?

Everything looks fine compared to our parallel Restricted instance...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Services in Core Config Manager

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
hermanns
Posts: 19
Joined: Wed Dec 19, 2012 2:50 pm

Re: Services in Core Config Manager

Post 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
hermanns
Posts: 19
Joined: Wed Dec 19, 2012 2:50 pm

Re: Services in Core Config Manager

Post 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.
Locked