Advanced Ping Template for Cacti 0.8.6f
Moderators: Developers, Moderators
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...
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...
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
Make sure you apply the patches first.
TheWitness
- Attachments
-
- Advanced Ping on Windows.jpg (47.92 KiB) Viewed 10598 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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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'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
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
# 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
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
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
Thanks
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
In order to run cacti correctly (0.86 and above) you must have the Socket's extension to PHP enabled.
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Yetdog,
It takes at least 2 polling cycles to show data. Also, please verify your output in the log file under DEBUG.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
4 [main] rrdtool 3744 handle_exceptions: Exception: STATUS_A
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
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
Who is online
Users browsing this forum: No registered users and 0 guests