Cactid 0.8.6i Beta3 - Last Beta

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

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

Cactid 0.8.6i Beta3 - Last Beta

Post by TheWitness »

All,

Please find the attached Cactid beta's. The Windows binary is build using the latest cygwin. If you have not updated, you should build from source.

I have added a check for kstat and had raX perform the packaging of the *nix gzip'd tar file to make your lives easier.

Please provide feedback.

Regards,

TheWitness
Attachments
cacti-cactid-0.8.6i-beta3.tar.gz
*nix Source
(194.17 KiB) Downloaded 653 times
cactid-0.8.6i-beta3-win32-bin.zip
Windows Cygwin 1.5.21 Binary
(521.73 KiB) Downloaded 577 times
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
kwabbernoot
Cacti User
Posts: 99
Joined: Mon Oct 13, 2003 4:11 am
Location: Zottegem, Belgium

compilation on *nix

Post by kwabbernoot »

Hi,

Small remark.
Before runnnig "make" or "make all" perfom one of the following steps:

Code: Select all

cp cactid.conf cactid.conf.dist
And modify this one with your cactid.conf settings
At install it will be placed in the /etc directory and you will have to rename it to "cactid.conf"

or

Code: Select all

Open the files "Makefile", "Makefile.am" and "Makefile.in"
Replace the line 
    config_DATA = cactid.conf.dist
by
    config_DATA = cactid.conf
If you do not do it you will get the error
"make: *** No rule to make target `cactid.conf.dist', needed by `all-am'. Stop."

It is no show stopper however, cactid compiled nicely :D
Regards,
Kwabbernoot

OS : [b]Slackware 10.2.0[/b]
Cacti : [b]0.8.6j[/b]
Cactid : [b]0.8.6j[/b]
Apache : [b]1.3.34[/b]
PHP : [b]5.1.4[/b]
MySQL : [b]4.1.21[/b]
RRDTool : [b]1.2.12[/b]
Net-SNMP : [b]5.3.0[/b]
User avatar
NetGeek
Posts: 15
Joined: Mon Nov 14, 2005 2:00 pm

Post by NetGeek »

Ok,
Downloaded latests beta and having issue with build. I have run ./configure and it ran. Copied cactid.conf as per post above. I get the following error with make:

....SNIP
snmp.c: In function `snmp_cactid_init':
snmp.c:72: `PACKAGE_VERSION' undeclared (first use in this function)
snmp.c:72: (Each undeclared identifier is reported only once
snmp.c:72: for each function it appears in.)
make: *** [snmp.o] Error 1
nms-lab3(root)#

Sooo I tried providing the path to my NetSnmp with
./configure -with-snmp=/usr/local/include/net-snmp/

With this I get a configure error:

....SNIP
checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... yes
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_realloc in -lcrypto... no
configure: error: libcrypto not found!

Hopefully this will not be too hard to resolve as I am looking forward to checking this beta out!

Thanks!
NetGeek
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

I'm having the same problem when trying to compile it.

Code: Select all

snmp.c: In function `snmp_cactid_init':
snmp.c:72: error: `PACKAGE_VERSION' undeclared (first use in this function)
snmp.c:72: error: (Each undeclared identifier is reported only once
snmp.c:72: error: for each function it appears in.)
make: *** [snmp.o] Error 1
In snmp.c you undefine PACKAGE_VERSION among other things if you are using net-snmp, but later you reference it in a block for net-snmp?

~Jonathan
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

With regard to Package Version, that variable is "redefined" in "net-snmp-config.h". Which is included below the undef statement. Please confirm for your installation and post your results. If it is not present, please specify your Net-snmp version.

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?
User avatar
NetGeek
Posts: 15
Joined: Mon Nov 14, 2005 2:00 pm

Post by NetGeek »

TheWitness wrote:With regard to Package Version, that variable is "redefined" in "net-snmp-config.h". Which is included below the undef statement. Please confirm for your installation and post your results. If it is not present, please specify your Net-snmp version.

TheWitness
As Requested, Here is what I got:

nms-lab3(root)# find / -name net-snmp-config.h -print
/usr/share/src/net-snmp-5.0.7/include/net-snmp/net-snmp-config.h
/usr/share/src/net-snmp-5.0.7/win32/net-snmp/net-snmp-config.h
/usr/local/include/net-snmp/net-snmp-config.h
nms-lab3(root)# egrep 'PACKAGE_VERSION' /usr/local/include/net-snmp/net-snmp-config.h
nms-lab3(root)#
nms-lab3(root)# egrep 'VERSION' /usr/local/include/net-snmp/net-snmp-config.h
#define DEFAULT_SNMP_VERSION 1
#define VERSIONMIBNUM 100
EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT
nms-lab3(root)# egrep 'PACKAGE' /usr/local/include/net-snmp/net-snmp-config.h
nms-lab3(root)# cd /usr/local/include/net-snmp
nms-lab3(root)# ls
agent library net-snmp-config.h pdu_api.h system varbind_api.h
config_api.h machine net-snmp-includes.h session_api.h types.h version.h
definitions.h mib_api.h output_api.h snmpv3_api.h utilities.h
nms-lab3(root)# egrep 'PACKAGE' *
nms-lab3(root)# egrep 'VERSION' *
net-snmp-config.h:#define DEFAULT_SNMP_VERSION 1
net-snmp-config.h:#define VERSIONMIBNUM 100
net-snmp-config.h: EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT
version.h:#ifndef NET_SNMP_VERSION_H
version.h:#define NET_SNMP_VERSION_H
version.h:#endif /* NET_SNMP_VERSION_H */
nms-lab3(root)# snmpwalk -V
NET-SNMP version: 5.0.7
nms-lab3(root)#

Thanks in Advance!
NetGeek
Last edited by NetGeek on Thu Sep 21, 2006 5:42 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's no good. Can you comment out the undef's and see if it makes.

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?
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

Figures, that's what I get when I flip a coin to decide whether or not I should have posted that. O well... My /usr/local/include/net-snmp/net-snmp-config.h does not have that variable defined anywhere in it.

NET-SNMP version: 5.0.7


I'm gonna work on upgrading net-snmp to a newer version
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

Ok, I upgraded to Net-SNMP 5.3.1 and it compiled. Testing now...
User avatar
NetGeek
Posts: 15
Joined: Mon Nov 14, 2005 2:00 pm

Post by NetGeek »

TheWitness wrote:That's no good. Can you comment out the undef's and see if it makes.

TheWitness
I commented out the following line
/* #undef PACKAGE_VERSION */
in snmp.c and now it compiled. However I ran into this error down the line:

poller.c: In function `poll_host':
poller.c:715: parse error before `int'
poller.c:737: `new_buffer' undeclared (first use in this function)
poller.c:737: (Each undeclared identifier is reported only once
poller.c:737: for each function it appears in.)
make: *** [poller.o] Error 1

NetGeek
Last edited by NetGeek on Thu Sep 21, 2006 5:42 pm, edited 1 time in total.
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

I've had a chance to build, altough not install or test, the new cactid, and it looks like all of my issues have been addressed on Sol 8 w/ Net-SNMP 5.2.1. Thanks for all of your (and Ian's now) hard work. I will probably not get a chance to test the actual program until this weekend.
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

On this beta3 I can once again get through configure via:

dos2unix *
dos2unix config/*
aclocal19
autoheader259
automake19
autoconf259
LD_LIBRARY_PATH=/usr/local/lib:/opt/net-snmp/lib/:/opt/mysql/lib/mysql/
export LD_LIBRARY_PATH
./configure --prefix=/opt/apache/htdocs/cacti --with-mysql=/opt/mysql --with-snmp=/opt/net-snmp

I get through configure without issues! That is further than I could get with beta 2.

But now make fails!

[root@nms /usr/src/cacti-cactid-0.8.6i-beta3]# make
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/opt/net-snmp/include/net-snmp -I/opt/net-snmp/include/net-snmp -I/opt/mysql/include/mysql -g -O2 -MT sql.o -MD -MP -MF ".deps/sql.Tpo" -c -o sql.o sql.c; then mv -f ".deps/sql.Tpo" ".deps/sql.Po"; else rm -f ".deps/sql.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/opt/net-snmp/include/net-snmp -I/opt/net-snmp/include/net-snmp -I/opt/mysql/include/mysql -g -O2 -MT cactid.o -MD -MP -MF ".deps/cactid.Tpo" -c -o cactid.o cactid.c; then mv -f ".deps/cactid.Tpo" ".deps/cactid.Po"; else rm -f ".deps/cactid.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/opt/net-snmp/include/net-snmp -I/opt/net-snmp/include/net-snmp -I/opt/mysql/include/mysql -g -O2 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.c; then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/opt/net-snmp/include/net-snmp -I/opt/net-snmp/include/net-snmp -I/opt/mysql/include/mysql -g -O2 -MT snmp.o -MD -MP -MF ".deps/snmp.Tpo" -c -o snmp.o snmp.c; then mv -f ".deps/snmp.Tpo" ".deps/snmp.Po"; else rm -f ".deps/snmp.Tpo"; exit 1; fi
snmp.c:42:39: net-snmp/net-snmp-config.h: No such file or directory
snmp.c:43:33: net-snmp/utilities.h: No such file or directory
snmp.c:44:41: net-snmp/net-snmp-includes.h: No such file or directory
snmp.c:45:34: net-snmp/config_api.h: No such file or directory
snmp.c:46:31: net-snmp/mib_api.h: No such file or directory
snmp.c: In function `snmp_cactid_init':
snmp.c:72: error: `PACKAGE_VERSION' undeclared (first use in this function)
snmp.c:72: error: (Each undeclared identifier is reported only once
snmp.c:72: error: for each function it appears in.)
snmp.c:75: warning: passing arg 2 of `strcasecmp' makes pointer from integer without a cast
snmp.c:83: error: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function)
snmp.c:95: error: `NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function)
snmp.c:96: error: `NETSNMP_DS_LIB_PRINT_BARE_VALUE' undeclared (first use in this function)
snmp.c:97: error: `NETSNMP_DS_LIB_NUMERIC_TIMETICKS' undeclared (first use in this function)
snmp.c: In function `snmp_host_init':
snmp.c:129: error: storage size of 'session' isn't known
snmp.c:138: error: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function)
snmp.c:150: error: `NETSNMP_DS_LIB_QUICK_PRINT' undeclared (first use in this function)
snmp.c:151: error: `NETSNMP_DS_LIB_PRINT_BARE_VALUE' undeclared (first use in this function)
snmp.c:152: error: `NETSNMP_DS_LIB_NUMERIC_TIMETICKS' undeclared (first use in this function)
snmp.c:161: error: `SNMP_VERSION_2c' undeclared (first use in this function)
snmp.c:163: error: `SNMP_VERSION_1' undeclared (first use in this function)
snmp.c:165: error: `SNMP_VERSION_3' undeclared (first use in this function)
snmp.c:185: error: `USM_AUTH_KU_LEN' undeclared (first use in this function)
snmp.c:188: error: `usmHMACMD5AuthProtocol' undeclared (first use in this function)
snmp.c:188: error: `oid' undeclared (first use in this function)
snmp.c:192: error: `usmNoPrivProtocol' undeclared (first use in this function)
snmp.c:194: error: `USM_PRIV_KU_LEN' undeclared (first use in this function)
snmp.c:197: error: `SNMP_SEC_LEVEL_AUTHNOPRIV' undeclared (first use in this function)
snmp.c:205: error: `SNMPERR_SUCCESS' undeclared (first use in this function)
snmp.c:212: warning: assignment makes pointer from integer without a cast
snmp.c: In function `snmp_get':
snmp.c:249: error: syntax error before "anOID"
snmp.c:250: error: `MAX_OID_LEN' undeclared (first use in this function)
snmp.c:263: error: `SNMP_MSG_GET' undeclared (first use in this function)
snmp.c:263: warning: assignment makes pointer from integer without a cast
snmp.c:265: error: `anOID' undeclared (first use in this function)
snmp.c:277: error: `STAT_SUCCESS' undeclared (first use in this function)
snmp.c:281: error: `SNMPERR_UNKNOWN_ENG_ID' undeclared (first use in this function)
snmp.c:283: error: dereferencing pointer to incomplete type
snmp.c:283: error: `SNMP_ERR_NOERROR' undeclared (first use in this function)
snmp.c:284: error: dereferencing pointer to incomplete type
snmp.c: At top level:
snmp.c:321: error: syntax error before '*' token
snmp.c: In function `snmp_snprint_value':
snmp.c:325: error: `buf_len' undeclared (first use in this function)
snmp.c:327: error: `objid' undeclared (first use in this function)
snmp.c:327: error: `objidlen' undeclared (first use in this function)
snmp.c:327: error: `variable' undeclared (first use in this function)
snmp.c:328: error: `obuf' undeclared (first use in this function)
snmp.c: In function `snmp_get_multi':
snmp.c:357: error: syntax error before "oid"
snmp.c:363: error: `SNMP_MSG_GET' undeclared (first use in this function)
snmp.c:363: warning: assignment makes pointer from integer without a cast
snmp.c:365: error: `MAX_OID_LEN' undeclared (first use in this function)
snmp.c:367: error: structure has no member named `name'
snmp.c:373: error: structure has no member named `name'
snmp.c:386: error: `STAT_SUCCESS' undeclared (first use in this function)
snmp.c:389: error: `SNMPERR_UNKNOWN_ENG_ID' undeclared (first use in this function)
snmp.c:391: error: dereferencing pointer to incomplete type
snmp.c:391: error: `SNMP_ERR_NOERROR' undeclared (first use in this function)
snmp.c:392: error: dereferencing pointer to incomplete type
snmp.c:396: error: dereferencing pointer to incomplete type
snmp.c:396: error: dereferencing pointer to incomplete type
snmp.c:400: error: dereferencing pointer to incomplete type
snmp.c:404: error: dereferencing pointer to incomplete type
snmp.c:410: error: dereferencing pointer to incomplete type
snmp.c:418: error: dereferencing pointer to incomplete type
snmp.c:419: error: dereferencing pointer to incomplete type
snmp.c:420: error: dereferencing pointer to incomplete type
snmp.c:423: warning: assignment makes pointer from integer without a cast
*** Error code 1

Stop in /usr/src/cacti-cactid-0.8.6i-beta3.

I am starting to worry a little, if this is the last beta.
I have been able to compile and use cactid up to this beta series via these steps:
http://www.nmsworld.com/FreeBSD61/Cacti.htm

Up until this beta series, I never had to do these steps before either:
aclocal19
autoheader259
automake19
autoconf259

Normally I would just do this last part:
LD_LIBRARY_PATH=/usr/local/lib:/opt/net-snmp/lib/:/opt/mysql/lib/mysql/
export LD_LIBRARY_PATH
./configure --prefix=/opt/apache/htdocs/cacti --with-mysql=/opt/mysql --with-snmp=/opt/net-snmp

Any idea why I can't compile?
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here is the reason:

snmp.c:42:39: net-snmp/net-snmp-config.h: No such file or directory
snmp.c:43:33: net-snmp/utilities.h: No such file or directory
snmp.c:44:41: net-snmp/net-snmp-includes.h: No such file or directory
snmp.c:45:34: net-snmp/config_api.h: No such file or directory
snmp.c:46:31: net-snmp/mib_api.h: No such file or directory

Try this configure.ac. This time don't include with --with** options, just use your prefix.

TheWitness
Attachments
configure.zip
Don't forget dos2unix and autoconf...
(2.37 KiB) Downloaded 642 times
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?
cigamit
Developer
Posts: 3363
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Compiles and runs perfectly on my CentOS test box. Will do some more testing on my other test machines tomorrow.
User avatar
NetGeek
Posts: 15
Joined: Mon Nov 14, 2005 2:00 pm

Post by NetGeek »

I upgraded NetSNMP to ver 5.3.1 and I no longer need to comment out the PACKAGE_VERSION in snmp.c. However, I am still failing make at the following point:

....SNIP....
poller.c: In function `poll_host':
poller.c:715: parse error before `int'
poller.c:737: `new_buffer' undeclared (first use in this function)
poller.c:737: (Each undeclared identifier is reported only once
poller.c:737: for each function it appears in.)
make: *** [poller.o] Error 1

Any thoughts?
Thanks!
NetGeek
Last edited by NetGeek on Thu Sep 21, 2006 5:43 pm, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest