Perl Script Not Graphing

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

Moderators: Developers, Moderators

Post Reply
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Perl Script Not Graphing

Post by Diggit2001 »

Hello. I have recently begun running Cacti on Windows and I used the latest Windows installer to get everything working. Here's my info from the Tech Support link:

Date Fri, 04 Dec 2015 09:42:17 -0500
Cacti Version 0.8.8g
Cacti OS win32
SNMP Version NET-SNMP version: 5.5
RRDTool Version RRDTool 1.4.x
Hosts 50
Graphs 1013
Data Sources Script/Command: 6
SNMP: 269
SNMP Query: 588
Script - Script Server (PHP): 10
Script Query - Script Server: 216
Total: 1089

Everything is working great. I downloaded a template from the forums here (LIT_W32_OS.pl) for graphing Memory stats on my Windows Servers. If I run it on my Cacti server from a command prompt, all results are returned fine. I see this in my Cacti logs though every time the poller runs:

12/04/2015 10:04:10 AM - SPINE: Poller[0] Host[21] Description[2dc] ERROR: Empty result [2dc.mydomain.com]: 'c:\Strawberry\perl\bin\perl.exe c:\inetpub\wwwroot\cacti\resource\script_queries\Lit_W32_OS.pl 2dc.mydomain.com get MaxProcessMemorySize,TotalVirtualMemorySize,FreeVirtualMemory,TotalVisibleMemorySize,FreePhysicalMemory,SizeStoredInPagingFiles,FreeSpaceInPaging'

I have attached a copy of the graph.

Not sure how to go about fixing this. Any assistance would be appreciated.
Thanks.
-Chris
Attachments
cacti.JPG
cacti.JPG (56.52 KiB) Viewed 2644 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Perl Script Not Graphing

Post by BSOD2600 »

1) do you have perl installed?
2) if you manually run that command cacti is executing, does it return data?
3) using perl to pull WMI data works, but is inefficient and won't scale up very well. Several of those metrics are available via SNMP in the snmp - host partition space data query. a few others are not though :(
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Re: Perl Script Not Graphing

Post by Diggit2001 »

1. Yup, I'm using Strawberry Perl.
2. Yes, running it manually returns data.
3. Hmm. I wanted to use the standard host disk partition query but it wasn't working for memory usage, only disk space so I went looking for a different script and found this one.

Thanks.
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Re: Perl Script Not Graphing

Post by Diggit2001 »

What should be my next course of action to get this functional?

Many thanks.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Perl Script Not Graphing

Post by BSOD2600 »

Validated all Agents are enabled? http://docs.cacti.net/faq#why_doesn_t_w ... e_via_snmp

Depending on the version of Windows, it'll return diff memory metrics via the standard host disk partition query. If you want more granular detail, then yes will have to use another tool. http://www.snmp-informant.com/ is an option, which is free and uses snmp (there are templates in the script forum).
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests