well, i dived into my growing radiator mailbox and found Steve's solution for
getting mrtg stats out of radiator... i know too little about smntp to see what
all the numbers mean, but i think i'm going to try it out...
-----FW: <[EMAIL PROTECTED]>-----
Date: Wed, 12 May 1999 16:42:50 -0700 (PDT)
Sender: [EMAIL PROTECTED]
From: Stephen Roderick <[EMAIL PROTECTED]>
To: Kevin <[EMAIL PROTECTED]>
Subject: Re: (RADIATOR) MRTG Stats
Cc: [EMAIL PROTECTED]
On Wed, 12 May 1999, Kevin wrote:
>
> Can anyone using MRTG for pulling stats on their Radiator, fill me in on
> what exactly they are able to monitor and how they're going about doing
> it. We currently use MRTG to monitor bandwidth, but I've seen some people
> tweak it for monitoring other interesting stuff...
Well, this is what I do (via a cron job every 5 minutes):
----------------------------------------------------
#!/usr/local/bin/perl
$total = 0;
$accttotal = 0;
open(FD, "/usr/local/bin/snmpwalk host community
.1.3.6.1.3.79.1.1.1.6.1.4 |") or die;
while(<FD>)
{
$total += $1 if (/.* = (\d+)/);
}
close(FD);
open(FD, "/usr/local/bin/snmpwalk host community
.1.3.6.1.3.79.1.1.1.6.1.12 |") or die;
while(<FD>)
{
$accttotal += $1 if (/.* = (\d+)/);
}
close(FD);
$total *= 8;
$accttotal *= 8;
open(FD, ">/stats/radius.stats");
print FD "$total\n$total\n";
close(FD);
open(FD, ">/stats/radiusacct.stats");
print FD "$accttotal\n$accttotal\n";
close(FD);
exit 0;
-----------------------------------------------------------
Then I have the following config for MRTG:
Target[radiator]: `/bin/cat /stats/radius.stats`
MaxBytes[radiator]: 2000
Options[radiator]: nopercent
Title[radiator]: Radius Statistics
PageTop[radiator]: Radius Statistics</H1>
WithPeak[radiator]: dwmy
YLegend[radiator]: No. of queries
ShortLegend[radiator]: queries
LegendI[radiator]: Authentication:
LegendO[radiator]:
#.....................................................................
Target[radacct]: `/bin/cat /stats/radiusacct.stats`
MaxBytes[radacct]: 2000
Options[radacct]: nopercent
Title[radacct]: Radius Statistics
PageTop[radacct]: Radius Statistics</H1>
WithPeak[radacct]: dwmy
YLegend[radacct]: No. of queries
ShortLegend[radacct]: queries
LegendI[radacct]: Accounting:
LegendO[radacct]:
------------------------------------------------------
I'm sure there is a better way but at some point you get tired of trying
to find it and just do something that works.
Have fun,
Steve
===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.
--------------End of forwarded message-------------------------
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.