Issues with sending notifications
-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Issues with sending notifications
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
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.
Re: Issues with sending notifications
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!
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
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
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.
Re: Issues with sending notifications
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
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.cfgRe: Issues with sending notifications
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?
What is the output of this command (as root)?
Code: Select all
ipcs -q | grep nagios-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Issues with sending notifications
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
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
You have multiple kernel message queues, you should only have one, please run these commands as root and see if it resolves the issue:
Thank you
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-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Issues with sending notifications
Hello ssax,
I killed everything
. I will keep an eye if the problem will represent it's self.
Thanks for your help.
SAndro
I killed everything
Thanks for your help.
SAndro
Re: Issues with sending notifications
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
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
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.