LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2003, 08:04 PM   #1
philsu
LQ Newbie
 
Registered: Aug 2003
Location: Taiwan
Posts: 1

Rep: Reputation: 0
Question how can i verify the threshold value from MRTG


Dear Sirs,
i am a new one from Taiwan,thanks for your help.
I have a problem is how to get the threshold value from MRTG setup,my shell problem is below:
#!/bin/sh
if=$1
threshold=$2
num=$3
number=${num%.*}
typeset -i number
all=`expr $num \* 80`
percent=`expr $all \/ $threshold`
number=`expr $number \* 8`
/usr/bin/printf "Sonet $if 流量異崤`, 請處理.\n目前流出流量為: $number bps. $percent percent \n" | /bin/mail -s "Sonet ATM 流量異崤`通告!!"

but i still can't get any threshold value from MRTG,so can you teach me how to varify it?

Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Temperature above threshold. usaf_sp Linux - Hardware 1 11-12-2005 02:37 PM
Temperature above threshold? Belegdol Linux - Hardware 3 10-20-2005 01:08 AM
temperature above threshold Niflheim Linux - General 13 03-21-2005 08:44 AM
PS/2 mouse Threshold setting karthikrr Slackware 3 11-17-2003 10:00 AM
Increased Tx threshold ghight Linux - Networking 2 08-01-2003 10:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration