Nagios XI Notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Nagios XI Notifications

Post by rferebee »

Good morning,

I'm a bit confused this morning, so I'd love some clarification.

If the Notification interval for a service check is set to 1440 (one day) and the First notification delay is set to nothing (blank), then when a status changes on that service check the notification should go out immediately and then once every 1440 minutes there after, correct?

I created several service checks yesterday and a few of them started out Critical, but have yet to send out a notification. I thought I understood how this works, but it seems I do not. The First notification delay setting doesn't 'need' to be set, right?

Thank you.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Nagios XI Notifications

Post by rferebee »

Here's a screenshot if the service check Alert Settings in question.
You do not have the required permissions to view the files attached to this post.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Nagios XI Notifications

Post by mbellerue »

I'd just like to confirm a couple of things. First, what is the check interval set to? And second, about what time yesterday were these service checks created?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Nagios XI Notifications

Post by rferebee »

See attached for check intervals screenshot.

The service checks were added shortly after 10:30AM PST yesterday.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Notifications

Post by lmiltchev »

If the Notification interval for a service check is set to 1440 (one day) and the First notification delay is set to nothing (blank), then when a status changes on that service check the notification should go out immediately and then once every 1440 minutes there after, correct?
This is correct - the notification should go out immediately, provided the service went to a HARD non-OK state, the service is not flapping, it's not in a scheduled downtime, and the host it is attached to is not DOWN. After a notification is sent, you should get re-notified in 1440 minutes, provided the service is sitll in a non-OK state.
Service - notification interval

This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still in a non-OK state. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this service - only one problem notification will be sent out.

Parameter name: notification_interval
Required: yes
I created several service checks yesterday and a few of them started out Critical, but have yet to send out a notification. I thought I understood how this works, but it seems I do not. The First notification delay setting doesn't 'need' to be set, right?
The first notification delay is optional - it doesn't have to be set. Does nagios *think* a notification was sent? Do you see an entry in the Notifications report? I would recommend that you start troubleshooting your issue by following all of the steps, outlined in the KB article below:

https://support.nagios.com/kb/article/n ... ms-36.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Nagios XI Notifications

Post by rferebee »

I just tried to send a custom notification and that didn't even go through. I'm getting other notifications, just not ones from these servers it would seem.

I'm not seeing anything in the logs to indicate why the message isn't being sent. It's almost as if Nagios XI doesn't even see it happening.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Notifications

Post by lmiltchev »

Is your contact a member of any of the two contact groups that are assigned to this service? Is this a "contact only" or a "xi user" (who is also a contact)? Can you show us the contact definition, along with the notification command, and any templates that are being used in the contact definition?
I'm not seeing anything in the logs to indicate why the message isn't being sent. It's almost as if Nagios XI doesn't even see it happening.
What log did you check the /var/log/maillog or /usr/local/nagiosxi/tmp/phpmailer.log? Are you using Sendmail or SMTP to send emails?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Nagios XI Notifications

Post by rferebee »

Do I need to be a member of the contact group to be able to send a custom notification to it? As a Nagios Admin I figured it would just send the notification to whomever is in the contact group assigned to the service.

I'm not sure what you mean by "contact definition". The template being used for the contacts in this particular contact group is just the "xi_contact_generic" that we use for everything.

We're using Sendmail and I checked the /var/log/maillog.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI Notifications

Post by ssax »

No, it will only go to the contacts defined on the host/service:

Send Custom Notification:

This command is used to send a custom notification about the specified host. Useful in emergencies when you need to notify admins of an issue regarding a monitored system or service. Custom notifications normally follow the regular notification logic in Nagios. Selecting the Forced option will force the notification to be sent out, regardless of the time restrictions, whether or not notifications are enabled, etc. Selecting the Broadcast option causes the notification to be sent out to all normal (non-escalated) and escalated contacts. These options allow you to override the normal notification logic if you need to get an important message out.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Nagios XI Notifications

Post by rferebee »

Ok, so we're back at square one.

I forced a custom notification and it was not sent.

Would you like me to PM you my system profile, so you can take a look?
Locked