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

SuSe Install - > No Graph

Post by macdonaldc »

Greetings everyone,

I have successfully installed Cacti but there are no graphs being displayed. Here are the steps and what i did to accomplish where im at.

installed the following from SuSe 10

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


download cacti and gunzip/tar/mv into folder = /srv/www/htdocs/cacti/

Connect to mysql

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

back into /srv/www/htdocs/cacti/ with this command

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

edit config.php in cacti folder to reflect mysql

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

added this line into cron

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

logged in but with no graphs

under the console i have 1 device listed

Status Unknown 127.0.0.1 0 0 100%

Could it be something with snmp? i didnt config that at all as i didnt see that in any instructions.

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

Post by macdonaldc »

Well i should have read the manual a bit better..Doh!

Using the php poller.php command got the graphs ...... but know data :<

If anyone can help please let me know......ill keep reading.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Wait for some polling cycles to complete... :D
[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]
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

Is there some other info i can provide to you to confirm that i have everything inplace. Its been awile and still nothing.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Are you inspecting the cacti.log for errors?
[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]
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

I hope its enough to troubleshoot.

linux:/etc # cd /srv/www/htdocs/cacti
linux:/srv/www/htdocs/cacti # php poller.php
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
11/08/2005 11:44:40 AM - SYSTEM STATS: Time:1.0191 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7


Cacti Log File

11/08/2005 11:23:53 AM - SYSTEM STATS: Time:1.0819 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
11/08/2005 10:15:20 AM - SYSTEM STATS: Time:1.0261 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
11/08/2005 09:59:07 AM - SYSTEM STATS: Time:1.1351 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7


SNMP Cache
empty


poller Cache

Data Source: Localhost - Memory - Free
RRD: /srv/www/htdocs/cacti/rra/localhost_mem_buffers_3.rrd
Action: 1, Script: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl MemFree:
Data Source: Localhost - Memory - Free Swap
RRD: /srv/www/htdocs/cacti/rra/localhost_mem_swap_4.rrd
Action: 1, Script: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl SwapFree:
Data Source: Localhost - Load Average
RRD: /srv/www/htdocs/cacti/rra/localhost_load_1min_5.rrd
Action: 1, Script: perl /srv/www/htdocs/cacti/scripts/loadavg_multi.pl
Data Source: Localhost - Logged in Users
RRD: /srv/www/htdocs/cacti/rra/localhost_users_6.rrd
Action: 1, Script: perl /srv/www/htdocs/cacti/scripts/unix_users.pl
Data Source: Localhost - Processes
RRD: /srv/www/htdocs/cacti/rra/localhost_proc_7.rrd
Action: 1, Script: perl /srv/www/htdocs/cacti/scripts/unix_processes.pl
Data Source: Localhost - Memory - Free
RRD: /srv/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd
Action: 1, Script: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl MemFree:
Data Source: Localhost - Memory - Free Swap
RRD: /srv/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd
Action: 1, Script: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl SwapFree:

Also when i use snmpnetstat command this is what i get

linux:/srv/www/htdocs/cacti # snmpnetstat
Missing host name.
linux:/srv/www/htdocs/cacti #
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um... turn your poller logging up to Debug and post one round of the poller running from cacti.log
[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]
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

Thanks for looking at this for me.

linux:/usr/bin # cd /srv/www/htdocs/cacti
linux:/srv/www/htdocs/cacti # php poller.php
11/08/2005 01:06:47 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /srv/www/htdocs/cacti/cmd.php 0 1]
Waiting on 1/1 pollers.
11/08/2005 01:06:48 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.02'
[map 1min->load_1min]
11/08/2005 01:06:48 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.12'
[map 5min->load_5min]
11/08/2005 01:06:48 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.15
' [map 10min->load_15min]
11/08/2005 01:06:48 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /s
rv/www/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 11314
80407:89096
11/08/2005 01:06:48 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /s
rv/www/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1131480407:
1020088
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
11/08/2005 01:06:48 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /s
rv/www/htdocs/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min
:load_15min 1131480407:0.02:0.12:0.15
11/08/2005 01:06:48 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /s
rv/www/htdocs/cacti/rra/localhost_users_6.rrd --template users 1131480407:2
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
11/08/2005 01:06:48 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /s
rv/www/htdocs/cacti/rra/localhost_proc_7.rrd --template proc 1131480407:113
OK u:0.00 s:0.00 r:1.01
11/08/2005 01:06:48 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /s
rv/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd --template mem_buffers 11314
80407:89080
OK u:0.00 s:0.00 r:1.01
11/08/2005 01:06:48 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /s
rv/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd --template mem_swap 1131480407:
1020088
OK u:0.00 s:0.00 r:1.01
11/08/2005 01:06:48 PM - SYSTEM STATS: Time:1.0623 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
11/08/2005 01:06:48 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /srv/www/htdocs/cacti/poller_commands.php]
11/08/2005 01:06:48 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /srv/www/htdocs/cacti/poller_export.php]
linux:/srv/www/htdocs/cacti #
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Log looks good....

SELinux enabled and enforced?

http://forums.cacti.net/viewtopic.php?t=7759
[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]
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

I unfortunatly dont have that file. :o


Could it be something with snmp? im curious why there is no information in the log.

Thoughts?


/usr/bin/snmpwalk
/usr/bin/snmpget
/usr/bin/rrdtool
/usr/bin/php
/srv/www/htdocs/cacti/log/cacti.log



linux:/srv/www/htdocs/cacti # snmpwalk -H
Configuration directives understood:
No log handling enabled - turning on stderr logging
In snmpwalk.conf and snmpwalk.local.conf:
includeRequested (1|yes|true|0|no|false)
excludeRequested (1|yes|true|0|no|false)
printStatistics (1|yes|true|0|no|false)
dontCheckOrdering (1|yes|true|0|no|false)
timeResults (1|yes|true|0|no|false)
In snmp.conf and snmp.local.conf:
doDebugging (1|0)
debugTokens token[,token...]
logTimestamp (1|yes|true|0|no|false)
mibdirs [mib-dirs|+mib-dirs|-mib-dirs]
mibs [mib-tokens|+mib-tokens]
mibfile mibfile-to-read
showMibErrors (1|yes|true|0|no|false)
strictCommentTerm (1|yes|true|0|no|false)
mibAllowUnderline (1|yes|true|0|no|false)
mibWarningLevel integerValue
mibReplaceWithLatest (1|yes|true|0|no|false)
printNumericEnums (1|yes|true|0|no|false)
printNumericOids (1|yes|true|0|no|false)
escapeQuotes (1|yes|true|0|no|false)
dontBreakdownOids (1|yes|true|0|no|false)
quickPrinting (1|yes|true|0|no|false)
numericTimeticks (1|yes|true|0|no|false)
oidOutputFormat integerValue
suffixPrinting integerValue
extendedIndex (1|yes|true|0|no|false)
printHexText (1|yes|true|0|no|false)
printValueOnly (1|yes|true|0|no|false)
dontPrintUnits (1|yes|true|0|no|false)
hexOutputLength integerValue
dumpPacket (1|yes|true|0|no|false)
reverseEncodeBER (1|yes|true|0|no|false)
defaultPort integerValue
defCommunity string
noTokenWarnings (1|yes|true|0|no|false)
noRangeCheck (1|yes|true|0|no|false)
persistentDir string
tempFilePattern string
noDisplayHint (1|yes|true|0|no|false)
16bitIDs (1|yes|true|0|no|false)
clientaddr string
serverSendBuf integerValue
serverRecvBuf integerValue
clientSendBuf integerValue
clientRecvBuf integerValue
defSecurityModel string
defSecurityName string
defContext string
defPassphrase string
defAuthPassphrase string
defPrivPassphrase string
defAuthMasterKey string
defPrivMasterKey string
defAuthLocalizedKey string
defPrivLocalizedKey string
defVersion 1|2c|3
defAuthType MD5|SHA
defPrivType DES (AES support not available)
defSecurityLevel noAuthNoPriv|authNoPriv|authPriv
In snmpapp.conf and snmpapp.local.conf:
engineID string
engineIDType num
engineIDNic string
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

Could you post a screenshot of your graph management section with graph debbuging on?
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

Please see attached. Im not sure if this is what you mean.
Attachments
screen Shot 3
screen Shot 3
3.PNG (36.41 KiB) Viewed 9483 times
SreenShot
SreenShot
1.PNG (21.74 KiB) Viewed 9484 times
Screen Shot 2
Screen Shot 2
2.PNG (27.66 KiB) Viewed 9484 times
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

Here is another
Attachments
4.PNG
4.PNG (55.95 KiB) Viewed 9479 times
macdonaldc
Posts: 25
Joined: Thu Nov 10, 2005 12:00 am

Post by macdonaldc »

Okay here is another tidbit. I just did the exact same steps on another computer. I ended up with the exact same issue.

Here is a pic from yast that shows both mysql and snmp is running.
Attachments
Screenshot.png
Screenshot.png (138.82 KiB) Viewed 9469 times
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

I'm guessing that your rra/ folder and all the files under it are owned by cacti?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest