A simple question about simple notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

A simple question about simple notification

Post 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
You do not have the required permissions to view the files attached to this post.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: A simple question about simple notification

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: A simple question about simple notification

Post by davide.bonicelli »

i can see the template applied from Service Management->Common Settings->Manage Templates , correct?
it's the same..
Cattura.JPG
You do not have the required permissions to view the files attached to this post.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: A simple question about simple notification

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: A simple question about simple notification

Post 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..
You do not have the required permissions to view the files attached to this post.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: A simple question about simple notification

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: A simple question about simple notification

Post 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..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: A simple question about simple notification

Post by scottwilkerson »

Is it still showing incorrect in objects.cache? Did you apply configuration after making the change?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: A simple question about simple notification

Post by davide.bonicelli »

Sure i applied the configuration after the change.
what does it mean the 'a'
notification_options a
in objects.cache?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: A simple question about simple notification

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked