Trouble Getting Data From CentOS

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

Moderators: Developers, Moderators

cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

Code: Select all

/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf 
Put that in your path for the font.

Check the logs.

Post here ... you don't need to post everything just the last 20 or so lines of each log.
buee
Posts: 13
Joined: Wed Aug 12, 2009 5:16 pm

FNF

Post by buee »

cert-eh-fiable wrote:

Code: Select all

/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf 
Put that in your path for the font.

Check the logs.

Post here ... you don't need to post everything just the last 20 or so lines of each log.
File not found
cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

I copy / paste 'd that from your last reply. Weird unless there's a permissions issue.

Can you copy that file to the cacti installation and then place the path to that file in your settings?

cp /path/to/file.ttf /copy/to/this/path/file.ttf

cp {/path/filename} {/to/path/filename}
buee
Posts: 13
Joined: Wed Aug 12, 2009 5:16 pm

Post by buee »

cert-eh-fiable wrote:I copy / paste 'd that from your last reply. Weird unless there's a permissions issue.

Can you copy that file to the cacti installation and then place the path to that file in your settings?

cp /path/to/file.ttf /copy/to/this/path/file.ttf

cp {/path/filename} {/to/path/filename}
I did that and it says that it's found. However, still not populating graphs.

Code: Select all

08/12/2009 11:15:01 PM - SYSTEM STATS: Time:0.1919 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:5
08/12/2009 11:10:03 PM - SYSTEM STATS: Time:1.1799 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:5
08/12/2009 11:05:01 PM - SYSTEM STATS: Time:0.1832 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:5
And I'm still getting the RRDTool version error message. The funny thing is, Cacti installed it when I did apt-get install cacti. I would think it would've installed whatever version it needed.
cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

set the version in the console settings that applies to the version installed on your machine.

# rrdtool --help

post the output

It would still be nice to see the syslogs output. I'm beginning to think that you have a series of installation issues.

1. Do you have a SNMP RO user defined.
2. Do you have rrdtool 1.3 installed on an older version of cacti.
3. Are you running the lastest version of cacti.

That sort of stuff.

You might also copy and print the top portion of your console > utilities > tech support page.
buee
Posts: 13
Joined: Wed Aug 12, 2009 5:16 pm

Hopeless?

Post by buee »

cert-eh-fiable wrote:set the version in the console settings that applies to the version installed on your machine.

# rrdtool --help

post the output

It would still be nice to see the syslogs output. I'm beginning to think that you have a series of installation issues.

1. Do you have a SNMP RO user defined.
2. Do you have rrdtool 1.3 installed on an older version of cacti.
3. Are you running the lastest version of cacti.

That sort of stuff.

You might also copy and print the top portion of your console > utilities > tech support page.
RRDTool --help output

Code: Select all

RRDtool 1.3.1  Copyright 1997-2008 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Mar 18 2009 18:27:42

Usage: rrdtool [options] command command_options

Valid commands: create, update, updatev, graph, graphv,  dump, restore,
		last, lastupdate, first, info, fetch, tune,
		resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages
I did cat /var/log/syslog:

Code: Select all

Aug 12 23:30:02 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:51938 
Aug 12 23:30:13 nas2 kernel: [346341.533280] [drm:i915_getparam] *ERROR* Unknown parameter 6
Aug 12 23:35:02 nas2 /USR/SBIN/CRON[29309]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Aug 12 23:35:02 nas2 /USR/SBIN/CRON[29315]: (root) CMD (if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi )
Aug 12 23:35:02 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:35738 
Aug 12 23:39:01 nas2 /USR/SBIN/CRON[29495]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Aug 12 23:40:02 nas2 /USR/SBIN/CRON[29570]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
Aug 12 23:40:02 nas2 /USR/SBIN/CRON[29572]: (root) CMD (if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi )
Aug 12 23:40:02 nas2 /USR/SBIN/CRON[29615]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Aug 12 23:40:02 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:55398 
Aug 12 23:45:02 nas2 /USR/SBIN/CRON[29860]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Aug 12 23:45:02 nas2 /USR/SBIN/CRON[29862]: (root) CMD (if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi )
Aug 12 23:45:02 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:57182 
Aug 12 23:50:02 nas2 /USR/SBIN/CRON[30052]: (root) CMD (if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi )
Aug 12 23:50:02 nas2 /USR/SBIN/CRON[30054]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
Aug 12 23:50:02 nas2 /USR/SBIN/CRON[30057]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Aug 12 23:50:02 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:53708 
Aug 12 23:55:02 nas2 /USR/SBIN/CRON[30381]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Aug 12 23:55:02 nas2 /USR/SBIN/CRON[30384]: (root) CMD (if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi )
Aug 12 23:55:02 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:32994 
Aug 13 00:00:02 nas2 exiting on signal 15
Aug 13 00:00:02 nas2 syslogd 1.5.0#5ubuntu3: restart.
Aug 13 00:05:01 nas2 /USR/SBIN/CRON[31159]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Aug 13 00:05:01 nas2 /USR/SBIN/CRON[31160]: (root) CMD (if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi )
Aug 13 00:05:01 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:39329 
Aug 13 00:09:02 nas2 /USR/SBIN/CRON[31333]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm)
Aug 13 00:10:02 nas2 /USR/SBIN/CRON[31408]: (root) CMD (if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi )
Aug 13 00:10:02 nas2 /USR/SBIN/CRON[31410]: (www-data) CMD (php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log)
Aug 13 00:10:02 nas2 /USR/SBIN/CRON[31409]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
Aug 13 00:10:02 nas2 snmpd[18260]: Connection from UDP: [127.0.0.1]:49737 
I just installed cacti a couple days ago so I assume it's the newest version. RRDTool displays that it is 1.3.x so I assume that's correct also.

Code: Select all

Notice: Undefined index: Unknown in /usr/share/cacti/site/utilities.php on line 268
Technical Support
General Information
Date 	Thu, 13 Aug 2009 00:17:47 -0500
Cacti Version 	0.8.7b
Cacti OS 	unix
SNMP Version 	net-snmp
RRDTool Version 	
ERROR: Installed RRDTool version does not match configured version.
Please visit the Configuration Settings and select the correct RRDTool Utility Version.
Hosts 	2
Graphs 	7
Data Sources 	Script/Command: 7
SNMP Query: 1
Total: 8
Poller Information
Interval 	300
Type 	cmd.php
Items 	Action[0]: 2
Action[1]: 7
Total: 9
Concurrent Processes 	1
Max Threads 	1
PHP Servers 	1
Script Timeout 	25
Max OID 	10
Last Run Statistics 	Time:0.1847 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:5
PHP Information
PHP Version 	5.2.6-3ubuntu4.1
PHP OS 	Linux
PHP uname 	Linux nas2 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 01:19:55 UTC 2009 x86_64
PHP SNMP 	Installed
max_execution_time 	30
memory_limit 	16M
If need be, I can uninstall and reinstall it. I've only got localhost working on the thing anyway.
cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

Some things I notice right off the bat.

RRDTool 1.3.1 is old.
Cacti 0.8.7b is old
PHP 16M Memory Limit is low for your version.

Regardless.

Upgrade cacti of 0.8.7.e
I wouldn't run RRDTool 1.3.8 I'd install 1.2.27 but that's up to you.

Get that done and we'll see from there.

Code: Select all

ERROR: Installed RRDTool version does not match configured version.
Please visit the Configuration Settings and select the correct RRDTool Utility Version. 
Is because you're running rrdtool 1.3.1 on a cacti 0.8.7b installation.

If you're on CentOS yum upgrade the installations as long as rpmforge is repo enabled.
buee
Posts: 13
Joined: Wed Aug 12, 2009 5:16 pm

Fail

Post by buee »

cert-eh-fiable wrote:Some things I notice right off the bat.

RRDTool 1.3.1 is old.
Cacti 0.8.7b is old
PHP 16M Memory Limit is low for your version.

Regardless.

Upgrade cacti of 0.8.7.e
I wouldn't run RRDTool 1.3.8 I'd install 1.2.27 but that's up to you.

Get that done and we'll see from there.

Code: Select all

ERROR: Installed RRDTool version does not match configured version.
Please visit the Configuration Settings and select the correct RRDTool Utility Version. 
Is because you're running rrdtool 1.3.1 on a cacti 0.8.7b installation.

If you're on CentOS yum upgrade the installations as long as rpmforge is repo enabled.
I have gone through and attempted to remove cacti & rrdtool. Removal was successful but I can't seem to get the versions you specified. The machine that is meant to be running cacti is Ubuntu 9.04 64-bit. The only option I have is to download the newest versions of both available. RRDTool version is 1.3.1. Cacti version is 0.8.7b. I attempted to download the newest Cacti in hopes that it would be compatible with the newest RRDTool, but can't figure out how to install it. Still looking for documentation for that...
cert-eh-fiable
Cacti User
Posts: 51
Joined: Thu Aug 06, 2009 9:18 pm

Post by cert-eh-fiable »

The name of the topic is "Trouble Getting Data From CentOS" who'd have known.
buee
Posts: 13
Joined: Wed Aug 12, 2009 5:16 pm

Giving up

Post by buee »

cert-eh-fiable wrote:The name of the topic is "Trouble Getting Data From CentOS" who'd have known.
"Trouble Getting Data From CentOS"

Why would they release cacti rolled with an RRDTool release that's incompatible. That makes no sense. Well, I guess I'll abandon cacti for now. Seems Ubuntu can't get their stuff together enough to release compatible packages.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If you want to stay with that old cacti version, manually set "Settings -> RRDTool Utility Version" to 1.2. Cacti will autodetect rrdtool 1.3 in latest versions.
But don't ask us about Ubuntu's package updating policy
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests