Perl Path?

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Perl Path?

Post by ichoudhury »

I started seeing "warning: Result not valid from script..." as I have been testing the WMI script to grab CPU, Mem data...

I went and ran cactid from command prompt and started getting this....

CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6f-rc3 starting
sh: c:/perl/bin/perl.exe: No such file or directory
sh: c:/perl/bin/perl.exe: No such file or directory
sh: c:/perl/bin/perl.exe: No such file or directory
sh: c:/perl/bin/perl.exe: No such file or directory
CACTID: Execution Time: 16.0470 s, Threads: 5, Hosts: 12


3 Things that I have done were.....

1) Patch (already did a fallback)
2) cactid (tried with old one but also this one works fine yesterday)
3) rrdtool (already fallback)


Any idea why cactid (perhaps those script) looking for perl in c:\perl when my perl is in D:\perl (and also in the env variable)
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Did you check that the perl path is not hard coded into the Data Input Method? It should just use the name perl to call it for the script.
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Post by ichoudhury »

That was so right on the money! :-D

a recently implemented Memory utilization script from here by using the import feature...and it was set to c:\perl --- didn't checkback

Thank you... :)

Although, I must have screwed up something in the process because now when I run cactid, I am not getting those magic small numbers :(

Tried cactid (0.8.6e, RC3 and RC5) -> More or less same numbers ...

I hate to install this thing all over again... I have it in DEBUG mode and I will paste the output in a sec
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
User avatar
ichoudhury
Posts: 46
Joined: Tue May 31, 2005 8:18 am

Post by ichoudhury »

I am like stuck at this level for the last 20 min
CACTID: Using cactid config file [cactid.conf]
CACTID: DEBUG: The path_php_server variable is d:\cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is d:\cacti\log\cacti.log
CACTID: DEBUG: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is d:\php\php-win.exe
CACTID: DEBUG: The availability_method variable is 1
CACTID: DEBUG: The ping_recovery_count variable is 3
CACTID: DEBUG: The ping_failure_count variable is 2
CACTID: DEBUG: The ping_method variable is 1
CACTID: DEBUG: The ping_retries variable is 3
CACTID: DEBUG: The ping_timeout variable is 500
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: The log_pwarn variable is 1
CACTID: DEBUG: The log_pstats variable is 0
CACTID: DEBUG: The threads variable is 5
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: The number of concurrent processes is 1
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='0', EndHost='0', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: The Maximum SNMP OID Get Size is 25
CACTID: CACTID: Version 0.8.6f-rc5 starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: CACTID: Initializing Net-SNMP API
CACTID: CACTID: Initializing PHP Script Server
CACTID: DEBUG: Parent pid=3820, Script Server pid=0
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: Valid Thread to be Created
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: DEBUG: The Value of Active Threads is 2
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: Host[15] PING Result: ICMP: Host is Alive
CACTID: Host[15] SNMP Result: Host responded to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2005-08-24 15:44:00',status_rec_date='2005-08-25 00:24:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='0.499960',max_time='999.999990',cur_time='1.500010',avg_time='7.221402',total_polls='870',failed_polls='108',availability='87.5862' where id='15'

CACTID: Host[15] DEBUG: The POPEN returned the following File Descriptor 7
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: DEBUG: The Value of Active Threads is 3
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: Host[16] PING Result: ICMP: Host is Alive
CACTID: Host[16] SNMP Result: Host responded to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2005-08-24 15:44:00',status_rec_date='2005-08-25 00:24:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='0.000000',max_time='999.999990',cur_time='1.500015',avg_time='13.977843',total_polls='870',failed_polls='108',availability='87.5862' where id='16'

CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: Host[16] DEBUG: The POPEN returned the following File Descriptor 10
CACTID: DEBUG: The Value of Active Threads is 4
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: Host[17] PING Result: ICMP: Host is Alive
CACTID: Host[17] SNMP Result: Host responded to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2005-08-25 04:54:00',status_rec_date='2005-08-25 00:24:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='0.000000',max_time='999.999990',cur_time='1.500010',avg_time='24.244684',total_polls='868',failed_polls='109',availability='87.4424' where id='17'

CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: Host[17] DEBUG: The POPEN returned the following File Descriptor 13
CACTID: DEBUG: The Value of Active Threads is 5
CACTID: MYSQL: Connecting to MySQL database 'cacti' on '127.0.0.1'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on '127.0.0.1'...
CACTID: Host[18] PING Result: ICMP: Host is Alive
CACTID: Host[18] SNMP Result: Host responded to SNMP
CACTID: DEBUG: The Value of Active Threads is 4
CACTID: Host[15] DS[127] SCRIPT: perl d:\cacti/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.00 10min:0.00
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2005-08-24 15:44:00',status_rec_date='2005-08-25 00:24:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='0.000000',max_time='999.999990',cur_time='4.500030',avg_time='21.636842',total_polls='866',failed_polls='108',availability='87.5289' where id='18'

CACTID: DEBUG: In Poller, About to Start Polling of Host
in cacti.log, I get POPEN Timed out
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Download the latest (pre-rc7) Cactid. Also, apply the following include/config.php to your system (remember to change the vital information), and clear your poller cache.

Larry
Attachments
config.zip
(2.37 KiB) Downloaded 109 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests