EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6g
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
In Unix/Linux, you must be root to generate ICMP packets. It's a long story, but I did place an experimental change in lib/ping.php to allow ping to run if you set php to have as root privileges and have to POSIX PHP module loaded in that version of PHP. You should give it a test, but I would make sure that copy of PHP is not used for your web server, only the poller.
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?
Re: no reply
TheWitness: could you fix this bug? I have a threshold set up to send notification if packet loss goes over a certain amount but it's not going to throw a notification if there's 100% packet loss becuase it simply won't show any loss :/CoolTom wrote:everything is ok, but when is the destination down (no ping reply) i didnt get RED color like 100% packet loss but this "WHITE HOLE". Where is problem? Or its correct? May be its when ping get answer:
Reply from xx.xx.xx.85: Destination host unreachable.
thnx for help or answ Tom
--
end where is green staff at AVG LATENCY 0:-)
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
The intent was to fix this in 0.9. But being that it's delayed, I will see what I can do.
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:
Well, first of all SNMP is connectionless. So there is no guarentee that a UDP ping will generate a reponse. This is especially true with SNMP because it is designed not to respond unless thier is a request with a valid community string.
You are better off performing a UDP ping with an unknown port. That will generate a ICMP response of "port not found". This is only true if your routers are configured to allow this return ICMP traffic to travel the WAN of course.
TheWitness
You are better off performing a UDP ping with an unknown port. That will generate a ICMP response of "port not found". This is only true if your routers are configured to allow this return ICMP traffic to travel the WAN of course.
TheWitness
Last edited by TheWitness on Mon Jul 31, 2006 5:30 am, edited 1 time in total.
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?
Thanks! In the meantime, is there any way to set up a threshold that will trigger when there's 100% packet loss? I don't know how I could say "when average ping goes below %nan" or if there's an alternative.TheWitness wrote:The intent was to fix this in 0.9. But being that it's delayed, I will see what I can do.
TheWitness
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Simply leave the community string blank.
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:
What is in the Cacti log? Can you post the graphic?
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: 32
- Joined: Mon Aug 07, 2006 2:32 pm
- Location: PR
- Contact:
NEW Advanced Ping Template Version 1.3 for Cacti 0.8.6g
I have installed the Advanced Ping Template on Cacti EZ, I test the script and it is working but the graphs shows 100% packet loss.
Any Idea???
[root@localhost AdvancedPing]# php /var/www/html/scripts/ss_fping.php 192.168.28.253 20 ICMP
Content-type: text/html
X-Powered-By: PHP/4.3.9
min:11.1000 avg:13.6755 max:32.6200 dev:5.9406 loss:0.0000
Any Idea???
[root@localhost AdvancedPing]# php /var/www/html/scripts/ss_fping.php 192.168.28.253 20 ICMP
Content-type: text/html
X-Powered-By: PHP/4.3.9
min:11.1000 avg:13.6755 max:32.6200 dev:5.9406 loss:0.0000
question
I'm curious if there is a patch that I can apply to any of the scripts? I'm currently in the same situation where a failed link will not show 100% loss.everything is ok, but when is the destination down (no ping reply) i didnt get RED color like 100% packet loss but this "WHITE HOLE". Where is problem? Or its correct? May be its when ping get answer:
Thanks!!
Who is online
Users browsing this forum: No registered users and 0 guests