Shamsul Kamal
asked on
Setup Cacti on remote server
Hi,
I have installing a Cacti on Ubuntu host. I managed to setup the Cacti.
The problem is, i cannot monitor remote server. The remote server is running Centos. I already install snmp on remote server and configure it. But i cannot find what goes wrong. The UDP port 161 is already open at firewall side.
I also refer to:
http://www.playingwithwire.com/2007/06/monitoring-remote-hosts-with-cacti/
http://forums.solidhost.com/showthread.php?p=1619
But i'm disappointed it not producing any graph.
Anybody have suggestion?
Adi.S
I have installing a Cacti on Ubuntu host. I managed to setup the Cacti.
The problem is, i cannot monitor remote server. The remote server is running Centos. I already install snmp on remote server and configure it. But i cannot find what goes wrong. The UDP port 161 is already open at firewall side.
I also refer to:
http://www.playingwithwire.com/2007/06/monitoring-remote-hosts-with-cacti/
http://forums.solidhost.com/showthread.php?p=1619
But i'm disappointed it not producing any graph.
Anybody have suggestion?
Adi.S
ASKER
Yes, the snmpwalk -c public -v2c <ip address of remote box> able to give response.
The only problem is that the cacti , cannot display the graph image, i can see the graph is generated, but the graph image is not available.
Does it because of the php GD or other issue ?
The only problem is that the cacti , cannot display the graph image, i can see the graph is generated, but the graph image is not available.
Does it because of the php GD or other issue ?
If the web server user is able to write to the rrd directory it should be fine.
In Cacti check out "Utilities -> System Utilities -> View Poller Cache" and see if you graph is listed in there, also check that the Cacti Log isn't reporting any errors. Running the graph generation in debug mode can also help you track down problems.
Graph Management -> Select Graph -> *Turn On Graph Debug Mode to left to see if the rrd file exists where it should and any errors being reported by rrdtool.
In Cacti check out "Utilities -> System Utilities -> View Poller Cache" and see if you graph is listed in there, also check that the Cacti Log isn't reporting any errors. Running the graph generation in debug mode can also help you track down problems.
Graph Management -> Select Graph -> *Turn On Graph Debug Mode to left to see if the rrd file exists where it should and any errors being reported by rrdtool.
ASKER
Hi,
I found the following , may i know how to fixed it ?
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Switch Rack G4 - Traffic - 1/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/usr/share/cacti/si te/rra/swi tch_rack_g 4_traffic_ in_81.rrd" :traffic_i n:AVERAGE \
DEF:b="/usr/share/cacti/si te/rra/swi tch_rack_g 4_traffic_ in_81.rrd" :traffic_o ut:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound " \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Aver age\:%8.2l f %s" \
GPRINT:cdefa:MAX:"Maximum\ :%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbou nd" \
GPRINT:cdefe:LAST:"Current \:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Aver age\:%8.2l f %s" \
GPRINT:cdefe:MAX:"Maximum\ :%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/usr/share/cacti/site/rra /switch_ra ck_g4_traf fic_in_81. rrd': No such file or directory
I found the following , may i know how to fixed it ?
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Switch Rack G4 - Traffic - 1/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/usr/share/cacti/si
DEF:b="/usr/share/cacti/si
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Aver
GPRINT:cdefa:MAX:"Maximum\
LINE1:cdefe#002A97:"Outbou
GPRINT:cdefe:LAST:"Current
GPRINT:cdefe:AVERAGE:"Aver
GPRINT:cdefe:MAX:"Maximum\
RRDTool Says:
ERROR: opening '/usr/share/cacti/site/rra
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Does it give any response?