讓mrtg抓自己的程式 - BBS
By Hedda
at 2004-09-13T15:30
at 2004-09-13T15:30
Table of Contents
我寫了一個簡單的程式
想讓mrtg抓他的數值
int main()
{
srand(time(0));
int tmp,tmp2=0;
tmp=rand()%100;
tmp2=rand()%tmp;
cout<<tmp2<<endl<<tmp<<endl
return 0;
}
可是很奇怪
mrtg抓到的始終是0
不然就是出現錯誤訊息
說是抓不到東西
到底哪裡出錯了呢?
以下是mrtg.cfg
Target[a]: `/home/www/mrtg/a.out`
MaxBytes[a]: 100
Title[a]: The Count
PageTop[a]: <H1>The Count</H1>
Options[a]: growright
YLegend[a]: Counts
ShortLegend[a]: hits
LegendI[a]: Read
LegendO[a]: Write
--
想讓mrtg抓他的數值
int main()
{
srand(time(0));
int tmp,tmp2=0;
tmp=rand()%100;
tmp2=rand()%tmp;
cout<<tmp2<<endl<<tmp<<endl
return 0;
}
可是很奇怪
mrtg抓到的始終是0
不然就是出現錯誤訊息
說是抓不到東西
到底哪裡出錯了呢?
以下是mrtg.cfg
Target[a]: `/home/www/mrtg/a.out`
MaxBytes[a]: 100
Title[a]: The Count
PageTop[a]: <H1>The Count</H1>
Options[a]: growright
YLegend[a]: Counts
ShortLegend[a]: hits
LegendI[a]: Read
LegendO[a]: Write
--
Tags:
BBS
All Comments
Related Posts
php執行freebsd指令
By Kristin
at 2004-09-13T11:50
at 2004-09-13T11:50
Re: 請問zip檔
By Adele
at 2004-09-12T16:30
at 2004-09-12T16:30
請問zip檔
By Megan
at 2004-09-12T16:20
at 2004-09-12T16:20
請問要如何轉寄root的信
By Kelly
at 2004-09-11T23:03
at 2004-09-11T23:03
請問要如何轉寄root的信
By Candice
at 2004-09-11T20:01
at 2004-09-11T20:01