TempTrax history

Celeste Hilliard celeste at startech.org
Tue Nov 12 00:05:56 CET 2002


I'm glad you told me to use MRTG, because I only thought it would work with
routers... Anyway, I am having a problem when I run my mrtgfile.cfg at the
command prompt.  I get an error on the line that says, "(YLegend [Temp]:
Deg. F) in config file /path/to/config does not make sense" Have you run
into this before?

Thank you,
Celeste

-----Original Message-----
From: jmarquart at planalytics.com [mailto:jmarquart at planalytics.com]
Sent: Wednesday, November 06, 2002 12:38 PM
To: Celeste Hilliard
Cc: 'nagios-users at lists.sourceforge.net'
Subject: Re: [Nagios-users] TempTrax history




i have done it w/ mrtg.

this is probably not the most elegant, but was simple for me.  (I actually
do
graphs of most services in a similar fashion)

define service{
     use generic
     host_name    HOST
     service_description DATACENTER temp
     check_command  check_temptrax!75!80
}


define command{
     command_name check_temptrax
     command_line   $USER1$/check_temptrax -w $ARG1$ -c $ARG2$  -f 1 -S 1
     }


this provides my lines in the status.log that I can parse using the
following
mrtg.conf:

Target[datacenter_temp]: `grep ";HOST;DATACENTER temp;" /path/to/status.log
|
awk -F= '{print $2}' | awk '{print $1"\n0\n\n";}'`
Title[datacenter_temp]: Datacenter Temp
MaxBytes[datacenter_temp]: 100
PageTop[datacenter_temp]: <h1> Datacenter Temp</h1>
YLegend[datacenter_temp]: Deg. F
LegendI[datacenter_temp]: Deg. F
ShortLegend[datacenter_temp]:
Options[datacenter_temp]: gauge,nopercent,noo


then i add a crontab entry to do "mrtg datacenter_mrtf.conf" every5 minutes.

works for me fairly well.

given the lack of performance data in the plugins when i started this, I
ended
up creating (some very ugly, but effective) scripts to generate mrtg.confs
able
to create graphs for the services i was most intersted in.

-john






Celeste Hilliard <celeste at startech.org> on 11/06/2002 12:41:58 PM




To:   "'nagios-users at lists.sourceforge.net'"
      <nagios-users at lists.sourceforge.net>
cc:    (bcc: John J. der Schalla Marquart/Planalytics)

Subject:  [Nagios-users] TempTrax history




I have one temptrax device connected to my RH 7.3 server.  I am monitoring 2
sensors using the Netsaint/Nagios plug-in in Nagios 1.0b6.  I would like to
log all of the temperature readings and put them into a graph for a
temperature history.  Has anyone tried to do this?  If so, what did you try
and did it work?

Thank you,
Celeste Hilliard
STARTech Early Ventures
http://www.startechev.com <http://www.startechev.com/>
celeste at startechev.com
Office: 214-576-9812





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list