Page 1 of 2

Error: User does not have a valid timeperiod for deployment

Posted: Tue Oct 20, 2015 1:58 pm
by gormank
Hi,
When trying to set up SMS notifications in Notification Settings Management I get the following error: User does not have a valid timeperiod for deployment. The timeperiod will have to be configured from the Core Config Manager.

I’ve tried creating a time period for one of the users, but that had no effect.
How to fix this?

I also need to know more about the whole notification process. Everytime I change the settings it stops working and it takes hours to fix it. Right now, no notifications work but all the settings seem ok.

Thanks

Re: Error: User does not have a valid timeperiod for deploym

Posted: Tue Oct 20, 2015 2:35 pm
by tmcdonald
Would you like to continue here or in the ticket you have opened? We like to focus our efforts only in one area.

Re: Error: User does not have a valid timeperiod for deploym

Posted: Tue Oct 20, 2015 2:53 pm
by gormank
Here is fine. Email seems to be the slow boat...
I'm getting the impression that a change in notification settings requires that the Enable or disable notifications for the selected users checkbox be set/unset, or unset/set in order for the notifications to go out. There's something odd there.

Re: Error: User does not have a valid timeperiod for deploym

Posted: Tue Oct 20, 2015 3:25 pm
by tmcdonald
gormank wrote:Here is fine. Email seems to be the slow boat...
Really depends on the day. With the forum you have every one of our techs available to answer, but in tickets we assign them to just one or two techs (though the others can still chime in). With tickets you get the benefit of being able to do a remote, and information you share is not posted publicly, so things like the profile that might have sensitive information can speed things up. Somewhat of a trade-off for speed vs depth.
gormank wrote:I'm getting the impression that a change in notification settings requires that the Enable or disable notifications for the selected users checkbox be set/unset, or unset/set in order for the notifications to go out. There's something odd there.
The following guides should explain a bit more about how users and contacts correlate:

https://assets.nagios.com/downloads/nag ... ntacts.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... iables.pdf

The last one is more specific to notifications. My guess is the contact you have for that host does not have a time period defined, or does not have one that is valid.

Re: Error: User does not have a valid timeperiod for deploym

Posted: Tue Oct 20, 2015 3:47 pm
by gormank
Good info on the ticket process...
Please address the issue in the title. That's what this post is about.

Re: Error: User does not have a valid timeperiod for deploym

Posted: Tue Oct 20, 2015 3:49 pm
by tmcdonald
gormank wrote:Please address the issue in the title. That's what this post is about.
I did that in my last post at the bottom:
tmcdonald wrote:My guess is the contact you have for that host does not have a time period defined, or does not have one that is valid.
Can you post your config for the relevant contact? Or else a screenshot of the blue Info icon in the CCM for that contact.

As a side note, I have no idea why I wrote "for that host" - I meant to write "for that User".

Re: Error: User does not have a valid timeperiod for deploym

Posted: Thu Oct 22, 2015 11:15 am
by gormank
I have no idea how posting links to documentation will fix an error resulting from running a command on the system.
I created a time period for the user and still get an error saying the user has no time period.

Re: Error: User does not have a valid timeperiod for deploym

Posted: Thu Oct 22, 2015 11:31 am
by tgriep
Can you post the following files so we can review them?

Code: Select all

/usr/local/nagios/etc/contacts.cfg
/usr/local/nagios/etc/timeperiods.cfg
What version of Nagios XI are you running?

Re: Error: User does not have a valid timeperiod for deploym

Posted: Thu Oct 22, 2015 12:02 pm
by gormank
2.6

Re: Error: User does not have a valid timeperiod for deploym

Posted: Thu Oct 22, 2015 1:59 pm
by tgriep
The time periods definitions look fine but the contacts settings will have to be changed.
A lot of the contacts have the host_notification_period and service_notification_period set to the time period of none.
These contacts will not receive notifications. If you edit the contacts and remove the none time period, they will inherit the time period from the xi_contact_generic template which uses the 24x7 time period.
Also, some of the contacts have the host and service notifications turned off and those will have to be enabled so they will receive notifications.
Does this help out?