Issues with sending notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issues with sending notifications

Post by ssax »

Please send a fresh copy of your profile, is the contact's name exacly sms or another name?

Please show the warning notification in Home > Notifications with all the info so that we can see that as well.
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hello Ssax,
I will PM you the profile file.
The name of the contact is sms (all undercase) as you can see in the image attached.

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 »

The profile was not attached to the PM, please send it again and make sure to click the "Add the file" button after browsing and selecting the file.
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hi have you recived the updated profile?

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

Re: Issues with sending notifications

Post by ssax »

Received, reviewing now.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issues with sending notifications

Post by ssax »

So your configuration looks proper but the data in /usr/local/nagios/var/objects.cache for the sms contact differ from what your configuration shows:

Code: Select all

define contact {
	contact_name	sms
	alias	sms
	service_notification_period	sms_notification_times
	host_notification_period	sms_notification_times
	service_notification_options	r,w,u,c
	host_notification_options	r,d,u
Try this, please go to Configure > Core Config Manager > Tools > Config File Management:
- Click the Delete Files button (don't worry, it's safe, they will be rewritten)
- Then click the Write Configs button
- Then once that's done, apply configuration and send me an updated version of your profile.

Additionally, what is the output of this command:

Code: Select all

ls -l /usr/local/nagios/var/objects.cache
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hello ssax,
command output is:
-rw-r--r--. 1 nagios nagios 3008567 Sep 5 10:00 /usr/local/nagios/var/objects.c
Sent a PM with profile.
After delete and write the cash file still presents warnings and unknown in service notifications.

Code: Select all

define contact {
        contact_name    sms
        alias   sms
        service_notification_period     sms_notification_times
        host_notification_period        sms_notification_times
        service_notification_options    r,w,u,c
        host_notification_options       r,d,u
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email

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

Re: Issues with sending notifications

Post by ssax »

Please create a ticket so that we can get a remote session scheduled, your configs are proper but your objects.cache is still wrong.

Let's try this before you create the ticket. If you stop nagios:

Code: Select all

service nagios stop
Does /usr/local/nagios/var/objects.cache get removed once nagios is stopped? It should. If it doesn't, please manually remove it and then start nagios up again:

Code: Select all

service nagios start
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Issues with sending notifications

Post by nagiosEngie »

Hello,
After deleting the file and restarting Nagios the situation did not change

Code: Select all

define contact {
        contact_name    sms
        alias   sms
        service_notification_period     sms_notification_times
        host_notification_period        sms_notification_times
        service_notification_options   [color=#FF0000] r,w,u,c[/color]
        host_notification_options       [color=#FF0000]r,d,u[/color]
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
        email   [email protected]
        address1        [email protected]
        minimum_importance      0
        host_notifications_enabled      1
The UNKNOWN option remains

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

Re: Issues with sending notifications

Post by ssax »

Very strange, please create a ticket so that we can setup a remote session:

https://support.nagios.com/tickets

Thank you
Locked