Poller or permissions issue? Can't generate graphs....

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

Moderators: Developers, Moderators

linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Poller or permissions issue? Can't generate graphs....

Post by linebacker »

Running on Fedora Core 3 Linux
RRDTool Version: 1.2.6
Cacti Version: 0.6.8d

I followed the UNIX/Linux configuration doc from the Cacti site but am unable to get graphs to generate. All I get is

the little magnifying glass thing. SNMP is working, as when I add the device it discovers it correctly.

I ran the following:
mysql --user=root mysql
mysql> GRANT ALL ON cacti.* TO lb@enos IDENTIFIED BY 'password';
mysql> flush privileges;

I have the following in my include/config.php file:
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "enos";
$database_username = "lb";
$database_password = "password";

I have the following statement in my crontab file:
*/5 * * * * lb php /var/www/html/cacti/poller.php > /dev/null 2>&1

The poller seems to be running every 5 minutes like it should, I see this entry in the /var/log/cron file:
May 17 08:30:01 enos crond[15123]: (lb) CMD (php /var/www/html/cacti/poller.php > /dev/null 2>&1)

I'm able to login to Cacti and create devices, etc., but there are no graphs created. I have stopped and started the

crond service which made no difference. I've seen it mentioned several times to check permissions on certain

files/directories but I'm not sure how to do that, or what ones need to be checked/changed. Can anyone please help?

Please let me know if you need more information!! Thanks in advance!!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yes, check the permissions on the rra and log directories in your cacti installation. The user running the polling should have read write access.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Post by linebacker »

Hi Tony,
Yep, already did that (see below). I ran that command from the cacti directory. Anything else could be causing this issue? I have also posted the ls -la output from my cacti directory to see if you see anything goofy. Forgive my novice linux skills !!

chown -R lb rra/ log/

[root@enos lb]# cd /var/www/html/cacti
[root@enos cacti]# ls -la
total 760
drwxr-xr-x 11 lb lb 4096 Apr 26 20:47 .
drwxr-xr-x 3 root root 4096 May 15 17:23 ..
-rw-r--r-- 1 lb lb 5892 Apr 26 20:47 about.php
-rw-r--r-- 1 lb lb 4773 Apr 26 20:47 auth_changepassword.php
-rw-r--r-- 1 lb lb 6171 Apr 26 20:47 auth_login.php
-rw------- 1 lb lb 171381 Apr 26 20:47 cacti.sql
-rw-r--r-- 1 lb lb 11832 Apr 26 20:47 cdef.php
-rw-r--r-- 1 lb lb 15743 Apr 26 20:47 cmd.php
-rw-r--r-- 1 lb lb 5569 Apr 26 20:47 color.php
-rw-r--r-- 1 lb lb 16107 Apr 26 20:47 data_input.php
-rw-r--r-- 1 lb lb 25693 Apr 26 20:47 data_queries.php
-rw-r--r-- 1 lb lb 39237 Apr 26 20:47 data_sources.php
-rw-r--r-- 1 lb lb 24717 Apr 26 20:47 data_templates.php
drwxr-xr-x 5 lb lb 4096 Apr 26 20:47 docs
-rw-r--r-- 1 lb lb 5762 Apr 26 20:47 gprint_presets.php
-rw-r--r-- 1 lb lb 2942 Apr 26 20:47 graph_image.php
-rw-r--r-- 1 lb lb 9687 Apr 26 20:47 graph.php
-rw-r--r-- 1 lb lb 6318 Apr 26 20:47 graph_settings.php
-rw-r--r-- 1 lb lb 10057 Apr 26 20:47 graphs_items.php
-rw-r--r-- 1 lb lb 29957 Apr 26 20:47 graphs_new.php
-rw-r--r-- 1 lb lb 41889 Apr 26 20:47 graphs.php
-rw-r--r-- 1 lb lb 9428 Apr 26 20:47 graph_templates_inputs.php
-rw-r--r-- 1 lb lb 16125 Apr 26 20:47 graph_templates_items.php
-rw-r--r-- 1 lb lb 18376 Apr 26 20:47 graph_templates.php
-rw-r--r-- 1 lb lb 12581 Apr 26 20:47 graph_view.php
-rw-r--r-- 1 lb lb 26483 Apr 26 20:47 host.php
-rw-r--r-- 1 lb lb 13225 Apr 26 20:47 host_templates.php
drwxr-xr-x 2 lb lb 4096 Apr 26 20:47 images
drwxr-xr-x 5 lb lb 4096 May 15 18:32 include
-rw-r--r-- 1 lb lb 2271 Apr 26 20:47 index.php
drwxr-xr-x 2 lb lb 4096 Apr 26 20:47 install
drwxr-xr-x 3 lb lb 4096 Apr 26 20:47 lib
-rw-r--r-- 1 lb lb 15141 Apr 26 20:47 LICENSE
drwxr-xr-x 2 lb lb 4096 Apr 26 20:47 log
-rw-r--r-- 1 lb lb 1796 Apr 26 20:47 logout.php
-rw-r--r-- 1 lb lb 8770 Apr 26 20:47 poller.php
-rw-r--r-- 1 lb lb 72 Apr 26 20:47 README
drwxr-xr-x 5 lb lb 4096 Apr 26 20:47 resource
drwxr-xr-x 2 lb lb 4096 Apr 26 20:47 rra
-rw-r--r-- 1 lb lb 6068 Apr 26 20:47 rra.php
drwxr-xr-x 2 lb lb 4096 Apr 26 20:47 scripts
-rw-r--r-- 1 lb lb 6603 Apr 26 20:47 script_server.php
-rw-r--r-- 1 lb lb 353 Apr 26 20:47 script_server.pl
-rw-r--r-- 1 lb lb 4832 Apr 26 20:47 settings.php
-rw-r--r-- 1 lb lb 6813 Apr 26 20:47 templates_export.php
-rw-r--r-- 1 lb lb 5843 Apr 26 20:47 templates_import.php
-rw-r--r-- 1 lb lb 16167 Apr 26 20:47 tree.php
-rw-r--r-- 1 lb lb 26373 Apr 26 20:47 user_admin.php
-rw-r--r-- 1 lb lb 9841 Apr 26 20:47 utilities.php
[root@enos cacti]#
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run the poller as the user you are in cron and see if it give you any hints as to what is wrong.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Post by linebacker »

Hi Tony,
How do I run the poller? Not sure if this is right, but below is output from command: php php.poller from the cacti directory:


[lb@enos cacti]$ php poller.php
sh: /usr/bin/rrdtool: is a directory
Missing object name
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

OPTIONS:
-h, --help display this help message
-H display configuration file directives understood
-v 1|2c|3 specifies SNMP version to use
-V, --version display package version number
SNMP Version 1 or 2c specific
-c COMMUNITY set the community string
SNMP Version 3 specific
-a PROTOCOL set authentication protocol (MD5|SHA)
-A PASSPHRASE set authentication protocol pass phrase
-e ENGINE-ID set security engine ID (e.g. 800000020109840301)
-E ENGINE-ID set context engine ID (e.g. 800000020109840301)
-l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
-n CONTEXT set context name (e.g. bridge1)
-u USER-NAME set security name (e.g. bert)
-x PROTOCOL set privacy protocol (DES|AES)
-X PASSPHRASE set privacy protocol pass phrase
-Z BOOTS,TIME set destination engine boots/time
General communication options
-r RETRIES set the number of retries
-t TIMEOUT set the request timeout (in seconds)
Debugging
-d dump input/output packets in hexadecimal
-D TOKEN[,...] turn on debugging output for the specified TOKENs
(ALL gives extremely verbose debugging output)
General options
-m MIB[:...] load given list of MIBs (ALL loads everything)
-M DIR[:...] look in given list of directories for MIBs
-P MIBOPTS Toggle various defaults controlling MIB parsing:
u: allow the use of underlines in MIB symbols
c: disallow the use of "--" to terminate comments
d: save the DESCRIPTIONs of the MIB objects
e: disable errors when MIB symbols conflict
w: enable warnings when MIB symbols conflict
W: enable detailed warnings when MIB symbols conflict
R: replace MIB symbols from latest module
-O OUTOPTS Toggle various defaults controlling output display:
a: print all strings in ascii format
b: do not break OID indexes down
e: print enums numerically
E: escape quotes in string indices
f: print full OIDs on output
n: print OIDs numerically
q: quick print for easier parsing
Q: quick print with equal-signs
s: print only last symbolic element of OID
S: print MIB module-id plus last element
t: print timeticks unparsed as numeric integers
T: print human-readable text along with hex strings
u: print OIDs using UCD-style prefix suppression
U: don't print units
v: print values only (not OID = value)
x: print all strings in hex format
X: extended index format
-I INOPTS Toggle various defaults controlling input parsing:
b: do best/regex matching to find a MIB node
h: don't apply DISPLAY-HINTs
r: do not check values for range/type legality
R: do random access to OID labels
u: top-level OIDs must have '.' prefix (UCD-style)
s SUFFIX: Append all textual OIDs with SUFFIX before parsing
S PREFIX: Prepend all textual OIDs with PREFIX before parsing
-L LOGOPTS Toggle various defaults controlling logging:
e: log to standard error
o: log to standard output
f file: log to the specified file
s facility: log to syslog (via the specified facility)

(variants)
[EO] pri: log to standard error/output for level 'pri' and above
[EO] p1-p2: log to standard error/output for levels 'p1' to 'p2'
[FS] pri token: log to file/syslog for level 'pri' and above
[FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
-C APPOPTS Set various application specific behaviours:
f: do not fix errors and retry the request
Missing object name
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

OPTIONS:
-h, --help display this help message
-H display configuration file directives understood
-v 1|2c|3 specifies SNMP version to use
-V, --version display package version number
SNMP Version 1 or 2c specific
-c COMMUNITY set the community string
SNMP Version 3 specific
-a PROTOCOL set authentication protocol (MD5|SHA)
-A PASSPHRASE set authentication protocol pass phrase
-e ENGINE-ID set security engine ID (e.g. 800000020109840301)
-E ENGINE-ID set context engine ID (e.g. 800000020109840301)
-l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
-n CONTEXT set context name (e.g. bridge1)
-u USER-NAME set security name (e.g. bert)
-x PROTOCOL set privacy protocol (DES|AES)
-X PASSPHRASE set privacy protocol pass phrase
-Z BOOTS,TIME set destination engine boots/time
General communication options
-r RETRIES set the number of retries
-t TIMEOUT set the request timeout (in seconds)
Debugging
-d dump input/output packets in hexadecimal
-D TOKEN[,...] turn on debugging output for the specified TOKENs
(ALL gives extremely verbose debugging output)
General options
-m MIB[:...] load given list of MIBs (ALL loads everything)
-M DIR[:...] look in given list of directories for MIBs
-P MIBOPTS Toggle various defaults controlling MIB parsing:
u: allow the use of underlines in MIB symbols
c: disallow the use of "--" to terminate comments
d: save the DESCRIPTIONs of the MIB objects
e: disable errors when MIB symbols conflict
w: enable warnings when MIB symbols conflict
W: enable detailed warnings when MIB symbols conflict
R: replace MIB symbols from latest module
-O OUTOPTS Toggle various defaults controlling output display:
a: print all strings in ascii format
b: do not break OID indexes down
e: print enums numerically
E: escape quotes in string indices
f: print full OIDs on output
n: print OIDs numerically
q: quick print for easier parsing
Q: quick print with equal-signs
s: print only last symbolic element of OID
S: print MIB module-id plus last element
t: print timeticks unparsed as numeric integers
T: print human-readable text along with hex strings
u: print OIDs using UCD-style prefix suppression
U: don't print units
v: print values only (not OID = value)
x: print all strings in hex format
X: extended index format
-I INOPTS Toggle various defaults controlling input parsing:
b: do best/regex matching to find a MIB node
h: don't apply DISPLAY-HINTs
r: do not check values for range/type legality
R: do random access to OID labels
u: top-level OIDs must have '.' prefix (UCD-style)
s SUFFIX: Append all textual OIDs with SUFFIX before parsing
S PREFIX: Prepend all textual OIDs with PREFIX before parsing
-L LOGOPTS Toggle various defaults controlling logging:
e: log to standard error
o: log to standard output
f file: log to the specified file
s facility: log to syslog (via the specified facility)

(variants)
[EO] pri: log to standard error/output for level 'pri' and above
[EO] p1-p2: log to standard error/output for levels 'p1' to 'p2'
[FS] pri token: log to file/syslog for level 'pri' and above
[FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
-C APPOPTS Set various application specific behaviours:
f: do not fix errors and retry the request
Content-type: text/html
X-Powered-By: PHP/4.3.9

05/17/2005 03:34:23 PM - SYSTEM STATS: Time: 9.4953 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 7, Hosts/Process: 7
[lb@enos cacti]$
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You did it right... Now what that output tell me is that you have the paths set wrong in Cacti.

At the command line run the following and note the results, we are going to use the in the cacti settings.

Code: Select all

which snmpwalk
which snmpget
which rrdtool
If you get not found or no results on rrdtool, I would suggest that it is locate in /usr/local/rrdtool/bin/rrdtool. But you need to confirm that that is the location of the rrdtool binary.

Now, go into cacti web interface and goto Settings->Paths.

Update those paths to reflect the paths the utilities.

Rerun the poller, and post the output here. ;)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Post by linebacker »

[lb@enos ~]$ which snmpwalk
/usr/bin/snmpwalk
[lb@enos ~]$ which snmpget
/usr/bin/snmpget
[lb@enos ~]$ which rrdtool
/usr/bin/which: no rrdtool in (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/u
sr/X11R6/bin:/home/lb/bin)
[lb@enos ~]$

But I know it's here, located in /usr/bin/rrdtool:
[lb@enos ~]$ cd /usr/bin/rrdtool
[lb@enos rrdtool]$ ls
acinclude.m4 config.h.in COPYRIGHT Makefile.am rrdtool.spec
aclocal.m4 config.sub depcomp Makefile.in src
bindings configure doc missing THREADS
CHANGES configure.ac examples NEWS TODO
compile CONTRIBUTORS install-sh NT-BUILD-TIPS.txt
config.guess COPYING ltmain.sh README
[lb@enos rrdtool]$

Not sure what to do now, since I see it located where I have it set, but it doesn't know it's there?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Did you compile RRDTool?

I would suggest that you remove that directory, ungzip it and untar it to a temporary location. From that directory, run ./configure, then make, then make test, then make install. It will probably install to /usr/local/rrdtool-1.0.49 or something like that.

Read the README file in the temporary directory.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Post by linebacker »

I tried what you suggested, but I'm afraid I'm kind of lost here, see below. I checked the doc within the directory but not sure what this error is telling me. You are correct that I did not compile rrdtool to begin with, I didn't know I had to. I really appreciate your help so far!!

[root@enos lb]# cd rrdtool
[root@enos rrdtool]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@enos rrdtool]# make
make: *** No targets specified and no makefile found. Stop.
[root@enos rrdtool]#

Here is the config.log:
[root@enos rrdtool]# less config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by rrdtool configure 1.2.6, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = enos
uname -m = i686
uname -r = 2.6.9-1.667
uname -s = Linux
uname -v = #1 Tue Nov 2 14:41:25 EST 2004

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /home/lb/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1563: checking build system type
configure:1581: result: i686-pc-linux-gnu
configure:1589: checking host system type
configure:1603: result: i686-pc-linux-gnu
configure:1611: checking target system type
configure:1625: result: i686-pc-linux-gnu
configure:1653: checking for a BSD-compatible install
configure:1708: result: /usr/bin/install -c
configure:1719: checking whether build environment is sane
configure:1762: result: yes
configure:1827: checking for gawk
configure:1843: found /bin/gawk
configure:1853: result: gawk
configure:1863: checking whether make sets $(MAKE)
configure:1883: result: yes
configure:2119: checking for gcc
configure:2148: result: no
configure:2199: checking for cc
configure:2228: result: no
configure:2241: checking for cc
configure:2287: result: no
configure:2340: checking for cl
configure:2369: result: no
configure:2383: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_RRDGRAPH_YLEGEND_ANGLE_set=
ac_cv_env_RRDGRAPH_YLEGEND_ANGLE_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/lb/rrdtool/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/lb/rrdtool/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/lb/rrdtool/missing --run autoconf'
AUTOHEADER='${SHELL} /home/lb/rrdtool/missing --run autoheader'
AUTOMAKE='${SHELL} /home/lb/rrdtool/missing --run automake-1.9'
AWK='gawk'
BUILD_MULTITHREAD_FALSE=''
BUILD_MULTITHREAD_TRUE=''
BUILD_RRDCGI_FALSE=''
BUILD_RRDCGI_TRUE=''
CC=''
CCDEPMODE=''
CFLAGS=''
COMP_PERL=''
COMP_TCL_FALSE=''
COMP_TCL_TRUE=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/lb/rrdtool/missing --run makeinfo'
MULTITHREAD_CFLAGS=''
MULTITHREAD_LDFLAGS=''
NROFF=''
OBJEXT=''
PACKAGE='rrdtool'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='rrdtool'
PACKAGE_STRING='rrdtool 1.2.6'
PACKAGE_TARNAME='rrdtool'
PACKAGE_VERSION='1.2.6'
PATH_SEPARATOR=':'
PERL=''
PERLCC=''
PERLFLAGS=''
PERL_MAKE_OPTIONS=''
PERL_VERSION=''
PKGCONFIG=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
RRDGRAPH_YLEGEND_ANGLE=''
RRD_DEFAULT_FONT=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TCL_LD_SEARCH_FLAGS=''
TCL_PACKAGE_PATH=''
TCL_PREFIX=''
TCL_SHLIB_CFLAGS=''
TCL_SHLIB_LD=''
TCL_SHLIB_SUFFIX=''
TROFF=''
VERSION='1.2.6'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
acx_pthread_config=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/lb/rrdtool/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "rrdtool"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "rrdtool"
#define PACKAGE_STRING "rrdtool 1.2.6"
#define PACKAGE_TARNAME "rrdtool"
#define PACKAGE_VERSION "1.2.6"
#define VERSION "1.2.6"

configure: exit 1
linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Post by linebacker »

Ok, formatted my server and started over. Have everything installed and rrdtool compiled and poller/etc. is working like a champ. The only issue I have is that when you go to look at device graphs, the first page still has that goofy magnifying glass, BUT, if you click on one of the graphs to get detail, those particular graphs are there. I've gone through the options and can't figure out why the main page for the device doesn't draw, but when you drill down you get graphs??
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you editing the Graph Tree to add your new hosts?

Are you running the poller from cron every 5 minutes?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Post by linebacker »

Hi Tony,
Yep, polling every 5 minutes, stuff is on the graph tree. When I click on the magnifying glass, then the wrench, I see:

/usr/local/rrdtool-1.2.7/bin/rrdtool graph - \
--imgformat=PNG \
--start=1116510267 \
--end=1116596667 \
--title="SWBUTKUS - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2005/05/19 09:44:27 To 2005/05/20 09:44:27\c" \
COMMENT:" \n" \
--vertical-label="percent" \
DEF:a="/var/www/html/cacti/rra/swbutkus_5min_cpu_13.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"

I checked the httpd error_log and see:
ERROR: Garbage ':44:27 To 2005/05/20 09:44:27\c' after command:
COMMENT:From 2005/05/19 09:44:27 To 2005/05/20 09:44:27\c
ERROR: Garbage ':44:27 To 2005/05/20 09:44:27\c' after command:
COMMENT:From 2005/05/19 09:44:27 To 2005/05/20 09:44:27\c
ERROR: Garbage ':44:27 To 2005/05/20 09:44:27\c' after command:
COMMENT:From 2005/05/19 09:44:27 To 2005/05/20 09:44:27\c
ERROR: Garbage ':44:27 To 2005/05/20 09:44:27\c' after command:
COMMENT:From 2005/05/19 09:44:27 To 2005/05/20 09:44:27\c

If I click on the text and not the magnifying glass thing (for instance to see the CPU utilization), it drills down and shows the graphs just perfect.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Version of:

rrdtool
php

?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
linebacker
Posts: 18
Joined: Sun May 15, 2005 6:12 pm

Post by linebacker »

Hi Tony,

rrdtool-1.2.7
not sure on php version, I don't know how to tell what version. It came bundled with Fedora Core 3 install.

Very strange, the default page for each monitored device just shows the magnifying glass and object title, but if you click the object title (to get detail), those graphs are there. Just not the main page/default graphs.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Do you have your RRDTool version set correctly in cacti? It's on the paths page of the settings.

PHP version... Type

Code: Select all

 php -v
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests