hi ,
i am having issues where i can add the device but not able to add them onto tree subtree header. script is below in bash.
can you also help me for a correct syntax to delete and disable the device .
my device list is stored in simple text file, and it works with vmware. this is for datacenter where we have new vm's added and removed on very frequent basis.
devicelist=cat /home/syed/list
add_device=/var/www/html/cacti/cli/add_device.php
for i in $(cat /home/syed/list); do
php -q $add_device --description=$i --ip=$i --avail="ping" --ping_method="tcp"
done
wait
add device using command line and place it onto existing tre
Moderators: Developers, Moderators
Re: add device using command line and place it onto existing
-----------------syedali wrote:hi ,
i am having issues where i can add the device but not able to add them onto tree subtree header. script is below in bash.
can you also help me for a correct syntax to delete and disable the device .
my device list is stored in simple text file, and it works with vmware. this is for datacenter where we have new vm's added and removed on very frequent basis.
devicelist=cat /home/syed/list
add_device=/var/www/html/cacti/cli/add_device.php
for i in $(cat /home/syed/list); do
php -q $add_device --description=$i --ip=$i --avail="ping" --ping_method="tcp"
done
wait
i can get to display header but not able to select and list hosts in that header
[root@thomsons-noc cli]# php -q add_tree.php --list-nodes --tree-id=13 --node-type=header
Known Tree Nodes:
type id parentid title attribs
Header 618 N/A test Alphabetic Ordering
Header 1430 N/A qa-auto Manual Ordering (No Sorting)
Re: add device using command line and place it onto existing
That would be because I think you've miss the one important step. Adding the new device to the tree.
You can do this manually I think using the same cli/* scripts (though I've never used these in anger so I am not sure) or use automation rules to place them
You can do this manually I think using the same cli/* scripts (though I've never used these in anger so I am not sure) or use automation rules to place them
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 1 guest