EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6g
Moderators: Developers, Moderators
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hi,
I've installed/imported Advanced Ping v1.3 graph template and I'm not sure if it's correctly installed.
Is it normal that the graph template doesn't have any data source associated?
Look at items 7-13, 16-20 and 24-30 from the attachment.
If it's not correct which data source would be used? loss?
Thank you for your help
--
Gerard
I've installed/imported Advanced Ping v1.3 graph template and I'm not sure if it's correctly installed.
Is it normal that the graph template doesn't have any data source associated?
Look at items 7-13, 16-20 and 24-30 from the attachment.
If it's not correct which data source would be used? loss?
Thank you for your help
--
Gerard
- Attachments
-
- graph template advanced ping
- aping.png (96.8 KiB) Viewed 9274 times
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
advanced ping template setting...
- CDEF
d,0,GT,d,2,GT,UNKN,INF,IF,UNKN,IF --> value 'd' means DEF's 'loss' (DEF:d="cactipath/test_loss_xxx.rrd":loss:AVERAGE \)
d,0,GT,d,2,GT,UNKN,d,IF,UNKN,IF --> value 'd' means DEF's 'loss'
Advanced Ping - Position 1,2: cdef=e,2,/ --> 'e' means DEF's 'dev'
Advanced Ping - Position 3,4,5: cdef=c,b,-,e,-,3,/ --> 'c' means 'max', 'b' means 'avg', 'e' means 'dev'
Advanced Ping - Stack Min - 20 %: cdef=b,a,-,0.2,* --> 'b' means 'avg', 'a' means 'min'
- if latency time > 400 ms then, (too many ping loss)
data template > PING - Advanced Ping > Data Source Item (all) > Maximum Value : greater 1000 (graph limit)
console > settings > poller > host availability setting > ping timeout value : greater 1000 (default host ping timeout value)
thanks.
- CDEF
d,0,GT,d,2,GT,UNKN,INF,IF,UNKN,IF --> value 'd' means DEF's 'loss' (DEF:d="cactipath/test_loss_xxx.rrd":loss:AVERAGE \)
d,0,GT,d,2,GT,UNKN,d,IF,UNKN,IF --> value 'd' means DEF's 'loss'
Advanced Ping - Position 1,2: cdef=e,2,/ --> 'e' means DEF's 'dev'
Advanced Ping - Position 3,4,5: cdef=c,b,-,e,-,3,/ --> 'c' means 'max', 'b' means 'avg', 'e' means 'dev'
Advanced Ping - Stack Min - 20 %: cdef=b,a,-,0.2,* --> 'b' means 'avg', 'a' means 'min'
- if latency time > 400 ms then, (too many ping loss)
data template > PING - Advanced Ping > Data Source Item (all) > Maximum Value : greater 1000 (graph limit)
console > settings > poller > host availability setting > ping timeout value : greater 1000 (default host ping timeout value)
thanks.
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
whay look so big...is any setting to make it smaller.....
LE: and way the IP is not show in the graphs?
LEE:
LE: and way the IP is not show in the graphs?
LEE:
PHP Deprecated: Function split() is deprecated in /usr/share/cacti/site/scripts/ss_fping.php on line 113
PHP Warning: Division by zero in /usr/share/cacti/site/scripts/ss_fping.php on line 134
min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:100.6599root@xxxxx:~#
- Attachments
-
- strange look
- strange look.PNG (26.81 KiB) Viewed 8327 times
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
In 'Settings -> Visual', set font size smaller or specify alternate font as you likesoulraven wrote:whay look so big...is any setting to make it smaller.....
Add "|host_hostname|" to title settings in Graph Templatesoulraven wrote:and way the IP is not show in the graphs?
e.g. "|host_description| (|host_hostname|) - Advanced Ping"
Replace split() with explode()soulraven wrote:PHP Deprecated: Function split() is deprecated in /usr/share/cacti/site/scripts/ss_fping.php on line 113
PHP Warning: Division by zero in /usr/share/cacti/site/scripts/ss_fping.php on line 134
min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:100.6599root@xxxxx:~#
But I think ss_fping.php (v1.3) doesn't have lines so much (113 or 134)
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hi,
I'm pulling out my hair trying to get this script to work.
I'm running Cacti 0.8.7g with Advance Ping 1.3.
I copied the ss_ping.php file to the scripts directory and imported the XML templates.
Added the graphs for the host, but nothing shows up. The RRD does not get created either (I'm thinking this may be the culprit?).
I made sure to install fping on the server as well. Also tried using the cuurent ss_fping.php that came with the latest version of Cacti, and I also cleared the poller cache.
Here's the error I'm getting:
Here's the poller cache item:
I also ran the script_server.php with the ss_ping script and verify that it is indeed working.
Any ideas??? I would really like to get this script to work.
I'm pulling out my hair trying to get this script to work.
I'm running Cacti 0.8.7g with Advance Ping 1.3.
I copied the ss_ping.php file to the scripts directory and imported the XML templates.
Added the graphs for the host, but nothing shows up. The RRD does not get created either (I'm thinking this may be the culprit?).
I made sure to install fping on the server as well. Also tried using the cuurent ss_fping.php that came with the latest version of Cacti, and I also cleared the poller cache.
Here's the error I'm getting:
Code: Select all
04/27/2011 02:35:08 PM - CMDPHP: Poller[0] Host[14] DS[2056] WARNING: Result from SERVER not valid. Partial Result: WARNING: Function do
04/27/2011 02:35:08 PM - PHPSVR: Poller[0] WARNING: Function does not exist
04/27/2011 02:35:08 PM - PHPSVR: Poller[0] WARNING: PHP Script File to be included, does not exist
Code: Select all
Script Server: path_cacti/scripts/ss_fping.php ss_fping hostnameattemptsprotocolport
RRD: /usr/share/cacti/rra/pma-sw1_loss_2056.rrd
Any ideas??? I would really like to get this script to work.
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hi,
I'm pulling out my hair trying to get this script to work.
I'm running Cacti 0.8.7g with Advance Ping 1.3.
I copied the ss_ping.php file to the scripts directory and imported the XML templates.
Added the graphs for the host, but nothing shows up. The RRD does not get created either (I'm thinking this may be the culprit?).
I made sure to install fping on the server as well. Also tried using the cuurent ss_fping.php that came with the latest version of Cacti, and I also cleared the poller cache.
Here's the error I'm getting:
Here's the poller cache item:
I also ran the script_server.php with the ss_ping script and verify that it is indeed working.
Any ideas??? I would really like to get this script to work.
I'm pulling out my hair trying to get this script to work.
I'm running Cacti 0.8.7g with Advance Ping 1.3.
I copied the ss_ping.php file to the scripts directory and imported the XML templates.
Added the graphs for the host, but nothing shows up. The RRD does not get created either (I'm thinking this may be the culprit?).
I made sure to install fping on the server as well. Also tried using the cuurent ss_fping.php that came with the latest version of Cacti, and I also cleared the poller cache.
Here's the error I'm getting:
Code: Select all
04/27/2011 02:35:08 PM - CMDPHP: Poller[0] Host[14] DS[2056] WARNING: Result from SERVER not valid. Partial Result: WARNING: Function do
04/27/2011 02:35:08 PM - PHPSVR: Poller[0] WARNING: Function does not exist
04/27/2011 02:35:08 PM - PHPSVR: Poller[0] WARNING: PHP Script File to be included, does not exist
Code: Select all
Script Server: path_cacti/scripts/ss_fping.php ss_fping hostnameattemptsprotocolport
RRD: /usr/share/cacti/rra/pma-sw1_loss_2056.rrd
Any ideas??? I would really like to get this script to work.
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Jitter calculation.
Nice template template TheWitness - many thanks up front.
Just wondering if anyone has attempted to add a jitter calculation to this graph?
No idea where to start since jitter is the calculation of delta in pings (average of the variation in ping times)
Where would I start to get this going?
EDIT : found it - a Line 1 item on the Ping -dev (Max) task does exactly this - [dev = deviation]
Nice template template TheWitness - many thanks up front.
Just wondering if anyone has attempted to add a jitter calculation to this graph?
No idea where to start since jitter is the calculation of delta in pings (average of the variation in ping times)
Where would I start to get this going?
EDIT : found it - a Line 1 item on the Ping -dev (Max) task does exactly this - [dev = deviation]
Last edited by CCNAJ on Thu May 05, 2011 10:42 pm, edited 1 time in total.
++++++ Cacti Newbie ++++++++++++++++++++++++++++++++++++++++++
Cacti 0.8.8f with PIA on a Centos6 VM
Plugins Used: Infopage | RouterConfigs | Spikekill | BOOST | REALTIME | CLOG
Cacti 0.8.8f with PIA on a Centos6 VM
Plugins Used: Infopage | RouterConfigs | Spikekill | BOOST | REALTIME | CLOG
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
I just installed this template and have 2 questions:
1) Would it be able to mention destination in header, like "[host] - Advanced Ping to [Destination]"?
2) Also would be nice to have additional parameter of ping size (fping -b 1000 etc).
Thanks,
Matthijs
1) Would it be able to mention destination in header, like "[host] - Advanced Ping to [Destination]"?
2) Also would be nice to have additional parameter of ping size (fping -b 1000 etc).
Thanks,
Matthijs
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
In Graph Template, use '|host_hostname|' as destination. (see the above post)matthys wrote:1) Would it be able to mention destination in header, like "[host] - Advanced Ping to [Destination]"?
Modify '$data = ...' at lines the below in 'lib/ping.php'.matthys wrote:2) Also would be nice to have additional parameter of ping size (fping -b 1000 etc).
For ICMP ping,
if your Cacti's os is "unix" (see "Technical Support" or click cactus icon at the bottom of console),
Code: Select all
function build_icmp_packet() {
...
$data = "cacti-monitoring-system"; // the actual test data
Code: Select all
}else if (substr_count(strtolower(PHP_OS), "winnt")) {
$result = shell_exec("ping -w " . $this->timeout . " -n " . $this->retries . " " . $this->host["hostname"]);
Code: Select all
function build_udp_packet() {
$data = "cacti-monitoring-system"; // the actual test data
Strings "cacti-monitoring-system" has the size of 23bytes, then for example, replace with this:
$data = str_repeat("A", 1000);
See also: ICMP Echo Request message format
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
It's not the host_hostname I want ... but the destination I ping from the host.noname wrote:In Graph Template, use '|host_hostname|' as destination.
Something like "HOSTNAME - Advance Ping to 123.123.123.123"
And I would like to create an option (like ICMP, TCP, or UDP) to fill in the size of the ping. But I guess I have to modify the template for this.
Thanks anyway,
Matthijs
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
"|host_hostname|" denotes hostname or IP address of target host in Device settings.matthys wrote:It's not the host_hostname I want ... but the destination I ping from the host.noname wrote:In Graph Template, use '|host_hostname|' as destination.
Something like "HOSTNAME - Advance Ping to 123.123.123.123"
That didn't satisfy your purpose?
Probably you need to add argument (e.g. "<packetsize>") to Data Input Method and ss_fping.php.matthys wrote:And I would like to create an option (like ICMP, TCP, or UDP) to fill in the size of the ping. But I guess I have to modify the template for this.
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Maybe we misunderstood each other?
I mean the "Hostname or IP Address of the device to ping" (under Custom Data [data input: PING - Advanced Ping]) you set for each host in the Advanced Ping.
And |host_hostname| is the hostname you ping FROM, not TO (destination), if I do not mistake.
Cheers,
Matthijs
I mean the "Hostname or IP Address of the device to ping" (under Custom Data [data input: PING - Advanced Ping]) you set for each host in the Advanced Ping.
And |host_hostname| is the hostname you ping FROM, not TO (destination), if I do not mistake.
Cheers,
Matthijs
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Oh! So sorry!matthys wrote:I mean the "Hostname or IP Address of the device to ping" (under Custom Data [data input: PING - Advanced Ping]) you set for each host in the Advanced Ping.
Custom Data field! That's MY misunderstanding.
I had never enabled this field before..
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
tytanick wrote:hello i have question about this graph template.
When host is DOWN, so it has 100% packet lost.
I would like to have RED COLOR on this graph.
But result is that i have blank space (gap) when host is down, you can see that in attached image..
Could you tell what should i edit in template in order to have 100% packet lost (host down) draw as red field ?
Yes!
To draw a red line follow the steps:
1) Click on Console Tab - Templates - Graph Templates - PING - Advanced Ping v1.3 (img1.jpg - )
2) Click on Item # 14 - (No Task): Unknown<HR> (img2.jpg - )
3) Select a red color and Area to Graph Item Type (img3.jpg - )
That's it! (screen.jpg - )
Re: EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6
Hi matthys,
- http://forums.cacti.net/viewtopic.php?f=5&t=42802
Now I've tried that feature -- how about this?matthys wrote: 1) Would it be able to mention destination in header, like "[host] - Advanced Ping to [Destination]"?
- http://forums.cacti.net/viewtopic.php?f=5&t=42802
Who is online
Users browsing this forum: No registered users and 0 guests