2023. 3. 16. 09:47

Windows MRTG 설치 정리.

1. mrtg 다운로드.

https://oss.oetiker.ch/mrtg/download.en.html

 

MRTG - MRTG Download

MRTG Download You can download MRTG from several places: Primary Distribution Point If you are running Unix, look for the *.tar.gz files, if you work with Windows, you will be happier with the *.zip files. You might want to read the documentation for inspi

oss.oetiker.ch

2. Active Perl 다운로드

https://www.activestate.com/products/perl/

strawberry-perl 을 설치해도 무관.

 

Cross-platform, secure Perl by ActiveState - for developers and enterprise

Perl powered by the ActiveState Platform. Designed to meet the security and package management needs of Perl developers.

www.activestate.com

 

3. Mrtg 압축 해지후 폴더에 가서 아래와 같이 실행.

perl cfgmaker  --global "WorkDir: C:\Inetpub\wwwroot\mrtg" --global "RunAsDaemon: yes" --global "Language: korean" --global "Refresh: 300" --global "WithPeak[_]: dwmy  snmp값@10.1.1.1 --output 10.1.1.1.cfg

 

**중요**

위대로 치면 숫자가  아래와 같이 나온다.

0 22 20 18 16 14 12 10 8 6 4 2

 

아래와 같이 나오는게 정상이다.

0 2 4 6 8 10 12 14 16 18 20 22 0 

 

- 아래와 같이 Options 값을 넣어주면 된다.

 

perl cfgmaker --global "Options[_]: bits, growright, noinfo, gauge, integer, %I:%M %p" --global "WorkDir: D:\WWW_ROOT\MRTG\10.1.1.1" --global "Options[_]: growright,bits" --global "RunAsDaemon: yes" --global "Language: korean" --global "Refresh: 300" --global "WithPeak[_]: dwmy" --output 10.1.1.1.cfg maven@10.1.1.1 

 

 

perl mrtg 10.1.1.1.cfg

 

perl indexmaker --output=C:\Inetpub\wwwroot\mrtg\index.htm 10.1.1.1.cfg --title="10.1.1.1 MRTG"
 
 
WorkDir: C:\Inetpub\wwwroot\mrtg
RunAsDaemon: yes   # Interval 주기마다 mrtg.exe 다시 실행
Language: korean          # 한국어 언어 설정
Interval: 5                      # 기본값 5분 이하로는 설정이 안됩니다.
Refresh: 300                  # 웹페이지 자동 Refresh(초) 설정
WithPeak[_]: dwmy       # 최대값 표시
 
 
 
* 참고링