PHPSVR: ERROR: only when running with 1 process (cmd.php)

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

Moderators: Developers, Moderators

Post Reply
User avatar
dreness
Posts: 7
Joined: Fri Jan 02, 2004 6:57 pm
Location: Cupertino, CA
Contact:

PHPSVR: ERROR: only when running with 1 process (cmd.php)

Post by dreness »

I'm getting PHPSVR: ERROR: Input Expected, Script Server Terminating, but only when I run with 1 cmd.php process. With 2 or 3, the error does not occur. In all cases, all of the data I'm asking for is actually being collected; no holes in the graphs or anything. This started happening after I added a couple more custom scripts to my snmpd configurations (and their accompanying data sources / graph templates), all of which execute normally when invoked by hand. I can see the return values in the debug log, and they all look fine.

I followed some other suggestions like looking for errant data sources by setting the host filter = none; there aren't any. I've enabled debug logging, and the error would always occur at about the same point in the polling sequence, so I examined the polling configuration of the host being polled at the time of the error and compared it to other hosts that should have identical configuration. e.g.

Code: Select all

mysql> select rrd_name,arg1 from poller_item
    -> where hostname = "scv03.apple.com" order by local_data_id;
+-------------------+-------------------------------------+
| rrd_name          | arg1                                |
+-------------------+-------------------------------------+
| proc              | .1.3.6.1.2.1.25.1.6.0               |
| tcp_cons          | .1.3.6.1.4.1.2021.8.1.101.102.101.1 |
| darwin_cpu_system | .1.3.6.1.4.1.2021.8.1.101.101.2     |
| darwin_cpu_user   | .1.3.6.1.4.1.2021.8.1.101.101.1     |
| load_1min         | .1.3.6.1.4.1.2021.10.1.3.1          |
| load_15min        | .1.3.6.1.4.1.2021.10.1.3.3          |
| load_5min         | .1.3.6.1.4.1.2021.10.1.3.2          |
| traffic_out       | .1.3.6.1.2.1.2.2.1.16.4             |
| traffic_in        | .1.3.6.1.2.1.2.2.1.10.4             |
| hdd_used          | .1.3.6.1.4.1.2021.9.1.8.1           |
| hdd_free          | .1.3.6.1.4.1.2021.9.1.7.1           |
| ni_apple          | .1.3.6.1.4.1.2021.8.1.101.103.101.1 |
| ni_network        | .1.3.6.1.4.1.2021.8.1.101.104.101.1 |
+-------------------+-------------------------------------+
13 rows in set (0.00 sec)

mysql> select rrd_name,arg1 from poller_item
    -> where hostname = "scv04.apple.com" order by local_data_id;
+-------------------+-------------------------------------+
| rrd_name          | arg1                                |
+-------------------+-------------------------------------+
| proc              | .1.3.6.1.2.1.25.1.6.0               |
| tcp_cons          | .1.3.6.1.4.1.2021.8.1.101.102.101.1 |
| darwin_cpu_system | .1.3.6.1.4.1.2021.8.1.101.101.2     |
| darwin_cpu_user   | .1.3.6.1.4.1.2021.8.1.101.101.1     |
| load_1min         | .1.3.6.1.4.1.2021.10.1.3.1          |
| load_15min        | .1.3.6.1.4.1.2021.10.1.3.3          |
| load_5min         | .1.3.6.1.4.1.2021.10.1.3.2          |
| traffic_out       | .1.3.6.1.2.1.2.2.1.16.4             |
| traffic_in        | .1.3.6.1.2.1.2.2.1.10.4             |
| hdd_used          | .1.3.6.1.4.1.2021.9.1.8.1           |
| hdd_free          | .1.3.6.1.4.1.2021.9.1.7.1           |
| ni_apple          | .1.3.6.1.4.1.2021.8.1.101.103.101.1 |
| ni_network        | .1.3.6.1.4.1.2021.8.1.101.104.101.1 |
+-------------------+-------------------------------------+
13 rows in set (0.00 sec)
All of the relevant configurations match, and again, all the data I'm asking for shows up in the graphs.

Any suggestions on how to troubleshoot this? I'm perfectly content to leave it set for 2 processes, but ... I don't like it when things aren't working perfectly :)

I also tried using the patched cmd.php mentioned in another thread; that didn't help. I'm using cacti-0.8.6f.

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

Post by TheWitness »

PHP is segfaulting. What OS and version of PHP are you running?

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?
User avatar
dreness
Posts: 7
Joined: Fri Jan 02, 2004 6:57 pm
Location: Cupertino, CA
Contact:

Post by dreness »

TheWitness wrote:PHP is segfaulting. What OS and version of PHP are you running?

TheWitness
Mac OS X Server 10.3.9

PHP 4.3.11 (cli) (built: May 25 2005 14:03:43)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Thanks :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

PHP 4.4.0 is out and works with cacti 0.8.6f. You'll also need to upgrade Zend (1.3.0 is not the version you're running anyways, thats just the engine).
User avatar
dreness
Posts: 7
Joined: Fri Jan 02, 2004 6:57 pm
Location: Cupertino, CA
Contact:

Post by dreness »

BSOD2600 wrote:PHP 4.4.0 is out and works with cacti 0.8.6f. You'll also need to upgrade Zend (1.3.0 is not the version you're running anyways, thats just the engine).
Yeah... Mac OS X 10.3.9 isn't exactly current. I had initially tried to deploy this in tiger (10.4), but got stuck by the mysql auth problem. I've since learned about the workaround, so I'll probably end up rebuilding it all in 10.4.2 Server.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests