Can't cancel scheduled Service Downtime

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Can't cancel scheduled Service Downtime

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can't cancel scheduled Service Downtime

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Can't cancel scheduled Service Downtime

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can't cancel scheduled Service Downtime

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Can't cancel scheduled Service Downtime

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