Nagios Bug and Feature Tracker

All issues moved to NagiosEnterprises Github

Bug and Feature Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000659 [Nagios Core] Event Handlers feature have not tried 2014-12-29 18:08 2016-10-03 12:44
Reporter box293 View Status public  
Assigned To nagios_staff
Priority normal Resolution open  
Status closed   Product Version 4.0.8
Summary 0000659: Request to be able to update a the host_parents directive dynamically
Description When a object definition has the host_parents defined, it usually stays that way as there is a physical relationship that doesn't change.

In the virtualization world, a VM can be running on an ESXi host one moment and then at any time be moved to another ESXi host using vMotion. In Nagios, if the VM being monitored had the parent_hosts directive defined for the first ESXi host, it would be incorrect after the vMotion.

Using an event handler, it is relatively easy to update the parent_hosts directive in the object definition files, however this only applies when Nagios restarts, the runtime environment also needs to be updated. It would be beneficial to be able to use nagios.cmd to submit a command to update a hosts' host_parents directive.

You *could* issue a RESTART_PROGRAM command however this is not ideal if 30 event handlers all try to execute this around the same time.
Additional Information
Tags No tags attached.
Nagios Version 4.0.8
OS CentOS
OS Version 6.5
Attached Files

- Relationships

-  Notes
(0001338)
box293 (reporter)
2015-01-26 19:00

I am incorrect in the directive names I have used.
I was mixing up host_parents which I was seeing through a JSON CGI query whereas the object directive is parents

It should read:

When a object definition has the parents defined, it usually stays that way as there is a physical relationship that doesn't change.

In the virtualization world, a VM can be running on an ESXi host one moment and then at any time be moved to another ESXi host using vMotion. In Nagios, if the VM being monitored had the parents directive defined for the first ESXi host, it would be incorrect after the vMotion.

Using an event handler, it is relatively easy to update the parents directive in the object definition files, however this only applies when Nagios restarts, the runtime environment also needs to be updated. It would be beneficial to be able to use nagios.cmd to submit a command to update a hosts' parents directive.
(0001408)
eloyd (reporter)
2015-08-25 15:33

Second this. Would especially love if this could be changeable via writing to Nagios command pipe to make temporary changes to running Nagios config. Obviously, updating underlying config files could be done via database update and file refresh like a normal Nagios application change and there would need to be at least a minimal amount of integrity checking.

That all being said, this would be a killer addition to Nagios XI for a couple of our clients.
(0001757)
jfrickson (manager)
2016-10-03 12:44

Moved to github https://github.com/NagiosEnterprises/nagioscore/issues/268 [^]

- Issue History
Date Modified Username Field Change
2014-12-29 18:08 box293 New Issue
2014-12-29 18:08 box293 Nagios Version => 4.0.8
2014-12-29 18:08 box293 OS => CentOS
2014-12-29 18:08 box293 OS Version => 6.5
2015-01-26 19:00 box293 Note Added: 0001338
2015-08-25 15:33 eloyd Note Added: 0001408
2015-09-25 12:22 jfrickson Status new => assigned
2015-09-25 12:22 jfrickson Assigned To => nagios_staff
2016-10-03 12:44 jfrickson Note Added: 0001757
2016-10-03 12:44 jfrickson Status assigned => closed


Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker