Useful Links:

Introducing...

NagVis is a visualization addon for the well known network managment system Nagios.

NagVis can be used to visualize Nagios Data, e.g. to display IT processes like a mail system or a network infrastructure.

Allow NagVis SOURCE to change map beyond simple state changes

0

I would like some external state to cause a NagVis map to change as directed by a NagVis SOURCE.
I have created a very simple patch to 1.7.10 to do this and hope future releases will have this feature.

I modified GlobalMapCfg::processSources to pass the previously processed sources cache to sourcesChanged (as an additional &$config argument, defaulting to null) which passes it along to my changed_SOURCE function.
My changed_SOURCE inspects a non-null config to see if it should be re-processed or not.

This is much more capable than just comparing a date/time stamp.

I created a singleton class for my SOURCE whose instance is gotten on {process,changed}_SOURCE entry.
Every changed_SOURCE invocation that decides whether process_SOURCE needs to be called increments a counter in the singleton instance and this counter is returned as its result.
This is because a single getObjectStates ajax request may end up calling changed_SOURCE twice (once before the map configuration is read and once after).
Without this logic, the first call would return true, process_SOURCE would fix things and the second would return false - which is returned to the frontend.
We need to return true to the frontend in this case.

You have the option to support ideas and featues by donating.

Features with donations will get more attention and will propably be implemented faster.

Not logged in. Please register and/or login to support a feature.

How the supporting system works

You as a supporter of a feature specify one or several things you like to give to the solver for getting the feature request solved. It can be for example a bunch of coins but some developers migth also be happy about some beer donations ;-).

Posting your donation to a feature is seen as a willigness to support this feature. It is no binding offer. Once the feature gets targeted to be solved, we will contact you with more details.

Author: rossetyler · Date: %2014-%03-%17

Comments

This allows the SOURCE to reprocess the map on an external state change at which time it can add, subtract or modify objects on the map.
I am using it to move a whole set of objects by moving the one object they are positioned relative to.
Author: rossetyler · Date: %2014-%03-%17

New comment