Author: Lars Michelsen <[email protected]>
Date: Thu Apr 4 11:02:10 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Thu Apr 4 11:02:10 2013 +0200
FIX: Added missing program restarted check to invalidate chaches
---
ChangeLog | 2 ++
share/server/core/sources/automap.php | 11 +++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7f44670..725bb92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
1.7.8
+Automap:
+ * FIX: Added missing program restarted check to invalidate chaches
1.7.7
Core:
diff --git a/share/server/core/sources/automap.php
b/share/server/core/sources/automap.php
index 838a2df..6623a2f 100644
--- a/share/server/core/sources/automap.php
+++ b/share/server/core/sources/automap.php
@@ -559,9 +559,16 @@ function process_automap($MAPCFG, $map_name, &$map_config)
{
unset($map_config[$object_id][$key]);
}
+function automap_program_start($p) {
+ global $_BACKEND;
+ $_BACKEND->checkBackendExists($p['backend_id'], true);
+ $_BACKEND->checkBackendFeature($p['backend_id'], 'getProgramStart', true);
+ return $_BACKEND->getBackend($p['backend_id'])->getProgramStart();
+}
+
function changed_automap($MAPCFG, $compare_time) {
- // FIXME:
- // - Nagios restarted
+ $params = $MAPCFG->getSourceParams();
+ return automap_program_start($params) > $compare_time;
}
?>
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins