[mrtg] Re: Can some one..
Larry Sheldon
lsheldon at creighton.edu
Mon Jan 10 04:22:17 MET 2000
> Can some one help me in writing a sample script which provides the data
> to the MRTG. To be more specific I want to try the last option in the
> config.html document.I want to give this script as the Target and the
> script should give the required 4 parameters for MRTG. May be this looks
> like silly question. I apologies for it.
Here is one that grabs the "percent full" number from a file-system
report available on HP-UX named "bdf":
-------------------cut here---------------------------
#!/usr/bin/ksh
first=`bdf ${1} | tail -n 1 | sed 's/\ \ */ /g' | cut -d\ -f 5 | sed 's/%//'`
second=`bdf ${2} | tail -n 1 | sed 's/\ \ */ /g' | cut -d\ -f 5 | sed 's/%//'`
echo ${first}
echo ${second}
echo "Not Available"
echo `uname -n`
-------------------cut here---------------------------
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
. .
- L. F. (Larry) Sheldon, Jr. -
. Unix Systems and Network Administration .
- Creighton University Computer Center-Old Gym -
. 2500 California Plaza .
- Omaha, Nebraska, U.S.A. 68178 Two identifying characterstics -
. lsheldon at creighton.edu of System Administrators: .
- 402 280-2254 (work) Infallibility, and the ability to -
. 402 681-4726 (cellular) learn from their mistakes. .
- 402 332-4622 (residence) -
. http://www.creighton.edu/~lsheldon Adapted from Stephen Pinker .
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list