I have an odd issue. I got a call about getting errors when trying to apply change to services. I tested and deleted the problem service in question after trying to fix the problem service. Then, I tried again and I got an error on another service. I removed that service then another service popped up with same error. So, I decided to rollback. I kept rolling back the snapshot (good ones) and was still getting errors on the config. Finally, one from 1/13 took after I tried in 3 times. It applied it all and green to go So,, I decided to make a small change to a service and just remove a contact for a service....BOOM. it failed again. The error start the same for any service. "Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service". it changes changes to different service and one I happen to touch after rolling to a good config. It looks like it does not want to apply anything new to a service.
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'OSPF_Peer_10.55.11.1' on host 'O1 - CACAO1-PSWC01'
Error: Could not register service (config file '/usr/local/nagios/etc/services/O1 - CACAO1-PSWC01.cfg', starting on line 120)
I reboot everything and tried again. I can at least get back to the original snap, but I can't change 1 thing now.
I am running Nagios XI 2014R2.3. Need help. This is just wrong...
Can't change services w/o error
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Can't change services w/o error
This sounds like a bug that appeared in a recent version.
At the command line type:
If the result starts with sudo, remove the "sudo" from #44 in the file:
/usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
Change from:
sudo ./manage_services.sh restart nagios
To:
Save and try Apply Configuration now.
At the command line type:
Code: Select all
grep manage_services /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh/usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
Change from:
sudo ./manage_services.sh restart nagios
To:
Code: Select all
./manage_services.sh restart nagiosAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Can't change services w/o error
It did not work. I get the same error. I looked at a thread which talks about a sudo problem and tried that too.
I posted the service definition below. I just change the 60 to 50 in the interval. A minor to any service like this and it kick out an error.
Now it is.
[root@nagios sudoers.d]# grep manage_services /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
./manage_services.sh restart nagios
define service {
host_name O1 - CACAO1-PSWC01
service_description OSPF_Peer_10.55.11.1
check_command check_ospf.0.1.pl!-C GraVisNm-v 2!-p 10.55.11.1!!!!!
check_period xi_timeperiod_24x7
notification_interval 50
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,f,s,
contacts kavhad,prajan,sabraham,vburshteyn,wnie
register 1
I posted the service definition below. I just change the 60 to 50 in the interval. A minor to any service like this and it kick out an error.
Now it is.
[root@nagios sudoers.d]# grep manage_services /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
./manage_services.sh restart nagios
define service {
host_name O1 - CACAO1-PSWC01
service_description OSPF_Peer_10.55.11.1
check_command check_ospf.0.1.pl!-C GraVisNm-v 2!-p 10.55.11.1!!!!!
check_period xi_timeperiod_24x7
notification_interval 50
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,f,s,
contacts kavhad,prajan,sabraham,vburshteyn,wnie
register 1
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Can't change services w/o error
I think this might be better handled in a support ticket. Please send an email to [email protected] and reference this forum post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.