foxtratz wrote:Hi Lvm,
I am using cacti0.8.6h, I only imported the advanced ping template since the ss_fping.php and ping.php already exists in the cacti directory. Im wondering why I am getting nan values or my graph is only red. I tried manually the ss_fping.php script using script server and the result is good. However when I used rrdtool fetch on the database all I can see is nan. Anybody has any idea here? or Do I have to overwrite the existing ss_fping.php or ping.php with the ones you posted.
Thanks and Good Day
EDIT: Advanced Ping Template Version 1.3 for Cacti 0.8.6g
Moderators: Developers, Moderators
Re: I get nan data
i got the same problem when i install advenced ping, i'm working on CentOS and Cacti 0.86h, so if you cant tell what did you do to resolve your problem i will thanks i lot of...
-
- Posts: 32
- Joined: Mon Aug 07, 2006 2:32 pm
- Location: PR
- Contact:
-
- Posts: 32
- Joined: Mon Aug 07, 2006 2:32 pm
- Location: PR
- Contact:
Class Net_Ping Not Found
Everything appears to be in order, but getting the following error on this script:
[root@linux cacti]# php /var/lib/cacti/scripts/ss_fping.php www.google.com 20
PHP Fatal error: Class 'Net_Ping' not found in /var/lib/cacti/scripts/ss_fping.php on line 25
Net_Ping is installed:
[root@linux cacti]# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
Math_Stats 0.8.5 stable
Net_Ping 2.4.1 stable
PEAR 1.4.11 stable
XML_RPC 1.5.0 stable
Any idea what the problem is?
[root@linux cacti]# php /var/lib/cacti/scripts/ss_fping.php www.google.com 20
PHP Fatal error: Class 'Net_Ping' not found in /var/lib/cacti/scripts/ss_fping.php on line 25
Net_Ping is installed:
[root@linux cacti]# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
Math_Stats 0.8.5 stable
Net_Ping 2.4.1 stable
PEAR 1.4.11 stable
XML_RPC 1.5.0 stable
Any idea what the problem is?
ping packet data length
Witness thanks for a new and improved ping tool I have one question / request. Would it be possible to specify the length of the ping packet. Something like microsoft allows with the -l variable, like this :
ping 1.1.1.1 -length 1500
so that a user could "emulate" a standard ethernet packet.
ping 1.1.1.1 -length 1500
so that a user could "emulate" a standard ethernet packet.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Well, it's entirely possible, but it's not high on my list of priorities and currently the php based ping library is not written for it. So, since that is a "base"/"core" module, it may not happen for a while.
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: 24
- Joined: Tue Mar 28, 2006 2:40 am
Ping Multiple IPs
Kindly advice:
does the ping utility give me the option to ping several IPs at one go.
For example i have Router A, and i want it to ping the Router B C and D
And lets say from Router G, i only want it to ping a particular server
Can this be setup using the advanced ping utility?
does the ping utility give me the option to ping several IPs at one go.
For example i have Router A, and i want it to ping the Router B C and D
And lets say from Router G, i only want it to ping a particular server
Can this be setup using the advanced ping utility?
Can't get it to work
Any idean on what I'm doing wrong here or what I need to change? I've tried running from the web interface with no success and no success from command line either.
[root@cacti ~]# php /var/www/html/script_server.php
PHP Script Server has Started - Parent is cmd
ss_fping 10.1.1.2 20 ICMP
WARNING: Function does not exist
Here is my setup
[root@cacti ~]# php /var/www/html/script_server.php
PHP Script Server has Started - Parent is cmd
ss_fping 10.1.1.2 20 ICMP
WARNING: Function does not exist
Here is my setup
Cacti Version - 0.8.6i
Plugin Architecture - 1.0
Poller Type - Cactid v0.8.6i
Server Info - Linux 2.6.9-42.0.3.EL
Web Server - Apache/2.0.52 (CentOS)
PHP - 4.3.9
PHP Extensions - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator
MySQL - 4.1.20
RRDTool - 1.2.15
SNMP - 5.1.2
Plugins
- PHP Network Weathermap (weathermap - v0.82)
Thresholds (thold - v0.3.0)
Device Monitoring (monitor - v0.7)
Network Discovery (discovery - v0.6)
Network Tools (tools - v0.2)
Syslog Monitoring (haloe - v0.4)
mactrack
RRD Cleaner (rrdclean - v1.1)
Update Checker (update - v0.3)
FlowView (flowview - v0.3)
Host Info (hostinfo - v0.1)
Error Images (errorimage - v0.1)
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
you must include the script path first:
/www/html/cacti/scripts/ss_fping.php ss_fping 10.1.1.2 20 ICMP
So, the syntax is:
script_path function_name_to_call function_parameters
TheWitness
/www/html/cacti/scripts/ss_fping.php ss_fping 10.1.1.2 20 ICMP
So, the syntax is:
script_path function_name_to_call function_parameters
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: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Run the poller as root and all will work, otherwise, I believe if you run cactid as setuid, then it should work. ICMP packet's can only be generated as a root ID. You also have the option to use TCP pings to some known "open" port.
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 changed the file and group ownership on <cacti path>/poller.php, <cacti path>/lib/poller.php, <cacti path>/lib/ping.php, and <cacti path>/scripts/ss_fping.php from apache to root. Am I missing something because this still doesn't work for me.
Is there something in Cacti where I tell the Graph to run as root? Sorry for being such a n00b and thanks for your help so far!
Is there something in Cacti where I tell the Graph to run as root? Sorry for being such a n00b and thanks for your help so far!
kevandju,
what you changed are the permissions... the poller is run by cron, and to be able to do ICMP it needs to run as root, check your cron setup.
mine is in /etc/cron.d/cacti
*/5 * * * * www-data /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
currently running as the www-data user, if I want to do ICMP pings, I need to change that to root
what you changed are the permissions... the poller is run by cron, and to be able to do ICMP it needs to run as root, check your cron setup.
mine is in /etc/cron.d/cacti
*/5 * * * * www-data /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
currently running as the www-data user, if I want to do ICMP pings, I need to change that to root
Who is online
Users browsing this forum: No registered users and 1 guest