I am running Cacti 0.8.5 and polling around 1700 polls (I need to extend this to around 2200). I try several time to run cactid but with no luck. For now I stay with cmd.php poller.
I query many Cisco and servers on 5 main locations. Because the cdm.php took longer than 5 min. so I run the cmd.php 30 times. Each of the script runs a different portion of the polling (each script does 100 polls).
Code: Select all
cmd00.php:#$polling_items = db_fetch_assoc("select * from data_input_data_cache");
cmd00.php:$polling_items = db_fetch_assoc("select * from data_input_data_cache limit 0,100");
cmd01.php:#$polling_items = db_fetch_assoc("select * from data_input_data_cache");
cmd01.php:$polling_items = db_fetch_assoc("select * from data_input_data_cache limit 100,100");
cmd02.php:#$polling_items = db_fetch_assoc("select * from data_input_data_cache");
cmd02.php:$polling_items = db_fetch_assoc("select * from data_input_data_cache limit 200,100");
cmd03.php:#$polling_items = db_fetch_assoc("select * from data_input_data_cache");
cmd03.php:$polling_items = db_fetch_assoc("select * from data_input_data_cache limit 300,100");
etc.
I have almost everything up and running, but I am blocked for the moment. What I was thinking to do was to modify the line in the cmd.php script like this:
Code: Select all
$zoeken = $_SERVER["argv"][1];
$polling_items = db_fetch_assoc("select * from data_input_data_cache where hostname like $zoeken ");
This than will poll the entire hosts with the ip addresses starting with 10.120.
The only problem is that I have lots of different ip series and will need to create a line for each.
So I was thinking is it possible to add a other field in the database called LOCATION ?
On this I will fill-in the names of the locations.
And change the line to :
Code: Select all
$zoeken = $_SERVER["argv"][1];
$polling_items = db_fetch_assoc("select * from data_input_data_cache where LOCATION like $zoeken ");
Or even better: to create somewhere a list of locations. And than make a pull down field in host.php to select a location.
Hope someone can help me with this!!!