OpenBSD 3.7+CactiD hangs when running in crontab

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

brunom
Posts: 12
Joined: Tue Apr 05, 2005 7:53 pm
Location: Sydney, Australia
Contact:

Success story ... don't we love these? :)

Post by brunom »

I've just upgraded "cacti" (not cactid) to 0.8.6e and that seems to have solved the issues ... I will report more when I have been running for a day or two ... At the moment at least it's inserting information into the DB which didn't happen before.

/B
TheWitness wrote:Please try the release code. There are subtile changes with the handling of MySQL in the final release that were not there in rc23. Your code seems to be hanging around the MySQL calls.

TheWitness
Trupaslu
Posts: 9
Joined: Sat Jun 18, 2005 1:11 pm

Post by Trupaslu »

First of all thanks for the great support raX, TheWitness. You guys doing are really good job..:)

Unfortanly my OpenBSD 3.7 box still want to compile:( raX i tried your code

Code: Select all

checking build system type... i386-unknown-openbsd3.7
checking host system type... i386-unknown-openbsd3.7
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) nawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking whether to enable -Wall... no
checking for kstat_lookup in -lkstat... no
checking for gethostbyname in -lnsl... no
checking for socket in -lsocket... no
checking for floor in -lm... yes
checking for pthread_exit in -lpthread... yes
checking for deflate in -lz... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for unsigned long long... yes
checking for long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strerror... yes
checking for strtoll... yes
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_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/config.h
config.status: config/config.h is unchanged
config.status: executing depfiles commands
Seems oke.. till i run make:

Code: Select all

source='sql.c' object='sql.o' libtool=no  depfile='.deps/sql.Po' tmpdepfile='.deps/sql.TPo'  depmode=gcc3 /bin/sh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'sql.c' || echo './'`sql.c
source='cactid.c' object='cactid.o' libtool=no  depfile='.deps/cactid.Po' tmpdepfile='.deps/cactid.TPo'  depmode=gcc3 /bin/sh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'cactid.c' || echo './'`cactid.c
source='util.c' object='util.o' libtool=no  depfile='.deps/util.Po' tmpdepfile='.deps/util.TPo'  depmode=gcc3 /bin/sh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'util.c' || echo './'`util.c
source='snmp.c' object='snmp.o' libtool=no  depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo'  depmode=gcc3 /bin/sh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'snmp.c' || echo './'`snmp.c
source='locks.c' object='locks.o' libtool=no  depfile='.deps/locks.Po' tmpdepfile='.deps/locks.TPo'  depmode=gcc3 /bin/sh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'locks.c' || echo './'`locks.c
source='poller.c' object='poller.o' libtool=no  depfile='.deps/poller.Po' tmpdepfile='.deps/poller.TPo'  depmode=gcc3 /bin/sh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'poller.c' || echo './'`poller.c
source='php.c' object='php.o' libtool=no  depfile='.deps/php.Po' tmpdepfile='.deps/php.TPo'  depmode=gcc3 /bin/sh ./config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I./config      -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'php.c' || echo './'`php.c
php.c: In function `php_init':
php.c:152: error: storage size of `ResourceLimits' isn't known
php.c:153: error: storage size of `Usage' isn't known
php.c:158: error: `RLIMIT_STACK' undeclared (first use in this function)
php.c:158: error: (Each undeclared identifier is reported only once
php.c:158: error: for each function it appears in.)
php.c:165: error: `RLIMIT_AS' undeclared (first use in this function)
*** Error code 1

Stop in /data4/www/cacti-cactid-0.8.6e.
Maybe you guys got a idea.

Ohyeah i got another question (too lazy to open a new topic:))

I want to run cactid and the frontend+MySQL database seperated from eachother. Is this possible?

Thanks in advance!

greet,

Sam

P.s: Thanks for your help brunom;)
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Edit the php.c file and add the following line somewhere near the top:

#include <sys/resource.h>

Then rerun the command sequence. Let me know if it makes correctly.

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?
Trupaslu
Posts: 9
Joined: Sat Jun 18, 2005 1:11 pm

Post by Trupaslu »

source='sql.c' object='sql.o' libtool=no depfile='.deps/sql.Po' tmpdepfile='.deps/sql.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'sql.c' || echo './'`sql.c
source='cactid.c' object='cactid.o' libtool=no depfile='.deps/cactid.Po' tmpdepfile='.deps/cactid.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'cactid.c' || echo './'`cactid.c
source='util.c' object='util.o' libtool=no depfile='.deps/util.Po' tmpdepfile='.deps/util.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'util.c' || echo './'`util.c
source='snmp.c' object='snmp.o' libtool=no depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'snmp.c' || echo './'`snmp.c
source='locks.c' object='locks.o' libtool=no depfile='.deps/locks.Po' tmpdepfile='.deps/locks.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'locks.c' || echo './'`locks.c
source='poller.c' object='poller.o' libtool=no depfile='.deps/poller.Po' tmpdepfile='.deps/poller.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'poller.c' || echo './'`poller.c
source='nft_popen.c' object='nft_popen.o' libtool=no depfile='.deps/nft_popen.Po' tmpdepfile='.deps/nft_popen.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'nft_popen.c' || echo './'`nft_popen.c
source='php.c' object='php.o' libtool=no depfile='.deps/php.Po' tmpdepfile='.deps/php.TPo' depmode=gcc3 /bin/sh ./config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -c `test -f 'php.c' || echo './'`php.c
php.c: In function `php_init':
php.c:166: error: `RLIMIT_AS' undeclared (first use in this function)
php.c:166: error: (Each undeclared identifier is reported only once
php.c:166: error: for each function it appears in.)
*** Error code 1

Stop in /data4/www/cacti-cactid-0.8.6e.

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

Post by TheWitness »

Interesting. Edit the resource.h file and look for the constant RLIMIT_AS.

Larry
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?
Trupaslu
Posts: 9
Joined: Sat Jun 18, 2005 1:11 pm

Post by Trupaslu »

There is no 'RLIMIT_AS' in /usr/include/sys/resource.h...

I'll use cmd.php (it's only development so) Maybe you can fix it in the future, that should be nice.

Thanks for your help..

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

Post by TheWitness »

Please take the value from the attached and add it to your resource.h file then post a bug report with you Linux provider.

Larry
Attachments
resource.h
(2.38 KiB) Downloaded 192 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?
RampeStamp
Posts: 2
Joined: Thu Jun 30, 2005 10:47 am

Post by RampeStamp »

Same problem here, under FreeBSD.

I can signal my Linux suplier, but I run FreeBSD. It has no RLIMIT_AS in the resource.h file. (I even can't find it elsewhere).

Maybe there is another defined variable on the BSD systems, which you need for the function in cactid.
I try to find it, if I get the time for it. It's really irritating :x

[edit] I removed the check in php.c around rule 166, now it compiles and works well [/edit]
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I am going to place a check on future versions. For now, it's the exception and not the rule. Removing the code was a good idea. It's for DEBUG only.

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 4 guests