Advanced ping issue

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
jay_kumar
Posts: 8
Joined: Thu Feb 02, 2006 2:41 pm

Advanced ping issue

Post by jay_kumar »

My cacti installation on CentOS 4.2 is creating blanks graphs for devices created using advance ping. running the Data Query on consol with root privledge i get following error

[root@lin cacti]# php /var/www/cacti/scripts/ss_fping.php ss_fping 10.170.0.121 5 ICMP
PHP Notice: Undefined variable: method in /var/www/cacti/scripts/ss_fping.php on line 56
PHP Warning: socket_connect() expects parameter 3 to be long, string given in /var/www/cacti/lib/ping.php on line 220
PHP Warning: socket_write() unable to write to socket [89]: Destination address required in /var/www/cacti/lib/ping.php on line 244

my phpinfo shows '--enable-sockets' (i think sockets are enable in php)

I guess this is some php issue. but how do i resolve it

please help me out.

Thanks in advance
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Advanced ping issue

Post by gandalf »

jay_kumar wrote:[root@lin cacti]# php /var/www/cacti/scripts/ss_fping.php ss_fping 10.170.0.121 5 ICMP
This should read

Code: Select all

php  /var/www/cacti/scripts/ss_fping.php ss_fping 10.170.0.121 ICMP 5
I suppose
Reinhard
[edit]forget all this rubbish of me.. :x I was mistaken[/edit]
Last edited by gandalf on Thu Feb 09, 2006 2:55 pm, edited 1 time in total.
jay_kumar
Posts: 8
Joined: Thu Feb 02, 2006 2:41 pm

one issue resolved but no graphs!!!

Post by jay_kumar »

well the above menioned problem went out. but i am still not able to get the graphs working. Graphs show 100% loss but when i run the script on console with root prv i get following

[root@lin scripts]# /usr/bin/php ss_fping.php ss_fping 10.170.65.7 ICMP 5
PHP Warning: Division by zero in /var/www/cacti/scripts/ss_fping.php on line 93
Content-type: text/html
X-Powered-By: PHP/4.3.9

min:9999.9900 avg:0.0000 max:0.0000 dev:0.0000 loss:108.1613

whats going on?? any help
alexdehaini
Posts: 19
Joined: Sun May 28, 2006 6:52 am

Post by alexdehaini »

I have the same issue, how do I resolve it?
bfek-18
Posts: 24
Joined: Mon Oct 27, 2003 9:13 am
Location: Germany, Potsdam

Post by bfek-18 »

Hi,

please read this:

http://docs.cacti.net/node/518


bye
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Post by chrisgapske »

alexdehaini wrote:I have the same issue, how do I resolve it?

Sounds like a permission issue I had..
If your poller is not running as root( By the way I don't recommend doing that) than you have to give your poller user sudo permissions to create an ICMP packet to send the pings.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

chrisgapske wrote:
alexdehaini wrote:I have the same issue, how do I resolve it?

Sounds like a permission issue I had..
If your poller is not running as root( By the way I don't recommend doing that) than you have to give your poller user sudo permissions to create an ICMP packet to send the pings.
How would you suggest that this be setup. Please publish a procedure.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests