CactiID pre-compiled for download?

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

Moderators: Developers, Moderators

Post Reply
BSOD2600

CactiID pre-compiled for download?

Post by BSOD2600 »

Does anyone have cactid precompiled for download on windows? Same with the needed SNMP files? Its such a hassle to get it compiled with cygwin... TIA
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

try this:

start the cygwin console (you must have downloaded the gcc and make packages while installing cygwin)

go to the directory of cactid
for example:

Code: Select all

cd c:
cd cactid
now type the following commands:

Code: Select all

./configure 
make 
make install
Be sure to have a unix client of mysql too!
BSOD2600

Post by BSOD2600 »

When I try to compile cactid, i get the following:

Code: Select all

checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... yes
configure: error: Cannot find SNMP headers.  Use --with-snmp= to specify non-default path.
When I try to install the mysql header files, i get the following:

Code: Select all

BSOD2600@gamer2k /cygdrive/d/temp
$ rpm -i MySQL-devel-4.0.18-0.i386.rpm
warning: MySQL-devel-4.0.18-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f

error: Failed dependencies:
        /bin/sh is needed by MySQL-devel-4.0.18-0

BSOD2600@gamer2k /cygdrive/d/temp
$ sh
\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ exit
Why can't rpm find sh, when it works when I manually type it in ?
BSOD2600

Post by BSOD2600 »

The documentation for this is worthless!!

I finally got Cactid to complile.

1) Compile and install MySQL with: ./configure --prefix=/usr/local/mysql --without-server
2) Compile and install net-snmp
3) Compile cactid
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

what the f*ck are you doing in the windows forum with rpm packages? :o
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

huh? Whats wrong with them?
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

i thought that rpm packages are for unix systems and not windows?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

They are for *nix. But as this thread is about getting cactid, a *nix tool, compiled under windows with Cygwin, its relevant.

Anyways, after running Cactid for a few days now I can't say I'm any better off. If a few devices are unreachable, cactid still takes longer than 5 minutes to run, which causes gaps in my graphs. Wasn't that the whole point of cactid over cmd.php?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

BSOD*,

I tried getting it working this weekend and had the same problem. I know dieter has figured it out. It appears to be related to the popen for php.exe. The first several threads make it in the queue and then something happens to slow down the execution. I will be wracking my brains on this one for a while I am afraid.

TheWitness
Guest

Post by Guest »

TheWitness wrote:BSOD*,

I tried getting it working this weekend and had the same problem. I know dieter has figured it out. It appears to be related to the popen for php.exe. The first several threads make it in the queue and then something happens to slow down the execution. I will be wracking my brains on this one for a while I am afraid.

TheWitness
You can set the threads to 1 in cactid.conf to and at least get some stability out of cactid until this bug has been corrected.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Threads is already set to 1, and I'm still getting holes.

Its odd, the first ~24 hours cactid was working great with 10 threads. Then I noticed gaps appearing and upon closer inspection, cactid was timing out on two devices (which is fine, because they are not reachable at the moment). This caused cactid to take longer than 5 minutes to poll everything. I played around with the threads... moved it up to 20 which didnt seem to help. After looking around the forum for thread issues with cactid, I moved it down to 1. Thats helped a little, bit the holes are still appearing! ARRGGG
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

BSOD*,

I will be reviewing the thread code tonight to see what I can figure out relative to the slowdown after things are loaded up. I also sent a note to dieter requesting comments.

Larry
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

just saw your message today.

Well, i'm not getting any troubles with cactid. The only known problem is that when you do not set the number of threads to 1 he randomly hangs on sh.exe or something (using win XP and cygwin)

The thing about popen you are talking about has to do with IIS. You must close the session before the popen() command and re-open it afterwards. If you do not enjoy rebooting IIS every 30 minutes :lol:

btw: To be honest. I see no difference in time between cactid (even with processes set to 20) and cmd.php so just leave cactid behind when having troubles with it.

A nice thing to do when having long times (due to many ping graphs), is changing the standard ping.exe of windows to a freeware ping tool called fping where you can set the timeout and time between packets. This really saved me a lot of time!!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Here is my sitation:

I'm polling 2 remote computers via a VPN connection into a Win2K3 server, along with several on the LAN. I am polling with SNMP, WMI, ping, and Netuse (directly accessing files off the computers hdds). So of course when a VPN connection drops from one or both of the remote servers, all of that stuff times out way too long and thus leaves holes in my graphs.

Sure would be nice to have a feature where if the device is unreachable, that cacti skips it. OR even better, if the threading of cactid worked so a device timeing out wouldn't stall the rest of the device polling.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests