Page 2 of 3

Re: Issues with sending notifications

Posted: Tue Aug 28, 2018 2:19 pm
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.

Re: Issues with sending notifications

Posted: Thu Aug 30, 2018 3:12 am
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

Re: Issues with sending notifications

Posted: Thu Aug 30, 2018 10:57 am
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.

Re: Issues with sending notifications

Posted: Mon Sep 03, 2018 4:30 am
by nagiosEngie
Hi have you recived the updated profile?

Sandro

Re: Issues with sending notifications

Posted: Tue Sep 04, 2018 12:38 pm
by ssax
Received, reviewing now.

Re: Issues with sending notifications

Posted: Tue Sep 04, 2018 12:50 pm
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

Re: Issues with sending notifications

Posted: Wed Sep 05, 2018 3:14 am
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

Re: Issues with sending notifications

Posted: Wed Sep 05, 2018 9:02 am
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

Re: Issues with sending notifications

Posted: Thu Sep 06, 2018 9:36 am
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

Re: Issues with sending notifications

Posted: Thu Sep 06, 2018 3:09 pm
by ssax
Very strange, please create a ticket so that we can setup a remote session:

https://support.nagios.com/tickets

Thank you