No images shown or statistics
Moderators: Developers, Moderators
No images shown or statistics
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
?
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
?
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
have you run the poller at least once ?
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]
[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]
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" \
GPRINTLAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00:"5 Minute Average":STACK \
GPRINTLAST:" 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
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" \
GPRINTLAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00:"5 Minute Average":STACK \
GPRINTLAST:" 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
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Can you try to provide the full path to php in your crontab entry ?
Also, can you run the poller once by hand :
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]
[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]
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.
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.
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
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]
[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]
Who is online
Users browsing this forum: No registered users and 2 guests