Empty Script results in Cacti

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

Moderators: Developers, Moderators

Post Reply
dforsdike
Posts: 5
Joined: Tue Nov 16, 2004 3:14 pm

Empty Script results in Cacti

Post by dforsdike »

Hi

When poller runs any perl script within Cacti the log file returns empty results ( output: U ), but when i run the same command manually results are returned, so the script and wmi is valid, and obviously the graphs are not updating because of this.

Has anybody any ideas why this is ?

Configuration
Win 2003
Cacti 8.6b + pre 8.6c patch files
Mysql 4.0.21
IIS 6
PHP 5.0.2

Extract Of Cacti Logfile and Manually run results
11/17/2004 11:19:07 AM - CACTID: Poller[0] Host[7] SCRIPT: perl C:/Inetpub/wwwroot/cacti/cacti-0.8.6b/scripts/w32_exch_query_mailboxstats.pl 192.168.0.28 get SendQueueSize,ReceiveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin _Total, output: U
11/17/2004 11:19:07 AM - CACTID: Poller[0] Host[7] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/17/2004 11:19:07 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (43,'traffic_in','2004-11-17 11:19:01','0')
11/17/2004 11:19:07 AM - CACTID: Poller[0] Host[3] SNMP: v1: 192.168.5.11, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, value: 0
11/17/2004 11:19:07 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (48,'traffic_out','2004-11-17 11:19:01','4290276072')
11/17/2004 11:19:07 AM - CACTID: Poller[0] Host[7] ERROR: Empty result [192.168.0.28]: 'perl C:/Inetpub/wwwroot/cacti/cacti-0.8.6b/scripts/w32_exch_query_mailboxstats.pl 192.168.0.28 get SendQueueSize,ReceiveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin _Total'
11/17/2004 11:19:06 AM - CACTID: Poller[0] Host[7] SCRIPT: perl C:/Inetpub/wwwroot/cacti/cacti-0.8.6b/scripts/w32_exch_query_isstats.pl 192.168.0.28 get ActiveUserCount,UserCount, output: U
11/17/2004 11:19:06 AM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2004-11-17 09:29:00',status_rec_date='0000-00-00 00:00:00',status_last_error='Host did not respond to SNMP',min_time='3.000020',max_time='635.999920',cur_time='4.499910',avg_time='22.713044',total_polls='202',failed_polls='1',availability='99.0000' where id='2'
11/17/2004 11:19:06 AM - CACTID: Poller[0] Host[7] WARNING: Result from SCRIPT not valid. Partial Result: U...
11/17/2004 11:19:06 AM - CACTID: Poller[0] Host[2] SNMP Result: Host responded to SNMP
11/17/2004 11:19:06 AM - CACTID: Poller[0] Host[7] ERROR: Empty result [192.168.0.28]: 'perl C:/Inetpub/wwwroot/cacti/cacti-0.8.6b/scripts/w32_exch_query_isstats.pl 192.168.0.28 get ActiveUserCount,UserCount'


C:\Documents and Settings\Administrator>perl C:/Inetpub/wwwroot/cacti/cacti-0.8.
6b/scripts/w32_exch_query_mailboxstats.pl 192.168.0.28 get SendQueueSize,Receive
QueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin _To
tal
SendQueueSize:0 ReceiveQueueSize:0 MessagesSentPermin:0 MessagesSubmittedPermin:
1 MessagesDeliveredPermin:0

C:\Documents and Settings\Administrator>perl C:/Inetpub/wwwroot/cacti/cacti-0.8.
6b/scripts/w32_exch_query_isstats.pl 192.168.0.28 get ActiveUserCount,UserCount
ActiveUserCount:13 UserCount:18
dforsdike
Posts: 5
Joined: Tue Nov 16, 2004 3:14 pm

Post by dforsdike »

i have continued to look into the issue, and when i change the poller to cmd.php, rather than cactid any of the perl scripts that are run within cacti get valid data back and update the graphs succesfully.

But i get the displaying of graphs hanging issue that i mentioned in the post that i posted yesterday http://forums.cacti.net/about5492.html.

Any ideas?
enigma
Posts: 12
Joined: Wed Nov 24, 2004 7:08 am
Location: UK
Contact:

Post by enigma »

I am having this exact same problem with cacti on a windows box. Does anyone have any ideas. The scripts run fine from the windows CLI. Just cacti reports the Partial result / Empty error.
verduzcob
Posts: 2
Joined: Tue Feb 22, 2005 8:25 pm

Post by verduzcob »

I'm having the same problem. Was a solution ever found?
User avatar
thisted
Cacti User
Posts: 69
Joined: Fri Apr 15, 2005 10:11 am
Location: Bay City, MI
Contact:

Post by thisted »

I was having the same problem until I upgraded to the newest version of cactid.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests