Templates, scripts for templates, scripts and requests for templates.
Moderators: Moderators, Developers
- Posts: 15
- Joined: Wed Jan 26, 2005 6:48 am
I make a script and the templates for a Multi Ping Host.
The script have the IP HOST to ping and can ping 9 Host.
Its exported from cacti 8.6 and tested in a cacti 8.6c using cactid
In the script change the IP Host for your needs and put in "path_cacti"/scripts/multi_ping.pl
Code: Select all
$ip1 = "10.0.0.1"; #Host 1
$ip2 = "10.0.0.2"; #Host 2
$ip3 = "10.0.0.3"; #Host 3
$ip4 = "10.0.0.4"; #Host 4
$ip5 = "10.0.0.5"; #Host 5
$ip6 = "10.0.0.6"; #Host 6
$ip7 = "10.0.0.7"; #Host 7
$ip8 = "10.0.0.8"; #Host 8
$ip9 = "10.0.0.9"; #Host 9
#$ip10 = "10.0.0.10"; #Host 10
- Multi Ping Host
- cacti_multi_ping.gif (10.46 KiB) Viewed 21010 times
- Unix - Multi Ping Host
- (6.53 KiB) Downloaded 3273 times
- Posts: 38
- Joined: Mon Feb 05, 2007 8:03 am
I tried to add your template,
I imported both data and graph template.
Edited Multping.pl file and added my interest IPs to ping and saved in /usr/local/cacti-0.8.6i/scripts/multping.pl fine??
While adding the graph, I am confused how to add it. For associated graph or interface?? Since i have given 9 IP addresses to ping, how can i add interface or host ,which has its seperate ips.but my IPs mentioned in .pl files are differant.
I added to hosts associated graphs ,but its not graphing at all.
Could you please what way i can add it??
THanks in advance.
- Posts: 3
- Joined: Thu Jun 11, 2015 2:24 am
I know this is an old thread, but I'm having difficulties with this template.
I'd like to use this to monitor connection from my WiFi AP's, the gateway and an external host.
The script is working fine, as I manually trigger it by py /var/www/html/scripts/multi_ping.pl I'm getting desired information.
But the graph stays empty.
I've done the following:
- importing data and graph template by the webinterface.
- uploaded the adjusted script to /var/www/html/scripts/multi_ping.pl
Took an existing device (which is the actual asa for this WiFi)
And done, 'create graphs for this host' and took the multi-ping template.
the graph is being created but no information shown.
The multi ping also does not show under 'Associated Graph Templates' and/or 'Associated Data Queries' and not available in the dropdown list.
Can anyone please help me?