CACTID runs no scripts

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

Moderators: Developers, Moderators

spex
Posts: 20
Joined: Thu May 19, 2005 7:04 am

CACTID runs no scripts

Post by spex »

Every time I use cactid my vbs and pl Scripts arn't working:

C:\>d:\cactid\cactid -C=d:\cactid\cactid.conf -f=9 -l=10 -R --verbosity=4 -S
CACTID: Using cactid config file [d:\cactid\cactid.conf]
CACTID: Version 0.8.6i starting
Host[10] PING Result: ICMP: Host is Alive
Host[10] SNMP Result: SNMP not performed due to setting or ping result
Host[10] ERROR: Empty result [sadac98.adac.biz]: 'c:/perl/bin/perl.exe D:/www/cacti/scripts/w32_cpu_wmi.pl SADAC98'
Host[10] DS[3478] WARNING: Result from SCRIPT not valid. Partial Result: ...
Host[10] DS[3478] SCRIPT: c:/perl/bin/perl.exe D:/www/cacti/scripts/w32_cpu_wmi.pl SADAC98, output: U
Host[10] ERROR: Empty result [sadac98.adac.biz]: 'c:/perl/bin/perl.exe D:/www/cacti/scripts/w32_query_ram.pl sadac98.adac.biz'
Host[10] DS[3458] WARNING: Result from SCRIPT not valid. Partial Result: ...
Host[10] DS[3458] SCRIPT: c:/perl/bin/perl.exe D:/www/cacti/scripts/w32_query_ram.pl sadac98.adac.biz, output: U
Host[10] ERROR: Empty result [sadac98.adac.biz]: 'c:/perl/bin/perl.exe D:/www/cacti/scripts/w32_query_system.pl sadac98.adac.biz'
Host[10] DS[3457] WARNING: Result from SCRIPT not valid. Partial Result: ...
Host[10] DS[3457] SCRIPT: c:/perl/bin/perl.exe D:/www/cacti/scripts/w32_query_system.pl sadac98.adac.biz, output: U
Host[10] DS[3424] SNMP: v1: sadac98.adac.biz, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.65539, value: 595914534
Host[10] DS[3424] SNMP: v1: sadac98.adac.biz, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.65539, value: 2108037876
Time: 1.3590 s, Threads: 6, Hosts: 2

If I run the scripts manualy they work.

C:\>c:/perl/bin/perl.exe D:/www/cacti/scripts/w32_query_system.pl sadac98.adac.biz
Threads:483 Processes:40 SystemCallsPersec:33341 ContextSwitchesPersec:2667
C:\>

My environment:
Cacti Version - 0.8.6h
Poller Type - CMD.php
Cactid Version - 0.8.6i beta 3
Server Info - Windows NT 5.2
Web Server - Microsoft-IIS/6.0
PHP - 5.1.6
PHP Extensions - bcmath, calendar, com_dotnet, ctype, date, ftp, hash, iconv, odbc, pcre, Reflection, session, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, mysql, snmp, sockets
MySQL - 5.0.24a-community-nt
RRDTool - 1.2.15
SNMP - Version: 5.3.1
Plugins
  • Thresholds (thold - v0.3.0)
    Host Info (hostinfo - v0.1)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You need to define the path to perl of have perl in your path.

To define the path to perl, you will have to modify any "Data Input Methods" and Data query Resource files that point to perl.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Then, you have to "clear" your poller cache. Or, you can just try 0.8.6i beta (cactid) in the Announcements forum.

TheWitness
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?
spex
Posts: 20
Joined: Thu May 19, 2005 7:04 am

Post by spex »

I already checked these two.
The path is included (as you can see in the log) in the data input method. Also I'm using the actual beta of cactid.
Regards Spex
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure your Cygwin version is up to date aka 1.5.21.

TheWitness
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?
spex
Posts: 20
Joined: Thu May 19, 2005 7:04 am

Post by spex »

TheWitness wrote:Make sure your Cygwin version is up to date aka 1.5.21.

TheWitness
I'v checked that. Version is ok.
The whole installation has been done with the latest windows installer package.

Regards Spex
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

This is likely a user permissions issue with WMI. Please read in my FAQ how to allow specific users to access WMI.
spex
Posts: 20
Joined: Thu May 19, 2005 7:04 am

Post by spex »

BSOD2600 wrote:This is likely a user permissions issue with WMI. Please read in my FAQ how to allow specific users to access WMI.
Running that scripts with poller.cmd has no problems.
Running that scripts with cactid does not work.

So I do not think thats an permission issue with WMI.

Regards Spex
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah ok. Then yes, it does sound like a Cactid issue again ;-).
spex
Posts: 20
Joined: Thu May 19, 2005 7:04 am

Post by spex »

It seems to be a setupproblem with cygwin.
I installed cygwin on d:\ with the complete windows installer package. After reinstalling with cygwin setup.exe to d: all is ok.
Regards
Spex
User avatar
Vladimir Pasashnikov
Posts: 22
Joined: Thu Dec 08, 2005 3:47 am

Post by Vladimir Pasashnikov »

BSOD2600 wrote:Ah ok. Then yes, it does sound like a Cactid issue again ;-).
I have the same problem. But i'm using DLL's provided with cactid.
So at that moment snmp DSs are working, script DSs are not.

Both path to perl and permition to WMI are OK!

CACTID 0.8.6i. OS - Windows 2003 Server Enterprise.
User avatar
Vladimir Pasashnikov
Posts: 22
Joined: Thu Dec 08, 2005 3:47 am

Post by Vladimir Pasashnikov »

Vladimir Pasashnikov wrote:
BSOD2600 wrote:Ah ok. Then yes, it does sound like a Cactid issue again ;-).
I have the same problem. But i'm using DLL's provided with cactid.
So at that moment snmp DSs are working, script DSs are not.

Both path to perl and permition to WMI are OK!

CACTID 0.8.6i. OS - Windows 2003 Server Enterprise.
I've just find why this happend! It's because sh.exe requare cygintl-3.dll. Which is not in cactid package.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Vladimir Pasashnikov wrote:I've just find why this happend! It's because sh.exe requare cygintl-3.dll. Which is not in cactid package.
Hmm, interesting. They must've recently added that dependency to sh. If you install the libintl3 package in Cygwin, that'll add the needed dll.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

BSOD,

It requires another DLL as well. See my other post on this related Vladimir Pasashnikov other post.

Larry
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?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Noted and updated my install guide ;-).
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests