Downtime schedule command fails for one user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Downtime schedule command fails for one user

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Downtime schedule command fails for one user

Post by abrist »

What version of XI are using?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Re: Downtime schedule command fails for one user

Post by matt.uebel »

2012R1.7
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Downtime schedule command fails for one user

Post by slansing »

Did they get an error mentioning they did not have access to that host?
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Re: Downtime schedule command fails for one user

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

Re: Downtime schedule command fails for one user

Post by lmiltchev »

When you go to Home->Scheduled Downtime, do you see an entry for this host?
Be sure to check out our Knowledgebase for helpful articles and solutions!
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Re: Downtime schedule command fails for one user

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

Re: Downtime schedule command fails for one user

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
matt.uebel
Posts: 84
Joined: Thu Jun 20, 2013 7:43 am

Re: Downtime schedule command fails for one user

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

Re: Downtime schedule command fails for one user

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked