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
Advanced ping issue
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Advanced ping issue
This should readjay_kumar wrote:[root@lin cacti]# php /var/www/cacti/scripts/ss_fping.php ss_fping 10.170.0.121 5 ICMP
Code: Select all
php /var/www/cacti/scripts/ss_fping.php ss_fping 10.170.0.121 ICMP 5
Reinhard
[edit]forget all this rubbish of me.. I was mistaken[/edit]
Last edited by gandalf on Thu Feb 09, 2006 2:55 pm, edited 1 time in total.
one issue resolved but no graphs!!!
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
[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
-
- Posts: 19
- Joined: Sun May 28, 2006 6:52 am
- chrisgapske
- Cacti User
- Posts: 278
- Joined: Tue May 22, 2007 7:56 am
- Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
How would you suggest that this be setup. Please publish a procedure.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.
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?
Who is online
Users browsing this forum: No registered users and 2 guests