Page 1 of 1
Can't cancel scheduled Service Downtime
Posted: Tue Sep 29, 2015 3:20 am
by Fred Kroeger
I have a service in downtime - the only one for that host.
Whenever I try to delete it via the GUI as nagiosadmin I get the message "Sorry, but you are not authorized to commit the specified command."
I've tried creating other downtimes for the same service on the same host and can create & remove them OK via the GUI
It's just this one entry that refuses to be removed. Even tried writing direct to the nagios.cmd file and it won't go
Code: Select all
[1443513206] DEL_SVC_DOWNTIME;85300
Any ideas on how to delete this entry - I'm running NagiosXI 2014R2.7
Thanks..... Fred
Re: Can't cancel scheduled Service Downtime
Posted: Tue Sep 29, 2015 8:17 am
by lmiltchev
Are you trying to delete the downtime logged in as nagiosadmin or another user? Can you post the service definition? Run the following commands and show the output:
Code: Select all
grep nag /etc/group
grep check_external /usr/local/nagios/etc/nagios.cfg
ll -d /usr/local/nagios/var/rw/
ll /usr/local/nagios/var/rw/
Re: Can't cancel scheduled Service Downtime
Posted: Tue Sep 29, 2015 6:58 pm
by Fred Kroeger
Sigh.... today I was able to delete the scheduled downtime - having done nothing but just letting hours elapse since I tried it last night!
I will list what I did in case it helps any future occurrences.
I scheduled 2 Service downtimes on different hosts as myself (Admin rights)
Sometime later I deleted both downtimes as myself - one was successful, the other popped up a window saying I wasn't authorised.
I then logged in as nagiosadmin and tried deleting the downtime - again message displayed not authorised.
I then logged in as myself again and created another scheduled service downtime for the same service/host - there were now two scheduled downtimes displayed.
I then deleted both - the last one was successful, the original still displayed not authorised.
I then tried inserting the DEL_SVC_DOWNTIME command in the nagios.cmd file - still couldn't delete it.
I ran a repair of the mysql d/base in case there was a corruption - then tried unsuccessfully to delete the downtime again.
Restarted Nagios - then tried unsuccessfully to delete the downtime again.
Left it overnight.......
Tried to delete the service downtime as myself - this time it was successful.
Thanks for responding Ludmil
Regards....... Fred
Re: Can't cancel scheduled Service Downtime
Posted: Wed Sep 30, 2015 8:41 am
by lmiltchev
It doesn't look like this is going to be an easy issue to troubleshoot...

Did you have a chance to run the commands I asked you to run? Any weird permissions?
You can upgrade to the latest version of XI (5R1.0). The upgrade may resolve this problem. Do you have a test server, on which you can upgrade and try to recreate the issue?
Re: Can't cancel scheduled Service Downtime
Posted: Tue Oct 27, 2015 12:42 am
by Fred Kroeger
You can close this - I have upgraded to NagiosXI5 R2.0 now.
I'll reopen this if I can recreate the problem .
Thanks.... Fred