Search found 1 match

by robt
Sun May 27, 2007 10:47 am
Forum: Scripts and Templates
Topic: Quick and dirty script to add devices to cacti
Replies: 139
Views: 220398

dirty way to add hosts from discover, using this script

create a php script to loop through the newly added hosts: <? $db = "cacti"; $h = "localhost"; $user = "whoever"; $pass = "cactipass"; $go = mysql_connect($h,$user,$pass); $SQL = "SELECT * from plugin_discover_hosts where ip like '10.10.%'"; $result ...