cmd.php runs longer than 5 minutes
Moderators: Developers, Moderators
cmd.php runs longer than 5 minutes
I'm not quite there yet, but cmd.php is running close to 3 minutes. If I add all the machines I am planning to add, this will surely run longer than 5 minutes.
I have it cron'd to run every 5, so what happens when 2 cmd.php jobs start running together?
Chad
I have it cron'd to run every 5, so what happens when 2 cmd.php jobs start running together?
Chad
-
- Posts: 1
- Joined: Thu Jul 17, 2003 9:35 am
my cmd.php runs longer than 5 minutes too
I got the same problem.
my cmd.php takes 4 mins 15 sec.
my computer is a 533 mhz via c3.
top shows 100% load.
I use self compiled apache 2. mysql 4 and php 4.3.2
php is compiles without snmp!!!
is it important to install php with snmp
my cmd.php takes 4 mins 15 sec.
my computer is a 533 mhz via c3.
top shows 100% load.
I use self compiled apache 2. mysql 4 and php 4.3.2
php is compiles without snmp!!!
is it important to install php with snmp
If you are polling enough items to cause cmd.php to run >5 minutes, I suggest that you check out cactid. You will find the best results by copying the 'cactid/' directory from the latest pre-release. Hopefully cactid will one day replace cmd.php as a fast c-based threaded alternative. For now, it should work for most users.
-Ian
-Ian
I try to confıgure cactid but I get this message:
Anybody help me?
Beacuse My cmd.php runs in 406 sec.
Code: Select all
configure: error: Cannot find SNMP headers. Use --with-snmp=to specify non-default path.
Beacuse My cmd.php runs in 406 sec.
I don't know what ı write after --with-snmp=TFC wrote:I try to confıgure cactid but I get this message:Anybody help me?Code: Select all
configure: error: Cannot find SNMP headers. Use --with-snmp=to specify non-default path.
Beacuse My cmd.php runs in 406 sec.
Have you any idea?
If you installed net-snmp/ucd-snmp from source, you should put '--with-snmp=/usr/local'. I know that Redhat 7.3 installs ucd-snmp by default. In this case you need to make sure the 'ucd-snmp-devel' package is installed.Anonymous wrote:I don't know what ı write after --with-snmp=
Have you any idea?
-Ian
I have 'ucd-snmp' and 'ucd-snmp-devel' packages. And I use that command
I solve this problem but now I have another problem
configuration cut off because:
what is libcrypto and how can I install that?
Is it necessary? If not how can I install without libcrypto?
Code: Select all
./configure --with-snmp=/usr/include/ucd-snmp/
configuration cut off because:
Code: Select all
configure: error: libcrypto not found!
Is it necessary? If not how can I install without libcrypto?
HEY!!
As an information,
I uninstall openssl and reinstall. Then problem solved.
Then I use 'make' and 'make install'
Now I have these files in cactid directory:
Now what should I do?
Which command must be written in crontab?
Remember that I am a newbie
Additionally,
when I use ./cactid command why I get "permission denied" messages? just wonder..
As an information,
I uninstall openssl and reinstall. Then problem solved.
Then I use 'make' and 'make install'
Now I have these files in cactid directory:
Code: Select all
aclocal.m4 cactid.h config.log INSTALL mysql.c README
AUTHORS cactid.o config.status locks.c mysql.o rrd.c
cactid ChangeLog configure Makefile NEWS rrd.o
cactid.c common.h configure.in Makefile.am poller.c util.c
cactid.conf config COPYING Makefile.in poller.o util.o
Which command must be written in crontab?
Remember that I am a newbie
Additionally,
when I use ./cactid command why I get "permission denied" messages? just wonder..
After you successfully compile:
1) Edit 'cactid.conf' so it points to your Cacti database.
2) Add a crontab entry like:
After you edit cactid.conf and before you add the crontab entry double check to make sure cactid actually runs and polls data. If you are getting permission related errors, make sure the files in your 'rra/' directory are writable by the user cactid is running as.
Let me know if you have any further questions.
-Ian
1) Edit 'cactid.conf' so it points to your Cacti database.
2) Add a crontab entry like:
Code: Select all
*/5 * * * * iberry cd /var/www/html/cacti/cactid; ./cactid > /dev/null 2>&1
Let me know if you have any further questions.
-Ian
Hi Ian,raX wrote:After you successfully compile:
1) Edit 'cactid.conf' so it points to your Cacti database.
2) Add a crontab entry like:
After you edit cactid.conf and before you add the crontab entry double check to make sure cactid actually runs and polls data. If you are getting permission related errors, make sure the files in your 'rra/' directory are writable by the user cactid is running as.Code: Select all
*/5 * * * * iberry cd /var/www/html/cacti/cactid; ./cactid > /dev/null 2>&1
Let me know if you have any further questions.
-Ian
Thanks for assistances.
I wanna say about future of cacti.
I told u in http://www.raxnet.net/board/viewtopic.php?p=7478#7478
Have u any idea how can I use cactid and cactistoric? When I use cmd.php graph turns normal, 5 min average,. But when I use cactid, graph becomes like shown in figure. Any code in cactid can be change for this?
I have to ask a little question. Cactid and cmd.php do completely same things about update rrd and etc?
From linkdown.org:
You must install this into cactiI started this project to add the historic feature to Cacti. If you are a RaXnet forum user you probably know this project as zoom_graph. With this add-on you can see what append a few days/weeks/months ago with a 5 minute accuracy. This release (0.8.2a) is built to be used with cacti-0.8.2a.
Who is online
Users browsing this forum: No registered users and 4 guests