CCM Edit Service Failing
Posted: Fri Mar 29, 2024 11:06 am
I'll try to explain the best I can and please don't ask to paste in configs/screen shots as this is a production system at work and it's not connected to the outside world.
I was used to using Nagios Core for a number of years but this office uses XI. Okay, I can deal with a GUI if I have to. So I wanted to add in a new Service. The plan was to create a new service and than apply a hostgroup (linux-servers) to it. Then, any hosts that are a member of the linux-servers group will automagically get that service check. Is that right so far?
So I created the service "Service_Compliance_Status", and I only filled out the first page assuming that everything else that needed to be filled in would have a default value - obviously it doesn't (REALLY???). So when I attempted to "Apply Configuration", it fails telling me "Invalid max_attempts, check_interval, retry_interval ...... etc.
Damn! Okay, go back into the service and edit it to include those values. Funny thing, when I click on Save, it shows no error but instead of going back to the services screen, it goes all the way back to the CCM Main page - I though that's odd! And so when I looked at the service again, sure enough, none of the edits I made were saved!
Tried it again 2 or three times and nothing. I even looked at the config for the service both via the "View Config" button as well as just cating on the host itself /usr/local/nagios/etc/services/Service_Compliance_Status.cfg" and sure enough, all that is in there is the description, hostgroup_name, check_command and register=1.
What gives? Is there an error in my underlying database? Is there a log that I can look at to see if there is an error being reported? I suspect that if I delete this service, apply configuration, then recreate the service with all the required fields, it may work but wanted to know what was wrong to begin with so I don't keep making the same mistake or, if it's a database issue, get it fixed.
I was used to using Nagios Core for a number of years but this office uses XI. Okay, I can deal with a GUI if I have to. So I wanted to add in a new Service. The plan was to create a new service and than apply a hostgroup (linux-servers) to it. Then, any hosts that are a member of the linux-servers group will automagically get that service check. Is that right so far?
So I created the service "Service_Compliance_Status", and I only filled out the first page assuming that everything else that needed to be filled in would have a default value - obviously it doesn't (REALLY???). So when I attempted to "Apply Configuration", it fails telling me "Invalid max_attempts, check_interval, retry_interval ...... etc.
Damn! Okay, go back into the service and edit it to include those values. Funny thing, when I click on Save, it shows no error but instead of going back to the services screen, it goes all the way back to the CCM Main page - I though that's odd! And so when I looked at the service again, sure enough, none of the edits I made were saved!
Tried it again 2 or three times and nothing. I even looked at the config for the service both via the "View Config" button as well as just cating on the host itself /usr/local/nagios/etc/services/Service_Compliance_Status.cfg" and sure enough, all that is in there is the description, hostgroup_name, check_command and register=1.
What gives? Is there an error in my underlying database? Is there a log that I can look at to see if there is an error being reported? I suspect that if I delete this service, apply configuration, then recreate the service with all the required fields, it may work but wanted to know what was wrong to begin with so I don't keep making the same mistake or, if it's a database issue, get it fixed.