From 7c502f025c2eeb7c2e9cb9e098498fb10f4e69b8 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 18 Dec 2013 16:29:20 -0800 Subject: [PATCH] cacti: re-run data queries each time we try to add graphs This should pick up new devices, etc, as well as handle the case that the host was defined in cacti before it existed. Change-Id: I011841e822ff9ae5e624c0c7c6d7b611d0e8697f --- modules/openstack_project/files/cacti/create_graphs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/openstack_project/files/cacti/create_graphs.sh b/modules/openstack_project/files/cacti/create_graphs.sh index 501d9ddb64..8f15132ad1 100644 --- a/modules/openstack_project/files/cacti/create_graphs.sh +++ b/modules/openstack_project/files/cacti/create_graphs.sh @@ -16,6 +16,8 @@ TREE_ID=`php -q add_tree.php --list-trees |grep "All Hosts"|cut -f 1` php -q add_tree.php --type=node --node-type=host --tree-id=$TREE_ID \ --host-id=$HOST_ID +php -q poller_reindex_hosts.php --id=$HOST_ID + php -q add_graphs.php --list-graph-templates \ --host-template-id=$HOST_TEMPLATE_ID | \ while read line