Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue May 23, 2017 12:09 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cacti poller ?
PostPosted: Fri Jul 22, 2005 7:58 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: Cacti poller ?
PostPosted: Fri Jul 22, 2005 8:28 am 
Offline
Cacti User

Joined: Mon Jul 04, 2005 10:12 am
Posts: 63
Location: Brazil
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 22, 2005 11:21 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 3:46 pm 
Offline

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


Top
 Profile  
 
 Post subject: Cactid poller not working
PostPosted: Fri Sep 30, 2005 4:30 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 4:48 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cactid poller not working
PostPosted: Fri Sep 30, 2005 4:59 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 7:06 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 8:21 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 5:14 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 2:59 pm 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 3:45 pm 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 5:58 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 23, 2005 11:06 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 23, 2005 12:36 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group