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
This commit is contained in:
James E. Blair 2013-12-18 16:29:20 -08:00
parent 757d7fa5bf
commit 7c502f025c

View File

@ -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