need help about advance ping and cactid

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
yanhannet
Posts: 16
Joined: Mon Jun 20, 2005 9:45 pm

need help about advance ping and cactid

Post by yanhannet »

1 i can't use advance ping ,cacati 0.6.8h,rrdtool 1.2.12,php 5.1.2 ,
php socket support,
but i use the command:
[root@ADSL scripts]# php ss_fping.php ss_fping 127.0.0.1

Fatal error: Call to undefined function socket_create() in /usr/local/cacti/lib/ping.php on line 138
[root@ADSL scripts]# php ss_fping.php ss_fping 127.0.0.1 20 TCP

Notice: Undefined variable: method in /usr/local/cacti/scripts/ss_fping.php on line 56

Fatal error: Call to undefined function socket_create() in /usr/local/cacti/lib/ping.php on line 274
[root@ADSL scripts]# php ss_fping.php ss_fping 127.0.0.1 20 TCP 21

Notice: Undefined variable: method in /usr/local/cacti/scripts/ss_fping.php on line 56

Fatal error: Call to undefined function socket_create() in /usr/local/cacti/lib/ping.php on line 274
[root@ADSL scripts]# php ss_fping.php ss_fping 127.0.0.1 20 TCP 80

Notice: Undefined variable: method in /usr/local/cacti/scripts/ss_fping.php on line 56

Fatal error: Call to undefined function socket_create() in /usr/local/cacti/lib/ping.php on line 274

It take me a full day but i am still confused.



2 when i do :
su cacti
php poller.php
CACTID: ERROR: Problem with MySQL: 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1'

but if i use root :

CACTID: Host[40] DS[120] SS[0] WARNING: Result from SERVER not valid. Partial Result: ...
OK u:0.00 s:0.00 r:0.04
ERROR: Not enough arguments


how can i do ? thanks/.
yanhannet
Posts: 16
Joined: Mon Jun 20, 2005 9:45 pm

Post by yanhannet »

need help!!!!!!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Perhaps you need to activate the sockets option in php, see http://forums.cacti.net/viewtopic.php?t ... highlight=
Reinhard
yanhannet
Posts: 16
Joined: Mon Jun 20, 2005 9:45 pm

Post by yanhannet »

i have done ,but no use. why ?
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) Currently ss_fping must be run as root on Unix in order to create sockets.
2) The CACTID error is caused by a bug in the current release and has been fixed in SVN.

I am working on an enhancement that will help with creating raw sockets if you run the posix extension.

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