EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6g

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

Moderators: Developers, Moderators

Post Reply
Jey
Posts: 41
Joined: Wed Aug 22, 2007 8:01 am

Post by Jey »

Jey wrote:Image


What are the black/grey pixels ?

Green line = latency, but en top ...
An idea please ?
quidway
Posts: 7
Joined: Sun Feb 25, 2007 1:07 am

Post by quidway »

Levente wrote:Hi,

I was just wondering if I can set the graph name automatically to something like this.

The Default graph title is: |host_description| - Advanced Ping

I would like to change it to something like: |host_description| - <IP to ping> - <Ping type ICMP,UDP> - <Number of pings> - Advanced Ping

So, <IP to ping>, <Ping type ICMP,UDP,TCP>, <Number of pings>, are all variables that I use when I create each graph. Is there any way that I can use them in each graph title except manually adding them?

Short version:

Before

Graph title -> Advance Ping Host - Advanced Ping


After

Graph title -> Advance Ping Host - 12.34.56.78 - ICMP - 20 - Advanced Ping


Can I do that ?

I hope I made myself clear.

Thank you.
http://forums.cacti.net/about24748.html ... ange+title
chang the Graph Template Title to use "per-graph" it allowed you to change the title on each graph
FunkY
Posts: 2
Joined: Fri Jun 06, 2008 3:48 am

Post by FunkY »

i use a ssh tunnel and get 100% loss.
e.g. tcp:localhost:10001

is there any way?
ikramahamed
Posts: 17
Joined: Mon Feb 25, 2008 8:27 pm
Location: Singapore
Contact:

Localhost - Advanced Ping -Error "REFUSED"

Post by ikramahamed »

06/23/2008 01:45:09 PM - SPINE: Poller[0] Host[15] DS[7016] SS[0] SERVER: /var/www/html/cacti/scripts/ss_fping.php ss_fping 172.27.253.121 20 UDP 23, output: ->refused->refused->refused->refused->refused->refused->refused->refused->refused->refusedmin:3.2400 avg:4.2920 max:5.6100 dev:0.8463 loss:50.0000
06/23/2008 01:45:04 PM - SPINE: Poller[0] Host[1] DS[7018] SS[0] SERVER: /var/www/html/cacti/scripts/ss_fping.php ss_fping 127.0.0.1 10 UDP 23, output: ->refused->refused->refused->refused->refused->refused->refused->refused->refused->refusedmin:0.0400 avg:0.0460 max:0.0700 dev:0.0102 loss:0.0000


any one know why the i get the above error....
serek
Posts: 1
Joined: Tue Jun 24, 2008 11:00 am
Location: Dublin/Ireland

Post by serek »

Hi folks,

I'm new on this forum, so first of all I would like to welcome everyone here. Also I would like to thank those who are involved in writing Cacti and its plugins.

I have a problem with Advanced Ping v1.3 running on recent Cacti 0.8.7b, Debian 4.0r1 with PHP 5.2.0-8+etch11.

Originally I was guessing that there is an issue with permissions and so I have to run it from root instead of cacti user. This unfortunately didn't solve the issue. Graphs are still empty, showing results NAN and in the logs I'm getting following:

Code: Select all

06/24/2008 06:00:02 PM - PHPSVR: Poller[0] WARNING: Function does not exist
06/24/2008 06:00:02 PM - CMDPHP: Poller[0] Host[10] DS[85] WARNING: Result from SERVER not valid.  Partial Result: WARNING: Function do
06/24/2008 06:00:02 PM - CMDPHP: Poller[0] Host[10] DS[85] SERVER: /var/lib/cacti/scripts/ss_fping.php xxx.xxx.xxx.xxx 20 ICMP , output: U
When I'm trying to run script_server.php from command line and than ss_fping.php in it I'm getting similar results:

Code: Select all

stats:/var/lib/cacti# php script_server.php
PHP Script Server has Started - Parent is cmd
/var/lib/cacti/scripts/ss_fping.php xxx.xxx.xxx.xxx 20 ICMP
WARNING: Function does not exist
quit
PHP Script Server Shutdown request received, exiting
When trying to run the same script from command line I'm getting correct results:

Code: Select all

stats:/var/lib/cacti# php /var/lib/cacti/scripts/ss_fping.php xxx.xxx.xxx.xxx 20 ICMP
min:11.0700 avg:12.6665 max:16.2900 dev:1.0137 loss:0.0000stats:/var/lib/cacti#
Did someone here faced similar problem already and found solution/workaround?

I'd appreciate any help!

Regards,
Sergiusz
KyRoo
Cacti User
Posts: 51
Joined: Fri Oct 19, 2007 10:19 am

Post by KyRoo »

I have a problem, i can send pings just fine, but when there is a problem, meaning 100% loss, I do not get the 100% in my graph, just an empty area.

I tried it manually and then I get 100% packet loss in my dos prompt.

does anyone have an idea?

When i check the log files, I don't find a rule where that rrd files gets updated. (if host is unreachable)
other hosts that are reachable i can find jsut fine

This problem occures with php and spine poller.



### UPDATE ###

I've noticed that when i disable downed host detection, I do get a result.
I have not tried this, but what happens when I run advanced ping without the script server.
Maybe I will try in a few days, but is someone can help me in the mean time, this would be great..

### UPDATE 2 ###

I've tested to make it run without a script server. This gives the same problem. It only makes the poll go slower...

I've attached a second pic of how the graph looks when it het no data...
Attachments
untitled2.JPG
untitled2.JPG (34.41 KiB) Viewed 12506 times
untitled.JPG
untitled.JPG (31.91 KiB) Viewed 12571 times
Kalli
Posts: 2
Joined: Mon Jun 18, 2007 11:38 am

Post by Kalli »

fozzy99999 wrote:Kinda noob to Advance Ping. I have modified my CDEFs from the original to change the latency percentages I am looking for, but now I would like to modify the way it shows periods of latency to change the color of the horizontal line from green to the color that represents the latency percentage. My users seem to be confused by the AREA blocks and are familiar with smokeping graphs.

Not looking for step by step howto but just a kick in the right direction would be apreciated

Hello "fozzy99999",

How did you change your CDEFs to get this graphs ?

Thanks in advance. :wink:
zarahel
Posts: 33
Joined: Wed Feb 06, 2008 3:49 pm

Post by zarahel »

Good afternoon to you all

I know this subject has already been discussed on the forum, but I´ve still haven´t found an answer.

I´m not able to run ss_fping.php. I always get the error:

PHP Fatal error: Call to undefined function read_config_option() in /var/lib/cacti/scripts/ss_fping.php on line 38.

My php version is 5.2.4. I think the problem is that I haven´t enabled socket extension. Does anybody know of a way of doing it without reinstalling php?

Any help is apreciated

Thkx
churria
Posts: 4
Joined: Thu Mar 08, 2007 4:32 am

Post by churria »

Kalli wrote:
fozzy99999 wrote:Kinda noob to Advance Ping. I have modified my CDEFs from the original to change the latency percentages I am looking for, but now I would like to modify the way it shows periods of latency to change the color of the horizontal line from green to the color that represents the latency percentage. My users seem to be confused by the AREA blocks and are familiar with smokeping graphs.

Not looking for step by step howto but just a kick in the right direction would be apreciated

Hello "fozzy99999",

How did you change your CDEFs to get this graphs ?

Thanks in advance. :wink:
I would like to know to, because i think it's a great idea.
fozzy99999: can you help us?

Thanks.
churria
Posts: 4
Joined: Thu Mar 08, 2007 4:32 am

Post by churria »

Jey wrote:
Jey wrote:Image


What are the black/grey pixels ?

Green line = latency, but en top ...
An idea please ?
I think it represents something about the max. ping time that occurs into this interval.

But I'm not sure, because i don't know difference between gray scales.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Nope, it means the host is down.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Maestro_Ba
Posts: 36
Joined: Tue Jun 06, 2006 10:53 am

Post by Maestro_Ba »

Just a simple doubt...

What do the grayscale means? In smokeping, each gray stack is the RTT of a single ping, and the line is the average.

However, in this template it doesn't seems to be the same. How are the different gray stacks calculated?

- Is the upmost graystack the maximum RTT, and the others are just evenly spaced steps?
- Is the standard deviation (or jitter) of all the packets show in any way?

I really like smokeping's graphs, and I needed to know if I can get the same information from these. Thanks for the help.
Vick Vega
Posts: 2
Joined: Fri Sep 19, 2008 9:37 am

Post by Vick Vega »

zarahel wrote:Good afternoon to you all

I know this subject has already been discussed on the forum, but I´ve still haven´t found an answer.

I´m not able to run ss_fping.php. I always get the error:

PHP Fatal error: Call to undefined function read_config_option() in /var/lib/cacti/scripts/ss_fping.php on line 38.

My php version is 5.2.4. I think the problem is that I haven´t enabled socket extension. Does anybody know of a way of doing it without reinstalling php?

Any help is apreciated

Thkx

I have the same problem. Have someone solved it? Php version 5.1.6
jfialkowski
Posts: 2
Joined: Tue Sep 30, 2008 9:47 pm

I have the same issue

Post by jfialkowski »

Any ideas how to fix?
packetbyter
Posts: 1
Joined: Fri Feb 15, 2008 2:34 am

Post by packetbyter »

Hi,

a few days ago my linux box crashed and i had to rebuild it from scratch because i had no working and current backup. i know, shame on me.

i have installed fedora core 9 with all needed packages and cacti 0.8.7b. after importing the template it was not working and no graph was build. from the command line and through script server everything looked fine. i replaced lib/ping.php and scripts/ss_fping.php with the files from the third page of this thread and know the template works just fine.

it seems to me that regardless what version of cacti one is using, you have to replace these ping scripts to get it work.

ct,
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest