Issues with sending notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Issues with sending notifications

Post by nagiosEngie »

Hello,
I am having a strange stuation concerning notifications:
I send 2 types of notifications: emails and sms. Some events will send only emails and some will send both.

My problem consists in the fact that I want only critical events to send sms so i configured the sms contact like in sms01.jpg. But still I get sms events with warning events.

What am I missing?
Thanks
Sandro
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: Issues with sending notifications

Post by lmiltchev »

Can you show us the actual SMS WARNING notification that you received?

Log in as this xi user/contact, click on the username in the upper right corner, and go to the Notification Preferences (the "Mobile Text (SMS)" tab). Make sure that only Host Recovery, Host Down, Service Recovery, and Service Critical options are selected. Click on Update Settings.

If this doesn't solve your issue, then show the contact definition the way you see it in the objects.cache. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hi,
sorry for the ate answer I was on vacation.
About this problem I forgot to metion that sms messages are sent with a different notification command. Emails are usung the integrated email system like in image email01.jpg and use the command xi_host/service_notification_handler.
With SMS we had to use a different command because of sms gateway parsing (notify_host/service_by_email) image email02.jpg.

My notificaions settings for email and sms are in image email03 and email04. But considering I am using a different command dose this config also affect the custom command?

Sandro
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issues with sending notifications

Post by ssax »

Please PM me a copy of your profile, you can download it from Admin > System Profile > Download Profile.

Also, please let me know the specific host AND service name that you tested with that received a warning SMS so that we can look through your configuration and see what is causing it.

Also, please post the output of this command:

Code: Select all

ps aux | grep nagios.cfg
Thank you
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issues with sending notifications

Post by ssax »

Looking at your configuration it looks setup properly.

What is the output of this command (as root)?

Code: Select all

ipcs -q | grep nagios
Additionally, have you tried applying configuration to see if it'll kick something loose?
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hi,
following you can find command output

[root@EINAGXIITMI01 ~]# sudo ipcs -q | grep nagios
0xb8020080 17956864 nagios 600 0 0
0x39020080 20840449 nagios 600 0 0


SAndro
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issues with sending notifications

Post by ssax »

You have multiple kernel message queues, you should only have one, please run these commands as root and see if it resolves the issue:

Code: Select all

service nagios stop
service ndo2db stop
pkill -9 nagios
killall -9 nagios
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service ndo2db start
service nagios start
Thank you
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hello ssax,
I killed everything :-D. I will keep an eye if the problem will represent it's self.

Thanks for your help.

SAndro
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issues with sending notifications

Post by ssax »

Ok, great, let us know if it happens again.
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hi I got a warning message on SMS again.
Just to be clear, I have a check that will check disk occupation. >95 Warning >98 CRITICAL
MEssage settings for this check image smsmes01.jpg. Contact has sms as a destination and the contact group has a set of contact emails.

If I look at my notification sms smsmes02.jpg . As seen in image Warning sms notificatio is not selected. But I still got an sms with warning in it.

I am unable to find a solution.

Sandro
You do not have the required permissions to view the files attached to this post.
Locked