"The POPEN timed out" what does it mean?

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

Moderators: Developers, Moderators

Post Reply
celestian
Posts: 11
Joined: Wed Sep 03, 2008 11:06 am

"The POPEN timed out" what does it mean?

Post by celestian »

I am running current cacti with cacti-spine-0.8.7g under solaris 10. I am repeatedly seeing the error "10/14/2010 03:36:31 PM - SPINE: Poller[0] Host[697] ERROR: The POPEN timed out " for varying hosts. These hosts ALL tend to be sites outside the country, leading me to believe it's a latency issue.

What exactly does popen timed out mean? If I have enough of the errors from sites like this it causes the poll to fail and data holes in trends.

Just looking for ways to resolve this, thanks!
celestian
Posts: 11
Joined: Wed Sep 03, 2008 11:06 am

Re: "The POPEN timed out" what does it mean?

Post by celestian »

Something else I've found is this in my logs:

Spine did not detect multithreaded device polling

I've set spine to use up to 50 threads. Is this not the same option/configuration? Am I missing something to enable multithreaded polling?
Christian
Posts: 46
Joined: Thu Feb 14, 2008 4:24 am
Location: Oelde/Gütersloh, NRW, Germany

Re: "The POPEN timed out" what does it mean?

Post by Christian »

Popen is a php function and is used to open process file pointers. In other words it used to run processes and get the output from them. If the runtime of your scripts exceed the "Script and Script Server Timeout Value", cacti spits out the error message "The popen timed out".

It could be something else, but this is it most likely.
cacti: 0.8.7g
spine: 0.8.7g
plugins:
specs: 2xIntel Xeon @ 2.40GHz | 6GiB RAM | CentOS 5.5 | PHP 5.1.6 | MySQL 5.0.77 | RRDTool 1.4.4 | Apache/2.2.3
celestian
Posts: 11
Joined: Wed Sep 03, 2008 11:06 am

Re: "The POPEN timed out" what does it mean?

Post by celestian »

I was able to work around the problem by pushing the script number to 5 and then the timeout value to 30. This seemed to cut the total runtime for the spine process down from pretty close to 300 seconds to about 160-180.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests