Error: User does not have a valid timeperiod for deployment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Error: User does not have a valid timeperiod for deployment

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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.
Former Nagios employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

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

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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.
Former Nagios employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

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

Post by gormank »

Good info on the ticket process...
Please address the issue in the title. That's what this post is about.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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".
Former Nagios employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

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

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

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

Post by gormank »

2.6
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

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