vbscript not running when using cactid

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

Moderators: Developers, Moderators

Post Reply
zeca011
Posts: 8
Joined: Fri Nov 17, 2006 12:36 pm

vbscript not running when using cactid

Post by zeca011 »

Hi all,

I'm using cacti release 0.8.6i (via installer). My system is a Win Server 2003 Standard + IIS 6.

Since I'm planning to monitor +150 devices, I think the best poller in my case is cactid, isn't it?

Well, I'm currently testing with just 8 devices. Two of them are Win 2000 Servers.

Since WMI is already working on all of our Win Servers, I've decided to go through it. I've made some vbscripts to monitor the Win 2000 servers and everything was just fine. But since I've changed the poller to cactid, no data is graphed anymore.

Let me say 2 things. The first is that I had a msvcr71.dll problem during the cacti install. I've just ignored the procedure (a msvcr71.dll copy, I'm not sure...) and the rest of the install worked fine. The other thing is that I've changed the ping.php in such a way that when "PING and SNMP" Host Detection is selected, the SNMP is tested even if ping gets failed. This was necessary since some devices (like the Win servers) do not have SNMP agent installed, and some devices (like our firewalls) do not respond to ping but SNMP is ok. Nothing more than that was modified.



The cacti log when cmd.php is used gives:
12/21/2006 11:15:39 AM - SYSTEM STATS: Time:37.4550 Method:cmd.php Processes:3 Threads:N/A Hosts:8 HostsPerProcess:3 DataSources:70 RRDsProcessed:43

But when cactid is used, I get:
12/21/2006 09:55:17 AM - SYSTEM STATS: Time:16.6075 Method:cactid Processes:3 Threads:1 Hosts:8 HostsPerProcess:3 DataSources:70 RRDsProcessed:23

It seems that some RRDs are gone...

The full log when cactid is used is attached as well as my little ping.php modification.

Any ideas to solve my problem???

Thanks in advance.
Attachments
cactilog.txt
cacti log when cactid is used.
(67.88 KiB) Downloaded 181 times
ping_php_mod.txt
Little ping.php modification.
(472 Bytes) Downloaded 123 times
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

If you want to run CACTID instead of poller.php, and are running on a Windows box, you probably need CYGWIN for this to work...
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
zeca011
Posts: 8
Joined: Fri Nov 17, 2006 12:36 pm

Post by zeca011 »

mcutting wrote:If you want to run CACTID instead of poller.php, and are running on a Windows box, you probably need CYGWIN for this to work...
Thanks for the help, mcutting.

As I've installed cacti from the installer, I think cygwin is already here. But how to work with it???? Any tips???

Thanks.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You really should be reading http://forums.cacti.net/viewtopic.php?t=11747 instead.

Also read in the FAQ regarding WMI scripts. Cacti will use the user account running the cacti scheduled task when running the WMI scripts against remote servers (unless you explicitly specify a different user/pass in the script).
zeca011
Posts: 8
Joined: Fri Nov 17, 2006 12:36 pm

Post by zeca011 »

Thanks for the help BSOD.

Well, I don't think a I was clear. Pardon me. Let me explain: when I use cmd.php poller, everything goes perfectly well. All the graphs are OK. I only have problems when I change to cactid.

Since user/pass for WMI queries are defined within my scripts and I don't have any problem when using cmd.php, I think the problem is not concerned to permissions. Don't you think the same???

I couldn't see in FAQ neither in any post (yes, I've looked for) a solution to my problem.

By the way, I've installed cygwin (all recommended packages) but nothing changed. Do I have to make any new configuration?

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

Post by BSOD2600 »

zeca011 wrote:Well, I don't think a I was clear. Pardon me. Let me explain: when I use cmd.php poller, everything goes perfectly well. All the graphs are OK. I only have problems when I change to cactid.
Ahh, gotcha. Yea, that would be a cactid specific issue which TheWitness will need to address.
zeca011 wrote:By the way, I've installed cygwin (all recommended packages) but nothing changed. Do I have to make any new configuration?
Nope.
zeca011
Posts: 8
Joined: Fri Nov 17, 2006 12:36 pm

Post by zeca011 »

I'm still trying to debug the problem by myself but got nothing yet.

PLEASE, HELP!!!
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you please PM me your poller_item table? Thanks,

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?
zeca011
Posts: 8
Joined: Fri Nov 17, 2006 12:36 pm

Here it is...

Post by zeca011 »

Thanks for the help Witness...

Since I've configured many and many servers on the prevoius cacti install, I've decided to make a fresh install, which I think will be easier to debug.

On this last install, I've got no dll problem and I've made no change to the original cacti code.

Here is the cacti logs when using cmd.php and cactid for just one server. The poller_item table is here too.

Thanks.
Attachments
poller_item_plus_cactilog.txt
(2.99 KiB) Downloaded 145 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest