SuSe Install - > No Graph

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

Moderators: Developers, Moderators

macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

Yes it is.

I used the chown -R cactiuser rra/ log/

-rw-r--r-- 1 root cacti 2271 2005-09-08 17:56 index.php
drwxr-xr-x 2 root cacti 584 2005-09-08 17:56 install
drwxr-xr-x 3 root cacti 992 2005-09-08 17:56 lib
-rw-r--r-- 1 root cacti 15141 2005-09-08 17:56 LICENSE
drwxr-xr-x 2 cactiuser cacti 80 2005-09-08 17:56 log
-rw-r--r-- 1 root cacti 1796 2005-09-08 17:56 logout.php
-rw-r--r-- 1 root cacti 4277 2005-09-08 17:56 poller_commands.php
-rw-r--r-- 1 root cacti 2325 2005-09-08 17:56 poller_export.php
-rw-r--r-- 1 root cacti 8561 2005-09-08 17:56 poller.php
-rw-r--r-- 1 root cacti 71 2005-09-08 17:56 README
drwxr-xr-x 5 root cacti 144 2005-09-08 17:56 resource
drwxr-xr-x 2 cactiuser cacti 296 2005-11-10 17:30 rra
-rw-r--r-- 1 root cacti 6622 2005-09-08 17:56 rra.php
drwxr-xr-x 2 root cacti 728 2005-09-08 17:56 scripts
-rw-r--r-- 1 root cacti 6760 2005-09-08 17:56 script_server.php
-rw-r--r-- 1 root cacti 353 2005-09-08 17:56 script_server.pl
-rw-r--r-- 1 root cacti 4833 2005-09-08 17:56 settings.php
-rw-r--r-- 1 root cacti 6813 2005-09-08 17:56 templates_export.php
-rw-r--r-- 1 root cacti 5843 2005-09-08 17:56 templates_import.php
-rw-r--r-- 1 root cacti 17461 2005-09-08 17:56 tree.php
-rw-r--r-- 1 root cacti 28117 2005-09-08 17:56 user_admin.php
-rw-r--r-- 1 root cacti 10913 2005-09-08 17:56 utilities.php

when i manually run poller.php i get this

testsrv:/srv/www/htdocs/cacti # php poller.php
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
11/10/2005 10:30:01 PM - SYSTEM STATS: Time:1.0253 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.03
OK u:0.00 s:0.00 r:1.06
OK u:0.00 s:0.00 r:1.08
OK u:0.00 s:0.00 r:1.10
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)
testsrv:/srv/www/htdocs/cacti #
User avatar
sumsum
Cacti User
Posts: 68
Joined: Mon Apr 26, 2004 7:18 am
Location: Switzerland
Contact:

Post by sumsum »

have you configured snmpd ?
tschüss
tom
http://www.lounge-radio.com/
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

i left it as default as i thought when i choose to use a Host Template as being generic snmp enabled host it would be good enough.

Is the location correct for the file. I note that it is at the root of /etc.

please see my attached screenshot.

thanks in advance
Attachments
Screenshot.png
Screenshot.png (178.97 KiB) Viewed 3497 times
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

i decided to do a complete format and start from Scratch...Doh!! :o

Whatever....i had to be sure.

Here were my steps...again

required Files

-apache
-php
-php-sessions
-mysql
-rrdtool
-net-snmp

all are running

groupadd cacti
useradd -G cacti cactiuser

mysql> set password for root@localhost=password('rootpw');
mysql> create database cactidb;
mysql> grant all on cactidb.* to root;
mysql> grant all on cactidb.* to root@localhost;
mysql> grant all on cactidb.* to cactiuser;
mysql> grant all on cactidb.* to cactiuser@localhost;
mysql> set password for cactiuser@localhost=password('cactipw');
mysql> exit


mv cacti-0.8.6b cacti/
cd /cacti
/usr/bin/mysql --user=root --password=rootpw cactidb < cacti.sql
chown -R cactiuser rra/ log/


Edit the config.php file

$database_type = "mysql";
$database_default = "cactidb";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipw";

crontab

*/5 * * * * cacti /usr/bin/php /srv/www/htdocs/cacti/poller.php >/dev/null 2>&1

Get updated patches

reboot and Voila.....Nothing... :roll:

PLEASE HELP!

Must be something in my process. I didnt touch anything to do with snmp. to be truthfull...im a newbie so im not sure what i can do other than the defaults.

I also dont think that my cron is working. 2 reasons... one, i dont see anything (at all) in the cacti log and two there are no pics what so ever. What i did before was i ran the php poller.php and yes that would give me a graph but the documentation says not to do that as if done by user other than cacti it would create files that are owned by that user and cause issues with the graphs.

I make everyone a promise.....Help me trouble shoot and i will document it and post it up so that newbies like myself can atleast follow to the point that they can learn from it....PLEASE HELP! i want to get away from Microsoft!!! :evil:
Attachments
screen shot
screen shot
untitled.PNG (6.5 KiB) Viewed 3485 times
screen shot
screen shot
untitled2.PNG (18.71 KiB) Viewed 3485 times
screen shot
screen shot
untitled3.PNG (22.68 KiB) Viewed 3485 times
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 IM? If so, IM me.... See how I can help.
[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]
bambid
Posts: 23
Joined: Thu Nov 02, 2006 3:10 am

Post by bambid »

I had same problem on SLES 10, nothing helped me except this one :

agentaddress tcp:161

Running on udp port was not possible.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest