Problem on cactid poller to run perl script

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

Moderators: Developers, Moderators

Post Reply
awan
Posts: 1
Joined: Wed Aug 24, 2005 12:43 am
Location: Jakarta
Contact:

Problem on cactid poller to run perl script

Post by awan »

Hi all,

I have a perl script to show bgp prefixes to graph on cacti.
when we use cmd poller graph was created but if we using cactid poller a graph not created (blank). Any suggestions would be much appreciated.

Best regards,

Awan
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

how fast do your devices reply? i've run into the same thing when polling a weblogic server using a perl script. the only thing i can think of is the speed of the response when running the script.
budhal2003
Posts: 6
Joined: Mon May 02, 2005 1:48 pm

Post by budhal2003 »

Sorry for my english.
I got the same problem too.

I tried to use a very simple perl scipt (just print '10'), when I used cmd.php, it's working but when I used cactid and use debug, it looks like the perl script isn't running.

I use :
linux
cacti-0.8.6f-r1
cactid 0.8.6d
gcc 3.4.3.20050110-r2
mysql 4.0.24-r1
php 5.0.3
net-snmp-5.2.1

I need to used cactid because it's much faster than cmd.php

Did I miss anything ?

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

Post by TheWitness »

We have a release planned quite soon to address many cactid issue.

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?
spdrmonkey
Posts: 9
Joined: Tue Aug 30, 2005 9:44 am

Post by spdrmonkey »

Just wanted to pipe up that I am having the same problem. I will be very interested in getting this fixed. I added some test to my perl script and I can see that when I initially configure the host to fun the script it works and I get my pollable items, but then the script is not run when it comes time for the 5 minute polls. My info is below:

Gentoo 2005.0 Kernel 2.6.12-gentoo-r6
Cacti 0.8.6f-r1
Cactid 0.8.6e
net-snmp 5.2.1.2
Perl 5.8.6-r5
PHP 4.4.0

Unfortunatly this is older hardware and the cmd.php just isn't an option. Thanks for any help!

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

Post by TheWitness »

I will release rc8 tonight. I believe that it is ready for release. I am still working on some "performance" related issues, but I believe stability should be back where it needs to be.

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?
spdrmonkey
Posts: 9
Joined: Tue Aug 30, 2005 9:44 am

Post by spdrmonkey »

I downloaded cactid .8.6e-rc8 via cvs and I am having a problem compiling. In $CVSROOT/trunk/cactid I ran autoconf -v -o configure configure.ac

Then ./configure which produced no errors. I then ran 'make' and errored out here:

gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -L/usr/local/ssl/lib -L/usr/lib -L/usr/lib -o cactid sql.o cactid.o util.o snmp.o locks.o poller.o nft_popen.o php.o -lnetsnmp -lcrypto -lmysqlclient -lmysqlclient -lz -lpthread -lm -lnsl
poller.o(.text+0x17c0): In function `poll_host':
/root/cacti/trunk/cactid/poller.c:174: undefined reference to `ping_host'
poller.o(.text+0x17fe):/root/cacti/trunk/cactid/poller.c:178: undefined reference to `update_host_status'
poller.o(.text+0x1903):/root/cacti/trunk/cactid/poller.c:167: undefined reference to `update_host_status'
collect2: ld returned 1 exit status
make: *** [cactid] Error 1

Am I doing something wrong? Please let me know if you need any info about my system. Thanks for the help!

autoconf 2.59-r6
gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The Trunk version is highly unstable and designed for a much different Cacti. You need to use BRANCH_0_8_6.

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?
budhal2003
Posts: 6
Joined: Mon May 02, 2005 1:48 pm

Post by budhal2003 »

TheWitness wrote:I will release rc8 tonight. I believe that it is ready for release. I am still working on some "performance" related issues, but I believe stability should be back where it needs to be.

TheWitness

Hello TheWitness,

Is there any update for the new release of cactid.

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

Post by TheWitness »

Sorry, the developement team has not been been whipped into shape lately. Don't frankley know.

Larry :cry:
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?
spdrmonkey
Posts: 9
Joined: Tue Aug 30, 2005 9:44 am

Post by spdrmonkey »

I was able to compile the rc8 cactid, but now even the snmp checks are broken, I recieve an error log full of this:

CACTID: Poller[0] Host[4] DS[265] WARNING: Result from SNMP not valid. Partial Result: ...

Thanks for any help.

-Zac
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests