Unix - Multi Ping Host Templates

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Spark
Posts: 15
Joined: Wed Jan 26, 2005 6:48 am

Unix - Multi Ping Host Templates

Post by Spark »

Hi,

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
Suggestions ? :D
Attachments
Multi Ping Host
Multi Ping Host
cacti_multi_ping.gif (10.46 KiB) Viewed 23107 times
cacti_unix_multi_ping.zip
Unix - Multi Ping Host
(6.53 KiB) Downloaded 3419 times
smartech1
Posts: 38
Joined: Mon Feb 05, 2007 8:03 am
Contact:

Multiping Error

Post by smartech1 »

Hi.............

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.
dennisblah
Posts: 3
Joined: Thu Jun 11, 2015 2:24 am

Re: Unix - Multi Ping Host Templates

Post by dennisblah »

Hi all,

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?

Any help?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest