PHPSVR: Poller[0] ERROR: Input Expected

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
j_h
Posts: 5
Joined: Mon Jun 27, 2005 4:54 am
Location: Darmstadt, Germany
Contact:

PHPSVR: Poller[0] ERROR: Input Expected

Post by j_h »

System is SuSE 9.2
PHP 4.3.8
Cacti 0.8.6e

Since update to 0.8.6e no data is collected and the following appears in the log when I run poller.php from command line:

06/27/2005 12:04:03 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 30]
06/27/2005 12:04:03 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
06/27/2005 12:04:03 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /usr/share/cacti
06/27/2005 12:04:03 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
06/27/2005 12:04:03 PM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/script_server.php
06/27/2005 12:04:03 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
06/27/2005 12:04:03 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
06/27/2005 12:04:03 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
06/27/2005 12:04:04 PM - SYSTEM STATS: Time: 1.0388 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 29, Hosts/Process: 29, DataSources 1799, RRDs Processed 0
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It looks like PHP is crashing. Can you set logging to DEBUG and run 1 pass of "php <path_cacti>/cmd.php from a command line and post the results.

TheWitness

p.s. You may also have buggered up data sources. Goto Data Sources and select the host filter "None" and look for abarent ones. If you find them, before you delete them. Please record the type and snmp/script/script server type.

Thanks,

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?
j_h
Posts: 5
Joined: Mon Jun 27, 2005 4:54 am
Location: Darmstadt, Germany
Contact:

Post by j_h »

It was a Data Source Problem with one of my ucd/net SNMP (in fact net-snmp 5.1.2 if that is important) Hosts.

Thanks a lot.
pku-info.org
PKU Information, Wiki, Forum, Links, ...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I have placed a patch into Cacti cmd.php to prevent this moving forward. PHP should not have expired (abended), but for some reason it does on certain versions.

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?
rama
Posts: 7
Joined: Wed Dec 15, 2004 5:13 am

Post by rama »

Hi,

got exactly the same error.
What is exactly the fix to have cacti work ?

thanks
http://www.netfacile.net/
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please use the attached.

Larry
Attachments
cmd.zip
(4.46 KiB) Downloaded 1492 times
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?
rama
Posts: 7
Joined: Wed Dec 15, 2004 5:13 am

Post by rama »

ok thanks, seems to get more good logs now.

David
http://www.netfacile.net/
rama
Posts: 7
Joined: Wed Dec 15, 2004 5:13 am

Post by rama »

rama wrote:ok thanks, seems to get more good logs now.

David
well in fact now I'm getting this kind of errors:

06/27/2005 08:15:01 PM - CMDPHP: Poller[0] Host[0] DS[504] SNMP: v0: None, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.21135360, output: U
06/27/2005 08:15:01 PM - CMDPHP: Poller[0] Host[0] DS[504] ERROR: Invalid SNMP Data Source. Please either delete it from the database, or correct it.

do I have ro recreate all graphs ?? :-(

Thanks

David
http://www.netfacile.net/
rama
Posts: 7
Joined: Wed Dec 15, 2004 5:13 am

Post by rama »

Well they used to be valid before upgrading.
If I do what you tell me, I see a lot of them.

David
http://www.netfacile.net/
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You may have had them all along. Data Sources get unassociated from hosts when you delete a host, but not the Data Source. This was quite easy to do in earlier versions of Cacti. Unfortunately, it appears some versions of php_snmp crash php when you have invalid SNMP information.

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?
rama
Posts: 7
Joined: Wed Dec 15, 2004 5:13 am

Post by rama »

Weel I went back to my old 0.8.5a.

When upgrading to newer version, do I have to recreate all the devices/data sources etc ???
Or do I have to upgrade step by step from 8.5x to 8.6x going from one version to the next ?

David R.
http://www.netfacile.net/
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

rama,

Can you please dump your 0.8.5a database and e-mail to my e-mail account. I would like to audit it to find the source of the problem.

Downgrading involves the restoration of your database from backup. Once this is done, you should be all set.

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?
rama
Posts: 7
Joined: Wed Dec 15, 2004 5:13 am

Post by rama »

TheWitness wrote: Downgrading involves the restoration of your database from backup. Once this is done, you should be all set.
Yup did backup my sql db before doing anything so the return to 8.5a was not a pain and everythings is ok.
Did want to upgrade to be abble to have new funcionalities and use some plugins like the threshold stuff.

I'll send you my dump.

David R.
http://www.netfacile.net/
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests