Windows Users Having "cactid" Issues

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

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Windows Users Having "cactid" Issues

Post by TheWitness »

All,

For users having difficulties with the current version of Cactid, I am providing a "preJ" version. It is functional and only works with version 1.5.24-2 of the cygwin1.dll. You also need to install crypto-0.9.8 module when you install Cygwin.

TheWitness
Attachments
cactid-086preJ-cygwin-1.5.24-2.zip
(514.16 KiB) Downloaded 2641 times
Last edited by TheWitness on Wed Sep 19, 2007 6:40 am, edited 1 time in total.
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?
TheHack
Posts: 28
Joined: Fri Apr 28, 2006 4:02 am

cactid issues on Windows!

Post by TheHack »

I have struggled for over 6 month now getting cactid.exe working on Windows IIS.
Now I have found a workaround:
1st: installed the following DLL's from CygWin in the cactid directory:
cygart_lgpl_2-2.dll
cygcrypto-0.9.8.dll
cygfreetype-6.dll
cygiconv-2.dll
cygintl-3.dll
cygintl-8.dll
cygncurses-8.dll
cygpng12.dll
cygreadline6.dll
cygwin1.dll
cygz.dll
sh.exe

2nd: Make sure you replace localhost in the cactid.conf with 127.0.0.1

3rd: install a \bin directory in the root for the drive with in order to make cacti scripts working:
cygart_lgpl_2-2.dll
cygcrypto-0.9.8.dll
cygfreetype-6.dll
cygiconv-2.dll
cygintl-3.dll
cygintl-8.dll
cygncurses-8.dll
cygpng12.dll
cygreadline6.dll
cygwin1.dll
cygz.dll
sh.exe

It is working stable since a couple of days. There is one thing which I have seen: CACTID require it's own "environment" not due to CACTID but due to CygWin. There might be some registry entries pointing to different directories but I have removed ALL cygwin references (and uninstalled it ;-).
My current config:
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - Cactid v0.8.6i
Server Info - Windows NT 5.0
Web Server - Microsoft-IIS/5.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, mbstring, gd, ldap, mysql, snmp, sockets
MySQL - 5.0.37-community-nt
RRDTool - 1.2.15
SNMP - 5.4
Plugins
  • Create Aggregate Graphs (aggregate - v0.62)
    PHP Network Managing (manage - v0.4)
    Thresholds (thold - v0.3.2)
    Network Tools (tools - v0.2)
    Update Checker (update - v0.3)
    Network Discovery (discovery - v0.7)
    Simple Links page (links - v0.3)
    Poller Performance Report (pollperf - v0.1)
    Host Info (hostinfo - v0.1)
    rrdclean (RRD Cleaner - v1.2 (Hack Gilles Boulon))
    ipsubnet - v0.4b
TheHack
Posts: 28
Joined: Fri Apr 28, 2006 4:02 am

Amendments to CACTID

Post by TheHack »

Please do not forget to set the time zone correctly in PHP.INI (only if you run PHP >5.0). Otherwise the graphs will show differences from the server time zone.
I guess default is BST not GMT/UTC;-)

I still have some dead mySQL users which I delete by a PHP script every day as well as "hanging" cactid processes.

Still works...
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

It is my understanding that you should have 1, and only 1 copy of the cygwin1.dll on your system. Out of curiousity, what kind of problems were you having with cactid? I am having a problem where i get MAJOR spikes in my graph when i run it.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
TheHack
Posts: 28
Joined: Fri Apr 28, 2006 4:02 am

cactid issues on Windows!

Post by TheHack »

Yes, you are correct (at least you have to ensure you use the same version for all CygWin based application).
Were do you put the copy of dll's (in the SYSTEM32 directory)?

My problem was that CACTD was not running at all. It was freezing and I only could close the DOS window and sometimes I had to reload the server.
I do not have spikes in my graphs and may you need to compare the results of the SNMP queries between CACTID and CMD.PHP using the "data query" plugin. I have implemented cacti twice on a single system on different ports, one with CACTID and the 2nd with cmd.php. Both showing same values. Also you may also check CDEF and Presets to ensure functionality.
TheHack
Posts: 28
Joined: Fri Apr 28, 2006 4:02 am

cactid issues on Windows!

Post by TheHack »

I have seen that you use PHP Version 5.20. I had issues with it and according the threads in the forum, a downgrade to 5.16 fixed the problems.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

TheHack,

Have you tried PHP 5.2.2 yet? In any event, if you are running Cactid you should only need a few DLL's. The list from above is too many. Also, you should not need to have them all over the place, but only in the cygwin\bin directory.

Maybe the user did not have cygwin\bin in their PATH. I have been busy on other things and cactid works fine for me, so I have not been making any changes lately.

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?
TheHack
Posts: 28
Joined: Fri Apr 28, 2006 4:02 am

cactid issues on Windows!

Post by TheHack »

I have removed ALL cywin DLL files and just kept one copy in \cywin\bin. Also I have added the directory to the path (global).

The result is that any external script stopped working. All SNMP queries are working.

I reinstalled the sh.exe in the \bin directory and the perl scripts are working again. Don't know why but seems to be required.

Regarding PHP 5.22: I will try and post results!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, it's a waffle thing. Sh.exe is required. There was a reason for re-implementing it. It's a long story.

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?
Cacti Jack
Posts: 36
Joined: Wed Mar 21, 2007 11:14 am

Post by Cacti Jack »

anyone seen this error before? it causes cactid to crash/freeze

1401784 [unknown (0x1160)] cactid 5688 sig_send: wait for sig_complete event failed, signal -34, rc 258, Win32 error 0
|Server: Cacti 0.8.7 |Win 2003 MySQL 5.0.37| PHP 5.2.2 | RRDtool 1.2.19 | Spine 0.8.7a|
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

Cacti Jack, i've had the same problem(on 2 windows cacti servers), but with this cactid the problems disappeared : http://forums.cacti.net/viewtopic.php?p=105374#105374
Last edited by YoMarK on Wed Sep 19, 2007 8:40 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

For those monitoring this post:

http://forums.cacti.net/viewtopic.php?t=23059

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest