Advanced Ping Template for Cacti 0.8.6f
Moderators: Developers, Moderators
for debian funs:
apt-get install php-net-socket
using a sid/unstable repository
apt-get install php-net-socket
using a sid/unstable repository
i had to create the graph from "new graph first" and after configure from "graph management" (and not directly from "graph management")JJX wrote:What should i choose as Data Source ??
in the list i get only options for the traffic ...
strange bug
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.
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 (22.73 KiB) Viewed 11604 times
Advanced Ping v1.2 graphs
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?
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?
-
- Posts: 7
- Joined: Thu Oct 27, 2005 4:32 pm
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
what version of PHP?
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?
-
- Posts: 7
- Joined: Thu Oct 27, 2005 4:32 pm
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#
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
-
- Posts: 7
- Joined: Thu Oct 27, 2005 4:32 pm
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
goto the lib directory and run "php -l ping.php"
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?
-
- Posts: 7
- Joined: Thu Oct 27, 2005 4:32 pm
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)
-
- Posts: 7
- Joined: Thu Oct 27, 2005 4:32 pm
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
Who is online
Users browsing this forum: No registered users and 0 guests