Page 1 of 3

A simple question about simple notification

Posted: Thu Jul 19, 2018 7:37 am
by davide.bonicelli
Hi, after upgrading to latest nagiosxi version 5.5.1 (or i think so) for some service i haven't recovery notification..
that's the history:

Code: Select all

11:06:59 notification about service down of the host server.ok.com
11:10:35 notification about host server.ok.com down 
11:16:48 notification about host server.ok.com recovery
..still waiting for recovery service notification that was ok in the same moment that host back up
notification config is this:
Cattura.JPG

Re: A simple question about simple notification

Posted: Thu Jul 19, 2018 8:51 am
by jomann
Can we see the template that is applied too, the skip implies it will be inheriting the value from templates and won't actually write that configuration option out.

Re: A simple question about simple notification

Posted: Thu Jul 19, 2018 9:35 am
by davide.bonicelli
i can see the template applied from Service Management->Common Settings->Manage Templates , correct?
it's the same..
Cattura.JPG

Re: A simple question about simple notification

Posted: Thu Jul 19, 2018 11:18 am
by jomann
Check in the service template where the templates are applied. You can have templates inherit from templates. You can also check in the objects.cache file in /usr/local/nagios/var/ to see the completed object, with all inherited data defined.

Returning to the original post though, you should be able to click the "Recovery" option in the Alert Settings in your first picture. That would make sure that specific service would notify on recovery. I would also click on "On" for Notification enabled too, to ensure that notifications are enabled.

Re: A simple question about simple notification

Posted: Fri Jul 20, 2018 2:14 am
by davide.bonicelli
Thanks jomann, you're right there was a template in the template..but same conditions:
Cattura.JPG
and nothing in the objects.cache file:

Code: Select all

define service {
        host_name       nagios_DustyRendering
        service_description     Nagios XI Daemons
        check_period    xi_timeperiod_24x7
        check_command   check_xi_nagiosxiserver!--address=x.x.x.x --url=https://x.x.x.x:4443/nagiosxi --username=nagiosadmin --ticket="xxxxx" --mode=daemons
        contact_groups  Monitoraggio-PRO,Monitoraggio
        notification_period     xi_timeperiod_24x7
        initial_state   o
        importance      0
        check_interval  10.000000
        retry_interval  1.000000
        max_check_attempts      5
        is_volatile     0
        parallelize_check       1
        active_checks_enabled   1
        passive_checks_enabled  1
        obsess  1
        event_handler_enabled   1
        low_flap_threshold      0.000000
        high_flap_threshold     0.000000
        flap_detection_enabled  1
        flap_detection_options  a
        freshness_threshold     0
        check_freshness 0
        notification_options    a
        notifications_enabled   1
        notification_interval   480.000000
        first_notification_delay        0.000000
        stalking_options        n
        process_perf_data       1
        retain_status_information       1
        retain_nonstatus_information    1
        _XIWIZARD       nagiosxiserver
        }
surely i could change the option for this service but i want do it for all the service i have..

Re: A simple question about simple notification

Posted: Fri Jul 20, 2018 9:26 am
by jomann
Well the place you'd probably want to change it at is one of the templates, or you can create a new template and apply the template to the services that you want to give that option to. From what I can tell, XI's default inheritance is two templates. They should have all notification_options enabled by default. We will need to test this here, if you want I would also verify on your system that if you do set the recovery option on a service that the service does notify you. If it doesn't, it is either the configuration or a bug some where.

Re: A simple question about simple notification

Posted: Fri Jul 20, 2018 10:36 am
by davide.bonicelli
i tried to modify the template and the singular service notification option, enabling all (notification options and notification enabled putting it on) but it doesn't help..i suspect a bug..

Re: A simple question about simple notification

Posted: Fri Jul 20, 2018 1:53 pm
by scottwilkerson
Is it still showing incorrect in objects.cache? Did you apply configuration after making the change?

Re: A simple question about simple notification

Posted: Mon Jul 23, 2018 5:05 am
by davide.bonicelli
Sure i applied the configuration after the change.
what does it mean the 'a'
notification_options a
in objects.cache?

Re: A simple question about simple notification

Posted: Mon Jul 23, 2018 7:14 am
by scottwilkerson
davide.bonicelli wrote:Sure i applied the configuration after the change.
what does it mean the 'a'
notification_options a
in objects.cache?
all