Page 1 of 2
Downtime schedule command fails for one user
Posted: Thu Nov 21, 2013 1:12 pm
by matt.uebel
I have a user that attempted to schedule downtime for a host multiple times, the command was submitted through XI successfully, everything looks normal, but no downtime ever ended up being scheduled.
I attempted to schedule myself, and it worked immediately.
This user has been able to schedule downtime for other hosts without issue.
What could be causing this? How could I troubleshoot?
Re: Downtime schedule command fails for one user
Posted: Thu Nov 21, 2013 3:54 pm
by abrist
What version of XI are using?
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 10:13 am
by matt.uebel
2012R1.7
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 10:39 am
by slansing
Did they get an error mentioning they did not have access to that host?
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 10:48 am
by matt.uebel
nope. I watched him attempt to schedule as he would for any host. The result was typical with a notification that the scheduling command was well received and Nagios would get to it sooner or later.
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 12:33 pm
by lmiltchev
When you go to Home->Scheduled Downtime, do you see an entry for this host?
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 2:18 pm
by matt.uebel
The user in question attempted to create the downtime entry twice, after which we checked "Scheduled Downtime" and found nothing. Once I went through the same procedure the entry did then show up in Scheduled Downtime.
He is a User with capabilities to see all hosts and services, control all hosts and services, and access advanced features. He has been able to schedule downtime in the past.
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 3:03 pm
by lmiltchev
Start a running tail on the nagios log:
Code: Select all
tail -f /usr/local/nagios/var/nagios.log
Then try to schedule a host downtime (logged in as this user) and watch the tail. See if anything will show up in the log.
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 3:08 pm
by matt.uebel
nagios.log is extremely active. Do you know of any specific keywords I could look for to indicate downtime scheduling? I had grepped through the log looking for any mention of the host in question, and didn't find any log entries concerning downtime scheduling. Just status changes and notifications.
Re: Downtime schedule command fails for one user
Posted: Fri Nov 22, 2013 3:16 pm
by lmiltchev
Try grepping the log file, using the username. For example, I was logged in my test box as user "ludmil". I scheduled a downtime for host "Mac.60". Then I grepped nagios.log for "ludmil". See the output below:
Code: Select all
[root@testbox libexec]# grep "ludmil" /usr/local/nagios/var/nagios.log
[1385136062] EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;Mac.60;1385221500;1385225100;1;0;3600;ludmil;AUTO: test