(edit: plain old 0.8.7b)
we have a dedicated Cacti instance to provide customers with the "Advanced ping graphs". Unfortunately there is quite a lot of add/delete/changes for the remote hosts, so I wrote a script using cli to update the devices. It simply reads from a txt file holding "hostname - ip".
Within the script I issue the command:
Code: Select all
`php cli/add_device.php --description=$hostname --ip=$ipaddress --template=$template --version=2 --community=$community --avail="ping" --ping_method="icmp"`
Additionally to the device creation or change I'll add a graph for it which is either prompted by "success" or "graph exists" (for now never got any errors so far).
Code: Select all
`php cli/add_graphs.php --graph-type=cg --graph-template-id=$graphtemplate --host-id=$cacti_host_id --graph-title="$hostname - Advanced Ping"`;
When I issue the IP change within the webgui directly (no poller cache rebuild neccessary):Script Server: /var/www/html/cacti7b/scripts/ss_fping.php ss_fping 1.2.3.4 5 ICMP
RRD: /var/www/html/cacti7b/rra/hostname_loss_7595.rrd
So it seems "edit" the host does apply some more "magic" which is not covered by my script. Can someone shed a light what I'm missing ?Script Server: /var/www/html/cacti7b/scripts/ss_fping.php ss_fping 1.2.3.5 5 ICMP
RRD: /var/www/html/cacti7b/rra/hostname_loss_7595.rrd
Thanks
Chris