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:
parent
757d7fa5bf
commit
7c502f025c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user