Solved

Setup Cacti on remote server

Posted on 2009-04-05
5
1,360 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:smksa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:WizRd-Linux
ID: 24073194
From the box that has Cacti installed, are you able to use the command snmpwalk -c public -v2c <ip address of remote box>

Does it give any response?
0
 
LVL 2

Author Comment

by:smksa
ID: 24073944
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 ?
0
 
LVL 13

Expert Comment

by:WizRd-Linux
ID: 24074024
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.
0
 
LVL 2

Author Comment

by:smksa
ID: 24075018
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/site/rra/switch_rack_g4_traffic_in_81.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/switch_rack_g4_traffic_in_81.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/switch_rack_g4_traffic_in_81.rrd': No such file or directory

0
 
LVL 13

Accepted Solution

by:
WizRd-Linux earned 500 total points
ID: 24075201
if the RRD doesn't exist, which it would appear (Check via a shell or file manager first) delete the graph and re-create it.

If it does exist you could be looking at a permissions issue.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Samba using Kerberos to Auth from Active Directory 9 120
The better OS Architecture 13 108
svi stops eigrp advertisement 13 84
DB2 9.7 Grant Execute SP 4 60
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question