Advanced Ping Template for Cacti 0.8.6f

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

Or should I be asking how do I use this new template to monitor like www.google.com?? I understand I can use it on current devices i monitor. How are you guys setting it up to monitor sites??

Thanks
yetdog
Posts: 20
Joined: Mon Aug 08, 2005 9:40 am

Post by yetdog »

Any reason why RRDTOOL wouldn't be generating graphs based on the poll? The following is in my cacti logfile after applying all patches and importing the XML file: (starting from the bottom up)

08/08/2005 10:35:05 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
08/08/2005 10:35:05 AM - PHPSVR: Poller[0] SERVER: /home/cacti/www/scripts/ss_fping.php ss_fping 172.29.128.238 20 output AV:U PL:100
08/08/2005 10:35:05 AM - CMDPHP: Poller[0] Host[5] DS[40] SERVER: /home/cacti/www/scripts/ss_fping.php ss_fping 172.29.128.238 20, output: AV:U PL:100
08/08/2005 10:35:05 AM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/home/cacti/www/scripts/ss_fping.php' SCRIPT: 'ss_fping' CMD: '172.29.128.238 20'


No mention of RRDTOOL handling the data to generate a graph...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, I have been learning a bit about Microslut lately. It appears XP SP2 does not allow the creation of RAW sockets. No a pretty picture if you like to PING. More to follow. However, my Win2000 SP2 is generating the following graphs No prob. If you are *nix, I think you have to be "root".

Make sure you apply the patches first.

TheWitness
Attachments
Advanced Ping on Windows.jpg
Advanced Ping on Windows.jpg (47.92 KiB) Viewed 10593 times
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?
yetdog
Posts: 20
Joined: Mon Aug 08, 2005 9:40 am

Post by yetdog »

Witness - Any thoughts on why my issue is occurring? Linux platform...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Have you applied all the patches. If so, run the following sequence of commands:

cd <cacti_directory>
php <cacti_directory>/script_server.php

Then from script server:

<cacti_directory>/scripts/ss_fping.php ss_fping www.google.com 10

You should get a response and no errors

quit

To Quit the script server.

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?
fanu
Posts: 18
Joined: Thu Oct 07, 2004 2:53 pm
Location: Paris, France

Post by fanu »

Hello,

I have another problem. Everything seems to be fine : the system pings well, the script returns the good values but ...
When I try to show the graph : the average value is "nan" or "0.00". The other values are good.

Any idea ?

Thanks for all,

Fanu.
boots
Cacti User
Posts: 55
Joined: Wed Jan 07, 2004 4:59 am
Location: Melbourne Australia

Post by boots »

I've installed the patches as recommended, however I now get the following output from the poller cache and log file;

Data Source: Latency to News.Com - Advanced Ping
RRD: D:\Websites\stats.boots.no-ip.org\cacti\rra\latency_to_news_com_min_303.rrd
Action: 2, Script: D:\Websites\stats.boots.no-ip.org\cacti/scripts/ss_fping.php ss_fping www.news.com.au 20

08/09/2005 12:42:06 PM - PHPSVR: Poller[0] WARNING: Function does not exist
08/09/2005 12:42:06 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'D:\Websites\stats.boots.no-ip.org\cacti/scripts/ss_fping.php' SCRIPT: 'ss_fping' CMD: 'www.news.com.au 20'

When running manually within the script server, I also get the WARNING: Function does not exist.

Any ideas?

Cheers

Boots
yetdog
Posts: 20
Joined: Mon Aug 08, 2005 9:40 am

Post by yetdog »

# php script_server.php
PHP Script Server has Started - Parent is cmd
/home/cacti/www/scripts/ss_fping.php ss_fping www.google.com 10
min:39.8000 avg:44.0730 max:56.9900 dev:8.5950 loss:0.0000
quit
PHP Script Server Shutdown request received, exiting

Re-ran the cron job, still not generating the ping graphs :(
kakteen
Posts: 3
Joined: Thu Aug 04, 2005 8:57 pm

Post by kakteen »

TheWitness wrote:If you are *nix, I think you have to be "root".
And what do we do if we're not running as root and don't want to for various reasons? Isn't it possible to do fpings without raw sockets?
How would I let the process run as root within the script-server when I have to?
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

Not meaning to interupt the channel and its topic of RAW sockets and such, but If i wanted to just monitor a few websites to see our latency out of the building , where do I start with this script and template, btw looks cool as H. I mean what's my first step on adding a site to monitor/// add a device ( website? google.com? ) Kind of stuck on this one??

Thanks
keresh
Posts: 3
Joined: Tue Aug 09, 2005 5:43 pm

Post by keresh »

server# php script_server.php
PHP Script Server has Started - Parent is cmd
/home/www/cacti/scripts/ss_fping.php ss_fping localhost 20

Fatal error: Call to undefined function: socket_create() in /home/www/cacti/lib/ping.php on line 98



running as su'ed root, freebsd5.4,cacti8.6f w/patches


any suggestions?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In order to run cacti correctly (0.86 and above) you must have the Socket's extension to PHP enabled.

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yetdog,

It takes at least 2 polling cycles to show data. Also, please verify your output in the log file under DEBUG.

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Boots,

You likely have a dated version of the ss_fping.php file in your Scripts directory. Please make sure you have it there.

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?
wvr120364
Posts: 16
Joined: Tue May 06, 2003 7:48 am

4 [main] rrdtool 3744 handle_exceptions: Exception: STATUS_A

Post by wvr120364 »

Hi,
When I implement the template and script I'm getting the following error:
4 [main] rrdtool 3744 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION

The logfile shows:
08/15/2005 03:05:01 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update D:\Vis-netWeb\Mambo\cacti\rra\jawi2003_loss_51.rrd --template 1124111100:U
What indicates that there is no data.

What could this be?

Wietze
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests