Cacti poller ?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

chunkd
Posts: 3
Joined: Mon Jun 06, 2005 1:28 pm

Cacti poller ?

Post by chunkd »

Hey,

Just need some information, I have searched high and low and read the cacti manual with no luck.
So here's my ?

There are 2 types of pollers within cact poller.php and cactid. What is the difference ?????? Can someone please clear this up.

As far as I know, the cactid poller is quicker thtn poller.php?? Is this true?


Thanks

chunkd
georger_br
Cacti User
Posts: 63
Joined: Mon Jul 04, 2005 10:12 am
Location: Brazil

Re: Cacti poller ?

Post by georger_br »

cmd.php, as the name implies, is a PHP script. It's interpreted and has all the overhead associated with PHP. It's suitable for deployment with few devices. I am currently polling 13 devices (3 local, 10 remote) and cmd.php is taking ~40 seconds to run. Fine if you ask me.
cactid is an executable, i.e. program. It's compiled and as such is faster than cmd.php, making it the ideal choice for environments with many devices. I don't know how many devices you can handle with one or the other, but if you begin to feel that cmd.php is taking too long, try cactid and check the log to see the difference.
On my notebook, where I do development, I have 3 devices (2 local, 1 remote). cmd.php takes 4 seconds to run, cactid takes 8.7. So each of them has its role - it depends on your environment. Regards,

Georger
chunkd wrote:Hey,

Just need some information, I have searched high and low and read the cacti manual with no luck.
So here's my ?

There are 2 types of pollers within cact poller.php and cactid. What is the difference ?????? Can someone please clear this up.

As far as I know, the cactid poller is quicker thtn poller.php?? Is this true?


Thanks

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

Post by TheWitness »

I am disturbed that Cactid is taking that long. I have seen this as well in the Windows environment on XP Pro. It started after some Microsoft patch. When I open a bash shell and run it, it only takes 2 seconds. When I use the task scheduler, it takes from 7 to 13. Go figure.

Anyway, to guage performance, see this article.

http://forums.cacti.net/viewtopic.php?t=6206

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?
chunkd
Posts: 3
Joined: Mon Jun 06, 2005 1:28 pm

Post by chunkd »

well I tried the switch and it doesnt work the poller stops working after switching to cactid.

heres my error

07/26/2005 04:34:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

and when I switch back to php poller everything works fine


cheers
chunkd
lightningbit
Posts: 26
Joined: Fri Sep 30, 2005 4:23 am

Cactid poller not working

Post by lightningbit »

Hi,

I'm trying the cactid poller in stead of the php poller, however, I get following error :

D:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6e starting
CACTID: ERROR: Problem initializing SNMP session 'HOSTENAMEDELETED'
CACTID: WARNING: Unknown host HOSTNAMEDELETED
6 [unknown (0xB34)] cactid 3096 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
10110 [unknown (0xB34)] cactid 3096 open_stackdumpfile: Dumping stack trace to cactid.exe.stackdump


the HOSTNAME is reachable and resolvable, SNMP settings should be fine

I'm running Cacti on the following configuration :

Windows 2003 Server SP1
Mysql 4.11-NT
PHP 5.0.4



any ideas?

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

Post by TheWitness »

Yea, stupid dumb programmer (me that is).

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?
lightningbit
Posts: 26
Joined: Fri Sep 30, 2005 4:23 am

Re: Cactid poller not working

Post by lightningbit »

lightningbit wrote:Hi,

I'm trying the cactid poller in stead of the php poller, however, I get following error :

D:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6e starting
CACTID: ERROR: Problem initializing SNMP session 'HOSTENAMEDELETED'
CACTID: WARNING: Unknown host HOSTNAMEDELETED
6 [unknown (0xB34)] cactid 3096 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
10110 [unknown (0xB34)] cactid 3096 open_stackdumpfile: Dumping stack trace to cactid.exe.stackdump


the HOSTNAME is reachable and resolvable, SNMP settings should be fine

I'm running Cacti on the following configuration :

Windows 2003 Server SP1
Mysql 4.11-NT
PHP 5.0.4



any ideas?

L.

hmmm it seems I'm getting somewhere ....

now it runs for 2 (of the 6 devices)
and it ends with the following few lines


No log handling enabled - turning on stderr logging
read_config_store open failure on /var/net-snmp/cactid.conf
read_config_store open failure on /var/net-snmp/cactid.conf
read_config_store open failure on /var/net-snmp/cactid.conf
CACTID: Execution Time: 10.6140 s, Threads: 10, Hosts: 8
------------

as said... I'm running on W2K3 platform...
is this something I need to concern about? if so.. where can I change the setting so it poitns to D:\cacti

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

Post by TheWitness »

I have released Cactid 086-rc12 for testing. Give it a whirl.

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?
lightningbit
Posts: 26
Joined: Fri Sep 30, 2005 4:23 am

Post by lightningbit »

TheWitness wrote:I have released Cactid 086-rc12 for testing. Give it a whirl.

TheWitness
is it posible to have it compiled for windows platform?

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

Post by TheWitness »

Done already. You must have cygwin installed however.

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?
bitgod
Posts: 25
Joined: Thu Mar 31, 2005 2:03 pm
Location: Texas, USA

Post by bitgod »

Anymore on the following cactid error?

read_config_store open failure on /var/net-snmp/cactid.conf

I just updated my cacti and cactid installation to the latest stable versions today. So far the install went smooth but my automatic updates have ceased. I see that error pasted about when I run cactid manually.

The graphs do update if I run poller.php manually, I just cant go with that option in an automated fashion since im polling 167 devices loaded with 24-48 interfaces each.
bitgod
Posts: 25
Joined: Thu Mar 31, 2005 2:03 pm
Location: Texas, USA

Post by bitgod »

btw... heres a cactid poller benchmark for ya... I cant even get the cmd.php to finsish so no benchmarks there.

Hardware:
Dell Poweredge 1750
2.8 Ghz Intel Xeon Processor w/ Hyperthreading
1 Gb memory
100Mb LAN

SYSTEM STATS: Time:68.9367 Method:cactid Processes:1 Threads:5 Hosts:167 HostsPerProcess:167 DataSources:15128 RRDsProcessed:9577
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

relative to config store, what version of net-snmp?

TW
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?
bitgod
Posts: 25
Joined: Thu Mar 31, 2005 2:03 pm
Location: Texas, USA

Post by bitgod »

net-snmp-5.1.2-11 Running on CentOS 4.2.

Poller locked up on me yesterday apparently. Had to kill a couple processes, clear poller cache. Then noticed this:

-sh-3.00$ cactid
CACTID: Using cactid config file [/etc/cactid.conf]
CACTID: Version 0.8.6f starting
File size limit exceeded
-sh-3.00$ php cmd.php
File size limit exceeded

Cacti was spooged so I copied /dev/null to cacti.log since the web page quit loading.. then cactid would run again. Went back and lowed error log level. Not sure what started this. never had the log filling that much before while I didn't change the log level when I upgraded. All appears well again.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your cacti.log file is too big. Please implement management such as logrot. Also, to get rid of the net-snmp message, please upgrade to 5.2.x.

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