Recurring downtime not visible to user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gergelynemeth
Posts: 7
Joined: Wed Mar 21, 2018 3:15 am

Recurring downtime not visible to user

Post by gergelynemeth »

Issue we found in version 5.6.13:

A user created a Recurring Downtime to a service, but after successfully creating it, it is not visible to him in the list.
The user is added as contact to both the host and the service.

He sees the scheduled downtimes that are automatically created in the "Scheduld Downtime" menu, but not the Recurring Downtime.
As a test we tried to remove the whole recurringdowntime.cfg and he created the downtime again, but still didn't saw it.

The recurring downtime is visible for the admins for example.
Can you tell us what we should tune for the user to be able to see the recurring downtimes created by him?
gergelynemeth
Posts: 7
Joined: Wed Mar 21, 2018 3:15 am

Re: Recurring downtime not visible to user

Post by gergelynemeth »

One addition to this:

If the user creates a recurring downtime for the host itself (not for a service associated to it), that one is visible for him.
But stil not the one for the service.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Recurring downtime not visible to user

Post by ssax »

The recurring downtime is processed every minute, you can force it to process by running these commands (as root):

Code: Select all

su - nagios
php /usr/local/nagiosxi/cron/recurring_downtime.php
Please attach this file:

/usr/local/nagiosxi/var/recurringdowntime.log
gergelynemeth
Posts: 7
Joined: Wed Mar 21, 2018 3:15 am

Re: Recurring downtime not visible to user

Post by gergelynemeth »

Log attached

Edit: Removed file for security reasons.
Last edited by gergelynemeth on Mon Sep 07, 2020 11:43 pm, edited 1 time in total.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Recurring downtime not visible to user

Post by ssax »

I just labbed this up in your version and I'm able to see the services added as well while logged in as the limited user.

I assume your user is a limited user? What permissions does it have in Admin > Manage Users?

Is it a contact on the host and all the services or just on the host? (or any).
gergelynemeth
Posts: 7
Joined: Wed Mar 21, 2018 3:15 am

Re: Recurring downtime not visible to user

Post by gergelynemeth »

Yes, he is a limited user with this permissions checked:
"Can control all hosts and services:"
"Can access advanced features: "
"API access:"

He's added to the host and all the services as contact.

Edit:
When he's setting the recurring downtime, and starts typing, both the host and the services are there. But after setting the recurring downtime, it is not visible anymore for him (just for the admins).
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Recurring downtime not visible to user

Post by ssax »

If you create a recurring downtime for the host, it will not create individual ones under the recurring downtime services tab (like scheduled downtime does) if you check the "Include all services on this host " box, those would be separate definitions. It works the same in XI latest.
gergelynemeth
Posts: 7
Joined: Wed Mar 21, 2018 3:15 am

Re: Recurring downtime not visible to user

Post by gergelynemeth »

We don't want to create recurring downtime for every service under the host, just a couple.
I just added this small detailfor you, that the one for the host is visible, but not for the service (created only for the required one).
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Recurring downtime not visible to user

Post by ssax »

Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/

I will PM you the booking link but please create the ticket.
Locked