poller, cmd, spine all fubar...

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

Moderators: Developers, Moderators

Post Reply
Greywolf
Posts: 12
Joined: Tue Nov 13, 2007 7:14 pm

poller, cmd, spine all fubar...

Post by Greywolf »

When I configure php to run with only

Code: Select all

extension_dir = /etc/php.d;
I get:

Code: Select all

PHP Warning:  Unknown(): Unable to load dynamic library '/etc/php.d/mysql.so' -
/etc/php.d/mysql.so: cannot open shared object file: No such file or directory i
n Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library '/etc/php.d/snmp.so' - /
etc/php.d/snmp.so: cannot open shared object file: No such file or directory in
Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library '/etc/php.d/ldap.so' - /
etc/php.d/ldap.so: cannot open shared object file: No such file or directory in
Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library '/etc/php.d/mysql.so' -
/etc/php.d/mysql.so: cannot open shared object file: No such file or directory i
n Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library '/etc/php.d/odbc.so' - /
etc/php.d/odbc.so: cannot open shared object file: No such file or directory in
Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library '/etc/php.d/pgsql.so' -
/etc/php.d/pgsql.so: cannot open shared object file: No such file or directory i
n Unknown on line 0
PHP Warning:  Unknown(): Unable to load dynamic library '/etc/php.d/snmp.so' - /
etc/php.d/snmp.so: cannot open shared object file: No such file or directory in
Unknown on line 0
Content-type: text/html
X-Powered-By: PHP/4.3.9

When I add

Code: Select all

extension_dir = /usr/lib/php4
I get:

Code: Select all

 php cmd.php
PHP Notice:  Constant MYSQL_ASSOC already defined in Unknown on line 0
PHP Notice:  Constant MYSQL_NUM already defined in Unknown on line 0
PHP Notice:  Constant MYSQL_BOTH already defined in Unknown on line 0
PHP Notice:  Constant MYSQL_CLIENT_COMPRESS already defined in Unknown on line 0
PHP Notice:  Constant MYSQL_CLIENT_SSL already defined in Unknown on line 0
PHP Notice:  Constant MYSQL_CLIENT_INTERACTIVE already defined in Unknown on line 0
PHP Notice:  Constant MYSQL_CLIENT_IGNORE_SPACE already defined in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_connect in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_pconnect in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_close in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_select_db in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_query in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_unbuffered_query in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_db_query in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_list_dbs in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_list_tables in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_list_fields in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_list_processes in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_error in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_errno in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_affected_rows in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_insert_id in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_result in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_num_rows in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_num_fields in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_row in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_array in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_assoc in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_object in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_data_seek in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_lengths in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fetch_field in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_seek in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_free_result in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_name in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_table in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_len in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_type in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_field_flags in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_escape_string in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_real_escape_string in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_stat in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_thread_id in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_client_encoding in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_ping in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_get_client_info in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_get_host_info in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_get_proto_info in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_get_server_info in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_info in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldname in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldtable in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldlen in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldtype in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_fieldflags in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_selectdb in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_freeresult in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_numfields in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_numrows in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_listdbs in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_listtables in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_listfields in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_db_name in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_dbname in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_tablename in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - mysql_table_name in Unknown on line 0
PHP Warning:  mysql:  Unable to register functions, unable to load in Unknown on line 0
PHP Notice:  Constant SNMP_VALUE_LIBRARY already defined in Unknown on line 0
PHP Notice:  Constant SNMP_VALUE_PLAIN already defined in Unknown on line 0
PHP Notice:  Constant SNMP_VALUE_OBJECT already defined in Unknown on line 0
PHP Notice:  Constant SNMP_BIT_STR already defined in Unknown on line 0
PHP Notice:  Constant SNMP_OCTET_STR already defined in Unknown on line 0
PHP Notice:  Constant SNMP_OPAQUE already defined in Unknown on line 0
PHP Notice:  Constant SNMP_NULL already defined in Unknown on line 0
PHP Notice:  Constant SNMP_OBJECT_ID already defined in Unknown on line 0
PHP Notice:  Constant SNMP_IPADDRESS already defined in Unknown on line 0
PHP Notice:  Constant SNMP_COUNTER already defined in Unknown on line 0
PHP Notice:  Constant SNMP_UNSIGNED already defined in Unknown on line 0
PHP Notice:  Constant SNMP_TIMETICKS already defined in Unknown on line 0
PHP Notice:  Constant SNMP_UINTEGER already defined in Unknown on line 0
PHP Notice:  Constant SNMP_INTEGER already defined in Unknown on line 0
PHP Notice:  Constant SNMP_COUNTER64 already defined in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmpget in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmpwalk in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmprealwalk in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmpwalkoid in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp_get_quick_print in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp_set_quick_print in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp_set_enum_print in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp_set_oid_numeric_print in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmpset in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp3_get in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp3_walk in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp3_real_walk in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp3_set in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp_set_valueretrieval in Unknown on line 0
PHP Warning:  Function registration failed - duplicate name - snmp_get_valueretrieval in Unknown on line 0
PHP Warning:  snmp:  Unable to register functions, unable to load in Unknown on line 0


my last poller run from crontab gave me a lot of that followed by...

Code: Select all

OK u:0.00 s:0.01 r:4.04
OK u:0.00 s:0.01 r:4.04
OK u:0.00 s:0.01 r:4.04
OK u:0.00 s:0.01 r:4.04
OK u:0.00 s:0.01 r:5.05
OK u:0.00 s:0.01 r:5.05
OK u:0.00 s:0.01 r:5.05
OK u:0.00 s:0.01 r:5.05
OK u:0.00 s:0.01 r:5.05
OK u:0.00 s:0.01 r:5.05
OK u:0.00 s:0.01 r:5.05
Content-type: text/html
X-Powered-By: PHP/4.3.9

11/13/2007 05:30:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceed
ed. Exiting.
11/13/2007 05:30:00 PM - SYSTEM STATS: Time:298.3306 Method:cmd.php Processes:5
Threads:N/A Hosts:131 HostsPerProcess:27 DataSources:1008 RRDsProcessed:50
PHP Warning:  pclose(): 65 is not a valid stream resource in /local_home/cacti/h
tml/lib/rrd.php on line 57
11/13/2007 05:30:00 PM - POLLER: Poller[0] THOLD: Can not send Host Down email s
ince the 'Alert e-mail' setting is not set!
11/13/2007 05:30:00 PM - WEATHERMAP: Poller[0] Weathermap 0.92 starting - Normal
 logging mode. Turn on DEBUG in Cacti for more information
11/13/2007 05:30:00 PM - WEATHERMAP: Poller[0]

No image (gd) extension is loaded. This is required by weathermap.
11/13/2007 05:30:00 PM - WEATHERMAP: Poller[0] run check.php to check PHP requirements.
11/13/2007 05:30:00 PM - WEATHERMAP: Poller[0] Required modules for PHP Weathermap 0.92 were not present. Not running.

I know it probably speaks for itself but I'm kind of fried and under the gun to get this working so any help would be appreciated.


In any case, nothing I'm doing will cause my rrds to update.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is a php configuration issue. You have two of each of both your php_snmp and php_mysql modules being included. That is bad. The second half in a minute.
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

PHP Warning: pclose(): 65 is not a valid stream resource in /local_home/cacti/h
tml/lib/rrd.php on line 57
That suspiciously looks like rrdtool is crashing. Maybe not, but that is typically what happens. Others can chime in.

TheWitnes[/quote]
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?
Greywolf
Posts: 12
Joined: Tue Nov 13, 2007 7:14 pm

Post by Greywolf »

quick response! woohoo!

By the way, I have those messages you say are "duplicates" even if I remove /etc/php.d from the mix.

further issues:

I just upgraded to use php5.

Now poller and cmd both produce NO output whatsoever.
Greywolf
Posts: 12
Joined: Tue Nov 13, 2007 7:14 pm

Post by Greywolf »

fixed the php.ini issue.

"php cmd.php" gives me

Code: Select all

SNMP not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[711] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[711] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[712] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[712] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[713] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[713] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[714] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:08 PM - CMDPHP: Poller[0] Host[1] DS[714] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:09 PM - CMDPHP: Poller[0] Host[2] DS[454] WARNING: Result from SERVER not valid.  Partial Result:
11/13/2007 06:09:10 PM - CMDPHP: Poller[0] Host[3] DS[482] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
11/13/2007 06:09:10 PM - CMDPHP: Poller[0] Host[3] DS[483] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
11/13/2007 06:09:10 PM - CMDPHP: Poller[0] Host[3] DS[484] WARNING: Result from SNMP not valid.  Partial Result: No Such Object avail
(this is php4)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Set logging to MEDIUM and run cmd.php again. I am sure you may be more.

Then,

select count(*) from poller_output;

Post that value.

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?
Greywolf
Posts: 12
Joined: Tue Nov 13, 2007 7:14 pm

Post by Greywolf »

Well, saw a lot of stuff...and it actually completed this time.

But:

Code: Select all

mysql> select count(*) from poller_output
    -> ;
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.00 sec)

mysql>

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cool. Later.
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 1 guest