Search found 25 matches

by Basilio Cat
Thu Nov 10, 2005 7:23 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

Just reviewed the patch. I would like to move all the declarations to the top of poller.c if that's ok. Therefore, I will need one of you to volunteer to recompile SVN. I will give you the NOD. It will likely be on Friday. Larry Yes, moving it in the beginning of the function is most preferred way,...
by Basilio Cat
Thu Nov 10, 2005 5:53 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

anh wrote:just tested the ports-version with patch-gcc.txt, its does not work
su-2.05b# mv patch-gcc.txt /usr/ports/net/cacti/files/
Erm, well, /usr/ports/net/cactid/files/ not /usr/ports/net/cacti/files/
by Basilio Cat
Thu Nov 10, 2005 3:56 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

Here's patch for released version cactid-0.8.6f
For FreeBSD this file can be put in /usr/ports/net/cactid/files
and
#make clean build install
in port directory will work seamlessly
by Basilio Cat
Thu Nov 10, 2005 3:55 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

Here's slightly fixed patch for snapshot version (just one cosmetic change)
by Basilio Cat
Thu Nov 10, 2005 3:23 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

anh wrote:its the same :(
Ok, here's my version attached
by Basilio Cat
Thu Nov 10, 2005 2:59 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

anh wrote:Still getting an error
Ok, try this
1. Unpack latest released version of cactid
2. overwrite files from attached in this thread cactid.zip
3. remove config.h in main directory
4. overwrite files from attached old-gcc-fix.tar.gz
5. Run configure and make
by Basilio Cat
Thu Nov 10, 2005 1:47 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

after applying the patch i get this error ===> Building for cactid-0.8.6.f_1 source='snmp.c' object='snmp.o' libtool=no depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo' depmode=gcc /usr/local/bin/bash ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/lo...
by Basilio Cat
Wed Nov 09, 2005 9:27 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

Using both of these patches I was able to get cactid to compile under RH 7.3, and gcc 2.96. I had to apply the changes in patch.txt by hand for some reason as feeding it to patch (patch -p1 < patch.txt) failed. Thank you both very much. Actually config.h in attached file cactid.zip should be remove...
by Basilio Cat
Wed Nov 09, 2005 8:28 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

Here's patch
There's no significant changes, I've shifted few lines with declarations, and added few { } to satisfy gcc 2.95

I've compiled it successfully on FreeBSD 4.11
by Basilio Cat
Wed Nov 09, 2005 6:26 am
Forum: Help: Linux/Unix Specific
Topic: snmp.c compile time error with cactid-0.8.6f-1
Replies: 28
Views: 9400

I suggest it's not a good idea to produce code, thich can be compiled only on gcc 3.x I've got FreeBSD 4.11, and many people use it on production servers, and it has gcc 2.95 bundled. There's no real advantages from those incompartibilities (variables are declared in the middle of code, not in the b...
by Basilio Cat
Tue Nov 30, 2004 10:00 am
Forum: Help: Linux/Unix Specific
Topic: Old MRTG log files to Cacti
Replies: 2
Views: 2077

I've been looked forward to do that. You can dump rra files as XML, insert missing data from logs, and import XML back to rra BUT. I've for about 1300 interfaces being graphed in MRTG, and there's no way to link log files with rra's without writing complex script - it would be parsing mrtg configs, ...
by Basilio Cat
Fri Nov 19, 2004 6:45 am
Forum: Help: General
Topic: 32- bit or 64-bit counter ?
Replies: 13
Views: 8861

Well, i'd say IF interface has speed GREATER than 100Mbit, you MUST use 64-bit counter. If speed is exactly 100Mbit, you may use it or not - there's no big difference (adittionally SNMPv1 has only 32-bit support, so using v2c and PHP poller causes heavy load - v2c calls are implemented via external ...
by Basilio Cat
Thu Nov 18, 2004 10:15 am
Forum: Help: General
Topic: Why is this graph dipping?
Replies: 6
Views: 1713

That's definitely caused by 32-bit counters. They can wrap twice in 5-minutes interval if bps exceeds ~110 mbit.
by Basilio Cat
Tue Oct 19, 2004 7:40 am
Forum: Feature Requests
Topic: control for "downed host detection"
Replies: 8
Views: 6862

Well, there's should be more debugging, I suppose, but that's what i've studied from the source differences: 1. Socket timeouts PHP poller sets seconds (erm? it's stored in milliseconds i suppose): socket_set_option($this->socket, SOL_SOCKET, // socket level SO_RCVTIMEO, // timeout option array( "se...
by Basilio Cat
Tue Oct 19, 2004 7:18 am
Forum: Feature Requests
Topic: control for "downed host detection"
Replies: 8
Views: 6862

Uhm, well, problem is I cannot switch back to CMD mode - this will definitely result in gaps on graphs (i'm graphing too many devices, poller in PHP mode takes too long and consumes too much CPU)
I'll try to cut a piece of PHP ping code and cactid one, and compare them in some way.