cactid 0.8.6

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

Moderators: Developers, Moderators

bfek-18
Posts: 24
Joined: Mon Oct 27, 2003 9:13 am
Location: Germany, Potsdam

cactid 0.8.6

Post by bfek-18 »

Hallo,

the cactid works in this Version.
But no update the .rra Files.

thx

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

Post by TheWitness »

You need to change your CRON to run poller.php and not cmd.php.

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?
bfek-18
Posts: 24
Joined: Mon Oct 27, 2003 9:13 am
Location: Germany, Potsdam

Post by bfek-18 »

i use the cacti-cactid-0.8.6 c-Style Program.
The php files are not enough speed.

bye uk
User avatar
conred
Posts: 20
Joined: Fri Jun 20, 2003 7:00 am
Location: Spain

Post by conred »

I have problems with poller.c
I do make and i have this error:
source='poller.c' object='poller.o' libtool=no \
depfile='.deps/poller.Po' tmpdepfile='.deps/poller.TPo' \
depmode=gcc /bin/sh ./config/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -c `test -f 'poller.c' || echo './'`poller.c
poller.c: In function `exec_poll':
poller.c:482: parse error before `char'
poller.c:505: `result_string' undeclared (first use in this function)
poller.c:505: (Each undeclared identifier is reported only once
poller.c:505: for each function it appears in.)
make: *** [poller.o] Error 1

Pls, help me. Thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You must run poller.php. It will select either cmd.php or cactid based upon the settings in Settings->Poller. Seek it out and make sure that it is accurate. RRD files are no longer updated in cactid or cmd.php.

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
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

conred,

I will not be able to address till this evening. However, please state your software versions:

PHP:
OS:
GCC:
Net-SNMP:
MySQL:

Thanks,

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?
Guest

same error

Post by Guest »

I am getting the same thing trying to compile cactid, the last version compiled without issue.

make
source='sql.c' object='sql.o' libtool=no depfile='.deps/sql.Po' tmpdepfile='.deps/sql.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/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=gcc /usr/local/bin/bash ./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=gcc /usr/local/bin/bash ./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=gcc /usr/local/bin/bash ./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
In file included from snmp.c:35:
/usr/local/include/net-snmp/net-snmp-config.h:871: warning: `PACKAGE_BUGREPORT' redefined
config/config.h:89: warning: this is the location of the previous definition
/usr/local/include/net-snmp/net-snmp-config.h:874: warning: `PACKAGE_NAME' redefined
config/config.h:92: warning: this is the location of the previous definition
/usr/local/include/net-snmp/net-snmp-config.h:877: warning: `PACKAGE_STRING' redefined
config/config.h:95: warning: this is the location of the previous definition
/usr/local/include/net-snmp/net-snmp-config.h:880: warning: `PACKAGE_TARNAME' redefined
config/config.h:98: warning: this is the location of the previous definition
/usr/local/include/net-snmp/net-snmp-config.h:883: warning: `PACKAGE_VERSION' redefined
config/config.h:101: warning: this is the location of the previous definition
source='locks.c' object='locks.o' libtool=no depfile='.deps/locks.Po' tmpdepfile='.deps/locks.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/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=gcc /usr/local/bin/bash ./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
poller.c: In function `exec_poll':
poller.c:482: syntax error before `char'
poller.c:505: `result_string' undeclared (first use in this function)
poller.c:505: (Each undeclared identifier is reported only once
poller.c:505: for each function it appears in.)
*** Error code 1


PHP - PHP 4.3.8
OS - Freebsd 4.10
GCC - gcc version 2.95.4
Net-SNMP - 5.1.2_1
MySQL - 4.0.20
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This appears to be a compiler specific issue. You have a few options. The first is to upgrade GCC to a more recent version. The second is to remove alter the line in poller.c from the following:

char *result_string = (char *) malloc(BUFSIZE);

to the following

char *result_string = malloc(BUFSIZE);

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
conred
Posts: 20
Joined: Fri Jun 20, 2003 7:00 am
Location: Spain

Post by conred »

TheWitness, here is my config:

PHP: 4.3.4
OS: sentinix
GCC: 2.95.3
Net-SNMP: 5.0.9
MySQL: Ver 12.22 Distrib 4.0.16, for sentinix-linux (i386)

I tried to change poller.c like you said but the result of make is the same.
I can't use poller.php because I have nearly 300 machines in my list devices and poller takes more than 296 sec.

Thanks in advance
Guest

Post by Guest »

TheWitness wrote:You must run poller.php. It will select either cmd.php or cactid based upon the settings in Settings->Poller. Seek it out and make sure that it is accurate. RRD files are no longer updated in cactid or cmd.php.

TheWitness
RRD files are no longer updated in cactid or cmd.php ????????

What is that ?

cactid be most powerful for poll many of hosts.
poller.php have not the speed for that work.

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

Post by TheWitness »

It is the new architecture. Granted cactid is fast. However, the new architecture is quite fast as well. This is especially true if you are using cactid.

As you become more familiar with the architecture, you will note that Cacti is updating RRD files throughout the entire polling cycle, making it more efficient in terms of real disk usage. As you become more familiar with out long range goals, you will understand why we made this choice.

If in the future, we have problems with the rrdupdate process scalling, we will write a ansi C based RRD routine, but for now, just give it a shot.

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
conred
Posts: 20
Joined: Fri Jun 20, 2003 7:00 am
Location: Spain

Post by conred »

Finally, I can running cactid.
Upgrade gcc to version 3.4.0 and compile.
It's OK, but graphs don't actualize, WHY?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You must change your cron to schedule poller.php and NOT CACTID. The choice of CACTID is made in the user interface under Settings->Poller.

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
conred
Posts: 20
Joined: Fri Jun 20, 2003 7:00 am
Location: Spain

Post by conred »

I am using cactid in my crontab.
Pls, explain me what it's need in crontab and in poller config.
Attachments
settings.JPG
settings.JPG (104.89 KiB) Viewed 5948 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The RRDUPDATE process has been removed from cactid. It now resides in poller.php. You need to change the cron entry to run <php_path>/php <cacti_path>/poller.php instead of cactid. When you upgraded, there should have been a notice in big bold lettering indicating so. Your performance will still be on-par with cactid from earlier versions.

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