template inheritance issue, and a few other issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

template inheritance issue, and a few other issues

Post 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......
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: template inheritance issue, and a few other issues

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

Re: template inheritance issue, and a few other issues

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: template inheritance issue, and a few other issues

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: template inheritance issue, and a few other issues

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: template inheritance issue, and a few other issues

Post 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

}
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: template inheritance issue, and a few other issues

Post 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?
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: template inheritance issue, and a few other issues

Post 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
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: template inheritance issue, and a few other issues

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
skol
Posts: 29
Joined: Mon Jan 28, 2013 3:56 pm

Re: template inheritance issue, and a few other issues

Post 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.
Locked