Advanced Ping Template for Cacti 0.8.6f

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

What should i choose as Data Source ??

in the list i get only options for the traffic ...
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

for debian funs:
apt-get install php-net-socket
using a sid/unstable repository
JJX wrote:What should i choose as Data Source ??

in the list i get only options for the traffic ...
i had to create the graph from "new graph first" and after configure from "graph management" (and not directly from "graph management")
m_o_d
Posts: 15
Joined: Wed Nov 17, 2004 9:22 pm

Post by m_o_d »

In debian (sarge) works great

Thenks
li0n
Posts: 10
Joined: Tue Oct 18, 2005 4:38 pm

strange bug

Post by li0n »

Hi !

I've installed your template and it's rox !

But I encountered a strange behavior when i try to add this graph item: "Graph Last Updated: |date_time|" at the end of your graph template => all the graphs that implement the ping template become "lightblue" like the attached screenshot.

If i remove the item, the graph still have this lightblue background.

In order to get everything OK, i need to delete the graph template, data template, all datasources and have to reinstall the complete template

Do you have any clue for that ?


thx !

System:
cacti 0.86g + patches
poller cmd.php
0.000 loss data in all datasources

Edit :
I think i've found the problem: when i add a graph item, i think cacti recalculated badly the index for the associated graph item.

so before i got in debug graph:
DEF:d="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":loss:AVERAGE
DEF:e="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":dev:AVERAGE
after
DEF:d="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":dev:AVERAGE
DEF:e="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":loss:AVERAGE

same with before:
DEF:bb="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":loss:AVERAGE
DEF:bc="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":avg:AVERAGE
and after:
DEF:bb="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":avg:AVERAGE
DEF:bc="/opt/lampp/htdocs/cacti/rra/praswcol01_min_409.rrd":max:AVERAGE

i don't know why, but after reassigning manually all "Associated graph items", everything is fine

attached debug graph before and after.
Attachments
debug_before.txt
(3.92 KiB) Downloaded 449 times
debug_after.txt
(3.95 KiB) Downloaded 434 times
image.png
image.png (22.73 KiB) Viewed 11605 times
entr0py
Posts: 10
Joined: Wed Oct 19, 2005 3:33 am
Location: Sydney
Contact:

Advanced Ping v1.2 graphs

Post by entr0py »

Feel quite silly asking this...;)

I am trying to graph the latency/response times for a VIP. Trouble is I am doing this from the outside rather then from the inside of the mgmt lan. As such I do not have/want access to snmp while I am on the outside of the intrastructure.

This is causing the rrd's not to be generated for the VIP, an snmp error is shown when I view the device and the status of the device is constantly down.

Is there a way to get cacti to graph the device, in my case the latency of a VIP without utilizing snmp or graphing any other metrics?
the_sphynx_2k5
Posts: 7
Joined: Thu Oct 27, 2005 4:32 pm

Post by the_sphynx_2k5 »

I get the following error when I attempt to run ss_fping.php. Any ideas?

Code: Select all

Gentoo script_server # php ss_fping.php <<IP Address>>

Fatal error: Cannot instantiate non-existent class:  net_ping in /var/www/dharmacon.com/cacti/resource/script_server/ss_fping.php on line 22
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

what version of PHP?

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?
the_sphynx_2k5
Posts: 7
Joined: Thu Oct 27, 2005 4:32 pm

Post by the_sphynx_2k5 »

Here is my version number:

Code: Select all

Gentoo# equery list php
[ Searching for package 'php' in all categories among: ]
 * installed packages
[I--] [  ] dev-php/php-4.4.0-r1 (0)
Gentoo#
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That looks good. It looks like ss_fping.php can not find <path_cacti>/lib/ping.php. Where do you have ss_fping.php installed?

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?
the_sphynx_2k5
Posts: 7
Joined: Thu Oct 27, 2005 4:32 pm

Post by the_sphynx_2k5 »

I have ss_fping.php in my scripts subdirectory of cacti. Thanks for the help.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

goto the lib directory and run "php -l ping.php"

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?
the_sphynx_2k5
Posts: 7
Joined: Thu Oct 27, 2005 4:32 pm

Post by the_sphynx_2k5 »

But I am running 0.8.6g. Am I still going to have to apply the patches?

Code: Select all

[ Searching for package 'cacti' in all categories among: ]
 * installed packages
[I--] [  ] net-analyzer/cacti-cactid-0.8.6e (0)
[I--] [  ] net-analyzer/cacti-0.8.6g (0.8.6g)
the_sphynx_2k5
Posts: 7
Joined: Thu Oct 27, 2005 4:32 pm

Post by the_sphynx_2k5 »

"php -l ping.php" returns no syntax errors.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

ok. then you need to run:

php <path_cacti>/scripts/ss_fping.php www.google.com 20

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?
the_sphynx_2k5
Posts: 7
Joined: Thu Oct 27, 2005 4:32 pm

Post by the_sphynx_2k5 »

That seems to work. thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests