Services in Core Config Manager
Services in Core Config Manager
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
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"
Configure > CCM > Tools > Write Config Tool "Click the buttons from top to bottom"
Re: Services in Core Config Manager
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.
"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.
Re: Services in Core Config Manager
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.
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
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...
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
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.
"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.
Re: Services in Core Config Manager
Adding hosts through CCM. Missing fields in the host or in the service?
Everything looks fine compared to our parallel Restricted instance...
Everything looks fine compared to our parallel Restricted instance...
Re: Services in Core Config Manager
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 valueFormer 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.
"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.
Re: Services in Core Config Manager
On the host I had prior to deleting the service set the:
Max attemps = 3
Check interval =15
Retry =5
Check Period = 24x7
Max attemps = 3
Check interval =15
Retry =5
Check Period = 24x7
Re: Services in Core Config Manager
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.