Hello,
i just installed cacti and cactid on gentoo(what means, that it is actual). Then i followed the (small) installation-doc from the homepage.
So i:
- added a cacti-db to mysql
- started cactid all 5 minutes via cron
- installed the web-application and entered it as admin
- added all standard-devices from that linux-host and the graphs
- changed polling to cactid
But now, after two days, there's still no graph rendered?!
I can't find any error-messages in the apache-log concerning this prob, neither is there something in the cacti-log, it's got size 0?!
So where do i search?
All under .../www/..../cacti is root:apache rw.rw.r.., the cactid runs as root, so it writes in mysql (i hope so).
In which table are the cactid results? And where do i trigger it? In the cactid.conf is only the database? So it just takes the same config as cacti itself?
Thanks in advance for your answers, Florian
Need basic help after installation with cactid and cacti
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Need basic help after installation with cactid and cacti
Did you remember to chown the rra/ and log/ directories? You must give write access to the cactiuser that runs the poller (from crontab). To check this, su to your cactiuser and run the poller from command line (e.g. the same command that is used in the crontab). This will provide more output, e.g. permission problems or missing PATH information or the like.qeldroma wrote:Hello,
i just installed cacti and cactid on gentoo(what means, that it is actual). Then i followed the (small) installation-doc from the homepage.
So i:
- added a cacti-db to mysql
- started cactid all 5 minutes via cron
- installed the web-application and entered it as admin
- added all standard-devices from that linux-host and the graphs
- changed polling to cactid
Goto Settings -> Poller Logging Level and set this to DEBUG. This should produce a bunch of messages in cacti.log.I can't find any error-messages in the apache-log concerning this prob, neither is there something in the cacti-log, it's got size 0?!
So where do i search?
all polled results are stored in the rrd's. Cacti mysql tables only hold configuration info and poller data of the last run.In which table are the cactid results? And where do i trigger it? In the cactid.conf is only the database? So it just takes the same config as cacti
Reinhard
No errors in the logs, so far as i can see?
Or do you see anything?
Code: Select all
# cat cacti.log
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The log_destination variable is 2
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The path_php variable is /usr/bin/php
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The availability_method variable is 2
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The ping_recovery_count variable is 3
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The ping_failure_count variable is 2
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The ping_method variable is 2
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The ping_retries variable is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The ping_timeout variable is 400
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The log_perror variable is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The log_pwarn variable is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The log_pstats variable is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The threads variable is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The polling interval is the system default
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The number of concurrent processes is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The script timeout is 25
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: StartHost='0', EndHost='0', TotalPHPScripts='0'
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The PHP Script Server is Not Required
11/28/2005 10:38:46 AM - CACTID: Poller[0] CACTID: Version 0.8.6e starting
11/28/2005 10:38:46 AM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
11/28/2005 10:38:46 AM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
11/28/2005 10:38:46 AM - CACTID: Poller[0] CACTID: Initializing Net-SNMP API
11/28/2005 10:38:46 AM - CACTID: Poller[0] CACTID: Initializing PHP Script Server
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: Parent pid=11454, Script Server pid=0
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: Initial Value of Active Threads is 0
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
11/28/2005 10:38:46 AM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
11/28/2005 10:38:46 AM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
11/28/2005 10:38:46 AM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] SNMP Result: Host does not require SNMP
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='2',status_event_count='1', status_fail_date='0000-00-00 00:00:00',status_rec_date='2005-11-28 10:38',status_last_error='Ping not performed due to setting.',min_time='0.000000',max_time='0.000000',cur_time='0.000000',avg_time='0.000000',total_polls='2',failed_polls='1',availability='50.0000' where id='1'
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 12
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DS[5] SCRIPT: perl /var/www/localhost/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.29 5min:0.13 10min:0.10
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (5,'','2005-11-28 10:38:46','1min:0.29 5min:0.13 10min:0.10')
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 12
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DS[3] SCRIPT: perl /var/www/localhost/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 5016
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (3,'mem_buffers','2005-11-28 10:38:46','5016')
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 12
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DS[4] SCRIPT: perl /var/www/localhost/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 928516
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (4,'mem_swap','2005-11-28 10:38:46','928516')
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 12
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DS[8] SCRIPT: perl /var/www/localhost/htdocs/cacti/scripts/ping.pl 127.0.0.1, output: 0.037
11/28/2005 10:38:46 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (8,'ping','2005-11-28 10:38:46','0.037')
11/28/2005 10:38:46 AM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 12
11/28/2005 10:38:47 AM - CACTID: Poller[0] Host[1] DS[7] SCRIPT: perl /var/www/localhost/htdocs/cacti/scripts/unix_processes.pl, output: 189
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (7,'proc','2005-11-28 10:38:46','189')
11/28/2005 10:38:47 AM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 12
11/28/2005 10:38:47 AM - CACTID: Poller[0] Host[1] DS[6] SCRIPT: perl /var/www/localhost/htdocs/cacti/scripts/unix_users.pl, output: 9
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (6,'users','2005-11-28 10:38:46','9')
11/28/2005 10:38:47 AM - CACTID: Poller[0] Host[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: Thread Cleanup Complete
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: PHP Script Server Pipes Closed
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: Allocated Variable Memory Freed
11/28/2005 10:38:47 AM - CACTID: Poller[0] CACTID: Shutting down Net-SNMP API
11/28/2005 10:38:47 AM - CACTID: Poller[0] DEBUG: MYSQL Free & Close Completed
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Cactid is running fine. However, you are not supposed to schedule cactid in cron, but rather "php poller.php". Therefore, you will now have to perform the following mysql changes after you make your cron adjustment:
mysql -u root -p cacti
> truncate table poller_output;
> quit
TheWitness
mysql -u root -p cacti
> truncate table poller_output;
> quit
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest