alexwoehr / nagios2cacti

Automatically exported from code.google.com/p/nagios2cacti
GNU General Public License v2.0
0 stars 0 forks source link

perf data not appearing in cacti #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have this up and running, perf data is being written to
/var/log/nagios/perfdata/ . There is data written to the backlog which is
clearing, so the send perf and server perf seem to be running ok, but the
data seems to be going nowhere.

Do you need to manually create the devices in cacti for this to work?

Do you have further documentation regarding the template setup and how this
works?

Original issue reported on code.google.com by ben.pric...@gmail.com on 9 Jan 2009 at 4:35

GoogleCodeExporter commented 9 years ago
hello, 

you dont need to create device, graph, or anything in cacti, nagios2cacti do it 
for
you! In cacti you modify the graph_template created and associate the host or 
graph
in the graph_tree.

if you use send_perf.pl and server_perf.pl, to communicate via socket, you have 
the
backlog: 
send_perf wrote in this file : 
BACKLOG_DIR=/var/log/nagios/backlog
the data are delete from this folder when the communication to server_perf is
successfull.

when server_perf.pl or perf2rrd.pl have proceed your data, they wrote in archive
directory : 
ARCHIVE_DIR=/var/log/nagios/perfdata

nagios execute send_perf (perfdata command) to communicate perfdata to
server_perf(daemon) who create or update the base rrd and the mysql database of 
cacti.

nagios write in a pipe : 
SERVICE_PERFDATA_PIPE=/var/log/nagios/perfdata.pipe
and perf2rrd.pl write this pipe to get the perfdata. 

pipe is more light, socket is more safe.

what's method have you choice?? and look right on filesystem for pipe, file, 
folder,
it's the main reason to have some trouble where you dont get  your data, and
/var/log/nagios/perfdata.pipe is right a pipe : 
prw-r--r--   1 nagios nagios    0 Jan  9 08:31 perfdata.pipe

same if you use a socket local file:
srwxr-xr-x   1 nagios nagios    0 May 29  2008 perfdata.sock

best regards,
Olivier

Original comment by olivier....@gmail.com on 9 Jan 2009 at 7:31

GoogleCodeExporter commented 9 years ago
It was just the templates that weren't quite right. Hosts are now appearing in 
cacti,
but with graphs blank. I should be able to sort with some playing around.

Once I sort this out I will see if I can do up a doco on this for you.

Original comment by ben.pric...@gmail.com on 9 Jan 2009 at 8:05

GoogleCodeExporter commented 9 years ago
Hello guys...i am trying my best to get this working, but i think in my current 
level i need a more step-by-step documentation =/, anyway great job xD

Original comment by romuloa...@gmail.com on 1 Nov 2010 at 8:15