No graphs generate

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

Moderators: Developers, Moderators

Post Reply
User avatar
Wolfgang
Posts: 3
Joined: Mon Jan 15, 2007 9:40 am
Location: Taipei
Contact:

No graphs generate

Post by Wolfgang »

I'm a Linux and Cacti fresh man. Please forgive me if the question is stupid.

I have a Ubuntu 6.10 server running Wordpress as my BLOG. I would like to know the load ,memory usage and etc information on it.
After read the Linux installation guide carefully, I install Cacti onto my Ubuntu server and choose Linux Local machine as my device template. After one night wait, no graph generate. Then I try to login as cacti user and run php /pathto cacti/poller.php, no message prompted and also no file create in rra/ or log/ (Those two folder were own by cacti and access right is 777. After check with HowTo: Debug NaN's in your graphs, I ran perl /pathto cacti/scripts/loadavg_multi.pl and can got the value. So I think perl is running correctly. I don't know how to continue debug, please give me some help. Thanks in advanced.

I don't know those two images are helpful or not.
Attachments
device_status_unknow.jpg
device_status_unknow.jpg (108.05 KiB) Viewed 2590 times
localhost_snmp.jpg
localhost_snmp.jpg (140.95 KiB) Viewed 2590 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you enter the poller.php into your crontab?
Reinhard
User avatar
Wolfgang
Posts: 3
Joined: Mon Jan 15, 2007 9:40 am
Location: Taipei
Contact:

Post by Wolfgang »

Sure.

Look this:

root@sirius:~# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
* 4 * * * root perl /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=wolfgang.tw
50 4 1 * * root /usr/bin/apt-get update && /usr/bin/apt-get -y dist-upgrade
10 5 * * * root /usr/sbin/ntpdate tock.stdtime.gov.tw && /sbin/hwclock -w
*/5 * * * * cacti php /home/www/cacti/poller.php > /dev/null 2>&1
#


If login as cacti, and run php poller.php:

cacti@sirius:/root$ php /home/www/cacti/poller.php
cacti@sirius:/root$
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please switch Settings-> Logging Level to DEBUG and retry. Have a look at log/cacti.log for output
Reinhard
User avatar
Wolfgang
Posts: 3
Joined: Mon Jan 15, 2007 9:40 am
Location: Taipei
Contact:

Post by Wolfgang »

gandalf wrote:Please switch Settings-> Logging Level to DEBUG and retry. Have a look at log/cacti.log for output
Reinhard
After set logging level to DEBUG mode, the log file look like this:
01/24/2007 11:01:53 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/24/2007 11:01:53 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/24/2007 11:01:53 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"



The current log also attached. Thanks!
Attachments
cacti_logfile.txt
(683.18 KiB) Downloaded 85 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The log only shows DEBUG from graphing. Not a single line from the poller. So either the crontab is not working (/etc/init.d/crond start) or it fails on a very early stage
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests