I have a strange problem with an external perl script.
Sometimes it works, sometimes not...
This is a short script who get the round trip time (like ping.pl).
When i launch manually, the script return always the good output.
When i enable the DEGUG logging, i have :
Code: Select all
02/24/2006 04:29:10 PM - CACTID: Poller[0] Host[57] DS[250] SCRIPT: /usr/bin/perl /usr/local/cacti/scripts/rtt.pl 10.3.1.1, output: rtt1:6.31 rtt2:14.2 rtt3:22.0
02/24/2006 04:29:10 PM - CACTID: Poller[0] Host[55] DS[249] WARNING: Result from SCRIPT not valid. Partial Result: ...
02/24/2006 04:29:10 PM - CACTID: Poller[0] Host[55] DS[249] SCRIPT: /usr/bin/perl /usr/local/cacti/scripts/rtt.pl 10.2.1.4, output: U
02/24/2006 04:29:35 PM - CACTID: Poller[0] Host[58] ERROR: The POPEN timed out
02/24/2006 04:29:40 PM - CACTID: Poller[0] Host[58] DS[248] WARNING: Result from SCRIPT not valid. Partial Result: ...
02/24/2006 04:29:40 PM - CACTID: Poller[0] Host[58] DS[248] SCRIPT: /usr/bin/perl /usr/local/cacti/scripts/rtt.pl 10.0.0.1, output: U
Why popen() get time out ??
Thanks for your help.
PS : i use cacti-0.8.6g with rrdtool-1.2.11, php 5.1.1