Page 1 of 3
Issues with sending notifications
Posted: Fri Aug 10, 2018 3:01 am
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
Re: Issues with sending notifications
Posted: Fri Aug 10, 2018 11:09 am
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!
Re: Issues with sending notifications
Posted: Mon Aug 20, 2018 1:30 am
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
Re: Issues with sending notifications
Posted: Mon Aug 20, 2018 2:48 pm
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:
Thank you
Re: Issues with sending notifications
Posted: Thu Aug 23, 2018 10:11 am
by ssax
Looking at your configuration it looks setup properly.
What is the output of this command (as root)?
Additionally, have you tried applying configuration to see if it'll kick something loose?
Re: Issues with sending notifications
Posted: Fri Aug 24, 2018 8:23 am
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
Re: Issues with sending notifications
Posted: Fri Aug 24, 2018 10:48 am
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
Re: Issues with sending notifications
Posted: Mon Aug 27, 2018 5:26 am
by nagiosEngie
Hello ssax,
I killed everything

. I will keep an eye if the problem will represent it's self.
Thanks for your help.
SAndro
Re: Issues with sending notifications
Posted: Mon Aug 27, 2018 1:50 pm
by ssax
Ok, great, let us know if it happens again.
Re: Issues with sending notifications
Posted: Tue Aug 28, 2018 8:03 am
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