You're absolutely right. MRTG is good for only two variables. I have a number of devices and variables that I poll using MRTG as the data collector. It is then fairly trivial to use RRDTool or RRDCGI to handle creating some fairly complex graphs using the MRTG RRDs as the source data. Obviously one can use multiple RRDs for the same graph
My point was only that if MRTG is already used in a Production environment it may be easiest to use it to collect the data itself rahter then reinventing the wheel etc. For example, I already have the MRTG systems in a redundant and fault-tolerant configuration with my NMS configured to receive SNMP traps from the systems and alert / escalate faults accordingly. We have a variety of stock requirements that are more than catered for by MRTG and some more exotic requirements that are dealt with via RRDCGI. (I for one will be happy when VDEFs and the 95 percentile functionality are incorporated in the Stable branch of RRDTool). Thanks SM -----Original Message----- From: Adam Nealis [mailto:[EMAIL PROTECTED] Sent: 11 December 2002 16:09 To: Simon Mullis; 'Dan Gahlinger'; '[email protected]' Subject: Re: [rrd-users] Re: please help a lost newbie Hi, --- Simon Mullis <[EMAIL PROTECTED]> wrote: > > Hi there.... > > If I were you I would use MRTG to perform the data collection for you. AFAIR, MRTG only allows two lines per graph. So a plot of what 20 hosts are doing would be impossible. I may be wrong though... > You can specify a script or command in back ticks as the MRTG Target > for it to perform your script. As long as your script returns data in > the following format all will be fine. > > Format from script should be: > > Variable > Variable > > And in your mrtg.cfg: > > ... > Target[machine_X_users]:`/full/path/to/script/scriptname > <machine_name>` ... > > I'm sure some of the RRDTool purists here would baulk at this idea and > suggest you should call RRDTool directly, but if you already use MRTG > for other things and have the presentation mechanisms then this will > work fine. > > Thanks > > SM > > > -----Original Message----- > From: Dan Gahlinger [mailto:[EMAIL PROTECTED] > Sent: 11 December 2002 14:47 > To: [email protected] > Subject: [rrd-users] please help a lost newbie > > > > Ok I wrote a shell script to collect data from our boxes, simply a > decimal number. All the script does is: finger @host | grep -c tty > > host1.users > > shows the # of users logged into the box > I do this for about 20 boxes, each to a different file > > I've tried reading the docs, faq, etc on the website, but > I just get lost, nothing seems to cover what I want to do. > > How do I get this graphing the data ? > basically every 5 minutes I need something to build the > graph to show the users on the boxes graphed over time > > Dan. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------------------------------------------ Equinox Converged Solutions Limited. Tel: +44 (0)1252 405 600 http://www.equinoxsolutions.com IMPORTANT NOTICE: This message is intended solely for the use of the Individual or organisation to whom it is addressed. It may contain privileged or confidential information. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you should not use, copy, alter, or disclose the contents of this message. All information or opinions expressed in this message and/or any attachments are those of the author and are not necessarily those of Equinox Converged Solutions Limited. Equinox Converged Solutions Limited accepts no responsibility for loss or damage arising from its use, including damage from virus. ------------------------------------------------------------------------------------------ -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
