I have tried at least 4 add-ons from the Cacti-Scripts forum. Each one ends up with unknown results. I can run each and every script from the command line with the parameters passed in the script call, and they all show correct values. This is definitly a cactid problem. Using cmd.php causes the results to show correctly.
Anybody know how to fix this?
SAMPLE SCRIPT CMDLINE OUTPUT
C:\cacti\cacti-0.8.6f\scripts>c:\php\php.exe -q C:\cacti\cacti-0.8.6f/scripts/my
sql_stats.php status %company%-lx-srv-001.%company%online.com cactiuser cacti Connections
45777
C:\cacti\cacti-0.8.6f\scripts>perl C:\cacti\cacti-0.8.6f\scripts\w32_query_cpu.p
l exchange2003.%company%online.com get LoadPercentage 2
CPU0:4 CPU1:0
CACTI-LOG - Company name has been replaced with %company%
08/08/2005 03:15:23 PM - SYSTEM STATS: Time: 18.9665 s, Method: cactid, Processes: 1, Threads: 1, Hosts: 22, Hosts/Process: 22, Data Sources 549, RRDs Processed 290
08/08/2005 03:15:19 PM - CACTID: Poller[0] Time: 14.6330 s, Threads: 1, Hosts: 22
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[31] DS[357] SCRIPT: c:\php\php.exe -q C:\cacti\cacti-0.8.6f/scripts/mysql_stats.php status %company%-lx-srv-001.%company%online.com cactiuser cacti Connections, output: U
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[31] DS[357] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[31] ERROR: Empty result [%company%-lx-srv-001.%company%online.com]: 'c:\php\php.exe -q C:\cacti\cacti-0.8.6f/scripts/mysql_stats.php status %company%-lx-srv-001.%company%online.com cactiuser cacti Connections'
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[352] SCRIPT: perl C:\cacti\cacti-0.8.6f\scripts\w32_query_cpu.pl exchange2003.%company%online.com get LoadPercentage 2, output: U
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[352] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] ERROR: Empty result [exchange2003.%company%online.com]: 'perl C:\cacti\cacti-0.8.6f\scripts\w32_query_cpu.pl exchange2003.%company%online.com get LoadPercentage 2'
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[348] SCRIPT: perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_mailboxstats.pl exchange2003 get SendQueueSize,ReceiveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin _Total, output: U
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[348] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] ERROR: Empty result [exchange2003.%company%online.com]: 'perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_mailboxstats.pl exchange2003 get SendQueueSize,ReceiveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin _Total'
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[350] SCRIPT: perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_ucf.pl exchange2003 _Total, output: U
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[350] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] ERROR: Empty result [exchange2003.%company%online.com]: 'perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_ucf.pl exchange2003 _Total'
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[347] SCRIPT: perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_isstats.pl exchange2003 get ActiveUserCount,UserCount, output: U
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[347] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] ERROR: Empty result [exchange2003.%company%online.com]: 'perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_isstats.pl exchange2003 get ActiveUserCount,UserCount'
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[351] SCRIPT: perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_filtering.pl exchange2003 _Total, output: U
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] DS[351] WARNING: Result from SCRIPT not valid. Partial Result: ...
08/08/2005 03:15:19 PM - CACTID: Poller[0] Host[30] ERROR: Empty result [exchange2003.%company%online.com]: 'perl C:\cacti\cacti-0.8.6f\scripts\w32_exch_query_filtering.pl exchange2003 _Total'
All scripts return a "U" result
Moderators: Developers, Moderators
Have you set the permissions up properly on cmd.exe and cactid.exe?
Does it work if you run it under an admin account?
Does it work if you run it under an admin account?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 2 guests