No images shown or statistics

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

Moderators: Developers, Moderators

Post Reply
Fenixoid
Posts: 4
Joined: Fri Jun 08, 2007 3:58 am

No images shown or statistics

Post by Fenixoid »

Hello,

i installed cacti with net-snmtp V3. Ant there ane no images displayed.

screenshot:
http://fenixoid.projektas.lt/cacti/non1.JPG
http://fenixoid.projektas.lt/cacti/non3.JPG

Config with sntp V3:

net-snmp-config --create-snmpv3-user -a "mypassword" my_user
ln -s /usr/share/snmp/snmpd.conf /etc/snmp/snmpd.conf

/etc/snmp/snmpd.conf :
rwuser snmp


Debug info say, uit has to work, snmp also works:
http://fenixoid.projektas.lt/cacti/non4.JPG

Maby it's of php's disabled functions?

disable_functions = shell_exec,proc_close,proc_get_status,proc_open,popen,pclose,system,passthru,escapeshellarg,escapeshellcmd,fork,symlink,dl,phpinfo

?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

have you run the poller at least once ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
tim033
Posts: 6
Joined: Fri Jun 08, 2007 4:49 am

Post by tim033 »

I have the same problem.
When try to debug the graph i get the follow command
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="mrtg.gijon.local - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="processes in the run queue" \
--slope-mode \
DEF:a="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:c="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1181296029,GT,a,a,UN,0,a,IF,IF,TIME,1181296029,GT,b,b,UN,0,b,IF,IF,TIME,1181296029,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#EACC00:"1 Minute Average" \
GPRINT:a:LAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
AREA:c#FF0000:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000:""
RRDTool Says:

ERROR: opening '/usr/share/cacti/rra/localhost_load_1min_5.rrd': Permis


Obviously, this path exist, and they have set 777 permission.
I dont found what happend.

PD. Sorry for use your threat :D
Fenixoid
Posts: 4
Joined: Fri Jun 08, 2007 3:58 am

Post by Fenixoid »

fmangeant wrote:Hi

have you run the poller at least once ?
vixie cron is set to:

*/5 * * * * php /var/www/localhost/htdocs/cacti/poller.php > /dev/null 2>&1

everything was installed two days ago.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you try to provide the full path to php in your crontab entry ?

Also, can you run the poller once by hand :

Code: Select all

$ php /var/www/localhost/htdocs/cacti/poller.php
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Fenixoid
Posts: 4
Joined: Fri Jun 08, 2007 3:58 am

Post by Fenixoid »

box ~ # php /var/www/localhost/htdocs/cacti/poller.php

Warning: exec() has been disabled for security reasons in /var/www/localhost/htdocs/cacti/lib/poller.php on line 127

Warning: popen() has been disabled for security reasons in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 40

I deleted shell_exec, popen from disabled function list, but no effect.

How to run this stuff in safe, secure mode? I don't want to leave shell_exec, exec, popen function available.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Is it a Linux box with SELinux enabled ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Fenixoid
Posts: 4
Joined: Fri Jun 08, 2007 3:58 am

Post by Fenixoid »

No, it's gentoo simple dedicated server, just some advanced security (php, snort, mod_security...)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests