Page 1 of 2

template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 2:00 pm
by skol
I've got a few issues - if I could get some assistance with. Thanks in advance!

1. I've got a service which is utilizing a service template. However, looking at the nagios XI interface, at the service detail it shows Active Checks, Passive Checks, Notifications, and Performance Data red (disabled). I've specifically enabled these options in the template. Looking through the database:

Code: Select all

mysql> select id,template_name,display_name,active_checks_enabled,passive_checks_enabled,process_perf_data from tbl_servicetemplate where template_name = "my-template";
+----+-----------------+--------------+-----------------------+------------------------+-------------------+
| id | template_name   | display_name | active_checks_enabled | passive_checks_enabled | process_perf_data |
+----+-----------------+--------------+-----------------------+------------------------+-------------------+
| 71 | my-template |              |                     1 |                      1 |                 1 | 
+----+-----------------+--------------+-----------------------+------------------------+-------------------+

mysql> select id,host_name,active_checks_enabled,passive_checks_enabled,process_perf_data from tbl_service where service_description = 'my_service';
+----+-----------+-----------------------+------------------------+-------------------+
| id | host_name | active_checks_enabled | passive_checks_enabled | process_perf_data |
+----+-----------+-----------------------+------------------------+-------------------+
| 93 |         1 |                     2 |                      2 |                 2 | 
+----+-----------+-----------------------+------------------------+-------------------+


So it seems the relationship is jacked up somehow? I've tried removing/re-adding and writing configs/restarting nagios, also removing and re-adding the service and/or template to no avail. I was trying to debug a missing/broken performance graph issue which lead me down this road - as now all hosts/services display "No performance graphs were found for this service." (probably because its disabled.. :)


2. While taking my pre-staged configs from the development box and pushing them to the prod boxes, it seems nagios thinks that it is one version behind. I did the following:

- backup nagiosdev box (version 2012R1.5)
- build nagiosprod box (version 2012R1.6)
- restore backup from nagiosdev to nagiosprod
- current version on nagiosprod shows 2012R1.6 but prompts you that there is a new version available

Hindsight I should of upgraded the dev box.. :)


3. When "Applying Configuration" it sits there indefinitely displaying

Code: Select all

Command submitted for processing...
Waiting for configuration verification......

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 2:03 pm
by skol
skol wrote:uration" it sits there indefinitely displaying

Code: Select all

Command submitted for processing...
Waiting for configuration verification......
Nevermind on this issue #3, looks like I've solved it.

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 2:26 pm
by scottwilkerson
There is an additional layer beyond the configurations & templates and that us the runtime layer. If you have specifically disabled any of them on a host/service detail page it will use that setting and the most authoritative.

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 2:28 pm
by skol
scottwilkerson wrote:There is an additional layer beyond the configurations & templates and that us the runtime layer. If you have specifically disabled any of them on a host/service detail page it will use that setting and the most authoritative.
I haven't done anything other then set the configurations using the XI interface.

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 2:42 pm
by sreinhardt
could you send a sanatized copy of one of service configs causing an issue for you?

Also as for the versioning issue, you can always run the update script again and it should correct that without causing issues.

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 2:59 pm
by skol

Code: Select all

define service {
        host_name                       my_hostname
        service_description             my_hostname_my_port
        use                             my_service_template
        hostgroup_name                  my_hostgroup
        servicegroups                   my_service_group
        check_command                   check_service!my_port!!!!!!!
        register                        1
        }

define service {
       name                                     my_service
       service_description                      my_service
       use                                      my_general_service
       check_command                            check_service!!!!!!!!
       is_volatile                              0
       initial_state                            u
       max_check_attempts                       4
       check_interval                           1
       retry_interval                           1
       active_checks_enabled                    1
       passive_checks_enabled                   1
       check_period                             24x7
       check_freshness                          0
       event_handler_enabled                    0
       flap_detection_enabled                   1
       flap_detection_options                   o,w,c,u,
       process_perf_data                        1
       retain_status_information                1
       retain_nonstatus_information             1
       notification_interval                    60
       notification_period                      24x7
       notification_options                     w,c,u,r,f,s,
       notifications_enabled                    1
       contacts                                 my_contact
       notes_url                                http://my_url
       register                                 0

}

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 3:18 pm
by slansing
It looks like they are indeed enabled, as this is the file that is read by Nagios Xi postgres portion, if they are still showing as red, can you send us a screenshot of the page you are looking at? Have you applied configuration lately? Did it fail? Is the monitoring engine running?

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 4:02 pm
by skol
slansing wrote:It looks like they are indeed enabled, as this is the file that is read by Nagios Xi postgres portion, if they are still showing as red, can you send us a screenshot of the page you are looking at? Have you applied configuration lately? Did it fail? Is the monitoring engine running?
I have applied lately, and it succeeded. The monitoring engine is in fact running.
xi1.png
xi2.png

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 4:13 pm
by abrist
Lets make sure they are not disabled in the core interface.

Browse to: http://<XI Server IP>/nagios/
Click "Process Info" Under the "System" nav header.
In the right hand pane under "process commands" you will see a handful of disable/enable options. Make sure these are correct.

Re: template inheritance issue, and a few other issues

Posted: Mon Mar 25, 2013 4:27 pm
by skol
abrist wrote:Lets make sure they are not disabled in the core interface.

Browse to: http://<XI Server IP>/nagios/
Click "Process Info" Under the "System" nav header.
In the right hand pane under "process commands" you will see a handful of disable/enable options. Make sure these are correct.
Yep, they are all correct.