Advanced Ping Template for Cacti 0.8.6f
Moderators: Developers, Moderators
I've replaced ss_fping as advised by TheWitness.
This has made some progress where I can see results in the script server through the command line and also through the log, however this isnt updating the graph with any data.
Any suggestions?
C:\>c:\php\php.exe d:\websites\stats.boots.no-ip.org\cacti\script_server.php
PHP Script Server has Started - Parent is cmd
D:\Websites\stats.boots.no-ip.org\cacti/scripts/ss_fping.php ss_fping www.news.com.au 20
min:28.8800 avg:31.7030 max:35.8500 dev:3.4850 loss:0.0000
D:\Websites\stats.boots.no-ip.org\cacti/scripts/ss_fping.php ss_fping www.news.com.au 20
min:29.1400 avg:31.9335 max:34.7000 dev:2.7800 loss:0.0000
Cheers
Boots
This has made some progress where I can see results in the script server through the command line and also through the log, however this isnt updating the graph with any data.
Any suggestions?
C:\>c:\php\php.exe d:\websites\stats.boots.no-ip.org\cacti\script_server.php
PHP Script Server has Started - Parent is cmd
D:\Websites\stats.boots.no-ip.org\cacti/scripts/ss_fping.php ss_fping www.news.com.au 20
min:28.8800 avg:31.7030 max:35.8500 dev:3.4850 loss:0.0000
D:\Websites\stats.boots.no-ip.org\cacti/scripts/ss_fping.php ss_fping www.news.com.au 20
min:29.1400 avg:31.9335 max:34.7000 dev:2.7800 loss:0.0000
Cheers
Boots
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Make sure you have applied the patches: www.cacti.net/downloads/patches/0.8.6f/pre-patched
TheWitness
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?
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?
I have:
1) Replaced the files at http://www.cacti.net/downloads/patches/ ... e-patched/ in the corresponding locations in my installation
2) Followed the instructions at http://www.cacti.net/download_patches.php to install the latest patches
3) Did the following as root:
I'm running 0.8.6f, and even though php is old (4.2.1), it's compiled with sockets enabled.
rpingar mentioned setting the datasource manually; I don't think this is the case with me. rrdfetch shows that the rrd file isn't even getting updated properly, so even if it was connected manually, it wouldn't matter:
Any thoughts?
1) Replaced the files at http://www.cacti.net/downloads/patches/ ... e-patched/ in the corresponding locations in my installation
2) Followed the instructions at http://www.cacti.net/download_patches.php to install the latest patches
3) Did the following as root:
Code: Select all
[root@host tmp]# cd /var/www/html/cacti
[root@host cacti]#
# php /var/www/html/cacti/script_server.php
PHP Script Server has Started - Parent is cmd
/var/www/html/cacti/scripts/ss_fping.php ss_fping www.google.com 10
X-Powered-By: PHP/4.1.2
Content-type: text/html
<br>
<b>Fatal error</b>: Call to undefined function: socket_set_block() in <b>/var/www/html/cacti/lib/ping.php</b> on line <b>99</b><br>
rpingar mentioned setting the datasource manually; I don't think this is the case with me. rrdfetch shows that the rrd file isn't even getting updated properly, so even if it was connected manually, it wouldn't matter:
Code: Select all
[root@host rra]# rrdtool fetch host2_dev_234.rrd AVERAGE | tail
1125439500: nan 1.0000000000e+02 nan nan nan
1125439800: nan 1.0000000000e+02 nan nan nan
1125440100: nan 1.0000000000e+02 nan nan nan
1125440400: nan 1.0000000000e+02 nan nan nan
1125440700: nan 1.0000000000e+02 nan nan nan
1125441000: nan 1.0000000000e+02 nan nan nan
1125441300: nan 1.0000000000e+02 nan nan nan
1125441600: nan 1.0000000000e+02 nan nan nan
1125441900: nan nan nan nan nan
1125442200: nan nan nan nan nan
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
socket_set_block() is supported in PHP 4.2++ sorry. PHP 4.3.11 is quite stable. However, I would suggest 4.4 but only after Cacti 0.8.6g is released.
TheWitness
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?
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?
Hmm, it isn't working here.
Cacti f under Windows2000 SP4 with the latest Cacti patches from http://www.cacti.net/downloads/patches/ ... re-patched, php 4.4, the manuell test is working fine.
But if the poller starts the script there is allways a "U" as output:
The Debug isn't enough information, is there a debug version of ss_fping.php available?
Cacti f under Windows2000 SP4 with the latest Cacti patches from http://www.cacti.net/downloads/patches/ ... re-patched, php 4.4, the manuell test is working fine.
Code: Select all
C:\Apache2\htdocs\cacti>php c:\apache2\htdocs\cacti\script_server.php
PHP Script Server has Started - Parent is cmd
c:\apache2\htdocs\cacti\scripts\ss_fping.php ss_fping www.google.de 20
min:125.7800 avg:133.8420 max:152.0700 dev:13.1450 loss:0.0000
quit
PHP Script Server Shutdown request received, exiting
Content-type: text/html
X-Powered-By: PHP/4.4.0
Code: Select all
09/05/2005 11:25:48 AM - CACTID: Poller[0] Host[15] DS[110] SERVER: C:\Apache2\htdocs\cacti/scripts/ss_fping.php ss_fping www.google.de 20, output: U
09/05/2005 11:25:48 AM - CACTID: Poller[0] Host[15] DS[110] WARNING: Result from SERVER not valid. Partial Result: ...
Zoomed views not rendering
I have been running into an issue where the zoomed view of an Advanced Ping v1.2 graph do not render, however when you visit the "regular" graph page (the page with 4 views), it renders without issue. I have several graphs rendered with the same templates, and it only affects some of them.
Does anyone have any ideas?
-R
Cacti 0.8.6f (Win2k), RRD 1.2.11 (Cygwin), Thold 0.2.4, Apache 2.0.54, PHP 5.0.5
Does anyone have any ideas?
-R
Cacti 0.8.6f (Win2k), RRD 1.2.11 (Cygwin), Thold 0.2.4, Apache 2.0.54, PHP 5.0.5
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Advanced Ping 1.2 strange behaviour under cacti 0.8.6g
TheWitness,
just installed your advanced ping V1.2 under cacti 0.8.6g (no patches ). But according to the debug log, its not working properly.
I modified the input parm to run under cactiuser, so I put "20 TCP 80" to run against TCP port 80. As output shows, script server returns the results (its the local machine). But cactid only returns "min" values. Have I missed something?
Here's my config:
Thanks
Reinhard
[edit]Changed poller to cmd.php and everythings fine. I there any know issue with cactid and php server?[/edit]
just installed your advanced ping V1.2 under cacti 0.8.6g (no patches ). But according to the debug log, its not working properly.
Code: Select all
09/11/2005 11:40:02 AM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/var/www/html/cacti-0.8.6f/scripts/ss_fping.php' SCRIPT: 'ss_fping' CMD: 'gandalf 20 TCP 80'
09/11/2005 11:40:02 AM - PHPSVR: Poller[0] SERVER: /var/www/html/cacti-0.8.6f/scripts/ss_fping.php ss_fping gandalf 20 TCP 80 output min:0.1800 avg:0.2280 max:0.4700 dev:0.0666 loss:0.0000
09/11/2005 11:40:02 AM - CACTID: Poller[0] Host[2] SERVER: /var/www/html/cacti-0.8.6f/scripts/ss_fping.php ss_fping gandalf 20 TCP 80, output: min:0.1800
09/11/2005 11:40:02 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (48,'','2005-09-11 11:40:01','min:0.1800')
Here's my config:
Code: Select all
cacti 0.8.6g
cactid 0.8.6e
PHP 4.3.9 (cgi) (built: Nov 24 2004 08:48:16)
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Sun Aug 14 00:43:45 CEST 2005
mysql Ver 14.7 Distrib 4.1.7, for redhat-linux-gnu (i386)
NET-SNMP version: 5.1.2
Reinhard
[edit]Changed poller to cmd.php and everythings fine. I there any know issue with cactid and php server?[/edit]
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What version of Cactid?
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?
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?
Re: Zoomed views not rendering
I was able to isolate this to an issue with rrdtool commands that exceeded the Windows 2000 maximum command length (2048 chars, XP = 8192 chars). Under these circumstances the poller would collect the data correctly, but the complicated rrdtool command to generate the graph would return a "line too long" error message, subsequently failing silently.gashalot wrote:Does anyone have any ideas?
As a side note, when commands were near the 2048 character limit, it was sometimes possible to generate the "regular" (day/week/month/year) graphs, but not a zoom graph. This is because the extra commands to generate the zoomed view were causing the length to overflow.
As a long term fix, 2k/XP users should be warned when the command lines are too long. To work around this issue, move your "rra" folder closer to the root of the file system and/or rename your ping rra files to shorter names, as the full path to these items is repeated a large number of times in the rrdtool command, causing the length to grow rapidly.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
That's a vaccum cleaning job. I will rewrite the template. I have to to make the contributer who originally wrote it happy.
TheWitness
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?
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?
zoom problem
hello guys,
i can't zoom the smokyping graphs and i cant see graph tumbnail ...
whats wrong ?
using 086c
i can't zoom the smokyping graphs and i cant see graph tumbnail ...
whats wrong ?
using 086c
Who is online
Users browsing this forum: No registered users and 3 guests