[mrtg] Trying to count on-line modems

Dave Parkin parkin at icrf.icnet.uk
Wed Sep 6 14:21:11 MEST 2000


Hi,
I'm wanting to graph the number of modems on a dial-in rack that are
on-line.
I've got the mib and using a mib browser can get the following as a typical
data set:

37: mmmModemStatus.1.8.1 (int32) on-line(1)
38: mmmModemStatus.1.8.2 (int32) oos-switched(5)
39: mmmModemStatus.1.8.3 (int32) on-line(1)
40: mmmModemStatus.1.10.1 (int32) on-line(1)
41: mmmModemStatus.1.10.2 (int32) free(2)
42: mmmModemStatus.1.10.3 (int32) free(2)
43: mmmModemStatus.1.12.1 (int32) on-line(1)
44: mmmModemStatus.1.12.2 (int32) faulty(4)
45: mmmModemStatus.1.12.3 (int32) free(2)

I'd like to count the number of on-line modems and express that as a % of
available modems.
ie:
4 on-line out of 9 possible = 44.44%

I'm struggling to work out how to do this....help!

Dave


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list