no graphs in cacti, CentOS

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

Moderators: Developers, Moderators

Post Reply
mnilsson@udcom.net
Posts: 29
Joined: Mon Jan 08, 2007 11:07 am

no graphs in cacti, CentOS

Post by mnilsson@udcom.net »

Hi

i have installed cacti and added the crontab line for poller.php but still the cacti does not show any diagrams and i guess i have beeing messing around do much in the Mysql and added users according to the manual in CentOS and added more users and grant access as well.

on the cacti page when i turn on debug of graph i get the following:

********************************************

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="mc3810 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
DEF:a="/var/www/cacti/rra/mc3810_5min_cpu_24.rrd":5min_cpu:AVERAGE \
AREA:a#FF0000:"CPU Usage" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/mc3810_5min_cpu_24.rrd': No such file or directory

*****************************************************************

i checked the directory and that is true i have no rrd file in that directory ...

I guess i need to configure the snmpd or what ???, i will look for error log in snmpd, apache, cacti all is possible ...

Matthias
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try some tips of my Nan Debugging HowTo. They do not exactly match your request. But they show a lot of tips how to find log infos and more
Reinhard
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

Also try manually doing an snmpwalk from the server to see if it actually pulls back info
mnilsson@udcom.net
Posts: 29
Joined: Mon Jan 08, 2007 11:07 am

Post by mnilsson@udcom.net »

Hi

Now i get no data to cacti

I run the line from cacti directory php -q poller.sh and it does not complains but on the other hand the rrd directory with all my rrd files is not updated ...

did an snmpget from that node and i get an answer looks in poller.log and it does not tell me anything except for version number ...

cacti log is not updated at all ....

uninstall mysqld or how do i do it ...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please be careful when running the poller.php manually. You should do so only when being logged in as cactiuser (the user running the poller from crontab). Else, permissions/ownership of new rrd files will correspond to your user settings.
So, please set "Settings->Poller Logging Level" to DEBUG for one single run. Login as cactiuser, empty log/cacti.log and run

Code: Select all

php -q poller.php > log/poller.log
from your cacti main directory. Post both cacti.log and poller.log after sanitizing private strings
Reinhard
mdmartz
Posts: 3
Joined: Wed Feb 21, 2007 12:25 pm

Post by mdmartz »

I have been experiencing the same problem. I still have not gotten it resolved.

I have installed cacti about 10-20 times on fedora. This is my first time on centos.

poller.log

Code: Select all

Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
... (Repeat of above)
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
02/21/2007 12:09:16 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
02/21/2007 12:09:16 PM - SYSTEM STATS: Time:293.1932 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114 RRDsProcessed:5
cacti.log

Code: Select all

02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select  poller_output.output,  poller_output.time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"
02/21/2007 12:09:15 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
02/21/2007 12:09:15 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select  poller_output.output,  poller_output.time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"
... (Repeat of above)
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select  poller_output.output,  poller_output.time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"
02/21/2007 12:09:16 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
02/21/2007 12:09:16 PM - SYSTEM STATS: Time:293.1932 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114 RRDsProcessed:5
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('stats_poller','Time:293.1932 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114 RRDsProcessed:5')"
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_command"
That is all I get. I am experiencing the same problems as mnilsson@udcom.net.

I should also mention that the SNMP cache and poller cache appears to be populated.

App versions:
cacti-0.8.6j-1.el4.rf
php-mysql-4.3.9-3.22
php-4.3.9-3.22
php-snmp-4.3.9-3.22
rrdtool-1.2.18-1.el4.rf
perl-rrdtool-1.2.18-1.el4.rf
php-snmp-4.3.9-3.22
net-snmp-5.1.2-11.EL4.7

The only big difference I see from Fedora to CentOS is the version of php.

My default localhost graphs are working fine.
mdmartz
Posts: 3
Joined: Wed Feb 21, 2007 12:25 pm

Post by mdmartz »

I should also probably mention that I ahve tried the RPM version found from RPMForge/Dag and the tgz found on the download page of this site. Both have given the same problem.

SELinux is disabled.

I have also tried cactid. Although I am not really sure how to setup cactid. Whether I should place that in the cron job instead of poller.php?

After several attempts running cactid and then poller and so on I was eventually able to get a rrd/graph generated but it did not work continuously as it should. There would be large gaps of no data and in some cases certain hosts would not graph at all.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you try the hints given in my HowTo linked in the second post? Please report your findings, step by step
Reinhard
mdmartz
Posts: 3
Joined: Wed Feb 21, 2007 12:25 pm

Post by mdmartz »

I eventually reinstalled cactid and found how to use it.

I still cannot get cmd.php to work correctly but cactid works like a charm.
Post Reply

Who is online

Users browsing this forum: mrheavydee95 and 7 guests