码迷,mamicode.com
首页 > 其他好文 > 详细

mrtg监控总结

时间:2015-12-07 00:52:42      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:监控

perl cfgmaker public@192.168.0.103 -global “WorkDir: C:\www\mrtg” -output mrtg.cfg
Echo RunAsDaemon:yes>>mrtg.cfg
Echo Interval:5>>mrtg.cfg

Perl indexmaker mrtg.cfg>>c:\www\mrtg\index.htm
Perl mrtg -logging=mrtg.log mrtg.cfg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Parameters]
"Application"="c:\\perl\\bin\\wperl.exe"
"AppParameters"="C:\\mrtg\\bin\\mrtg --logging=mrtg.log c:\\mrtg\\bin\\mrtg.cfg"
"AppDirectory"="c:\\mrtg\\bin\\"

 


需要注意的几个问题
 c:\mrtg\bin>instsrv.exe mrtg C:\mrtg\bin\srvany.exe  不能加引号, 在管理员权限下执行

-global  是 -

配置文件生成的目录 去掉后面的“WorkDir 

RunAsDaemon:yes
Inerval:5        Inerval改为Interval

 

其他按步骤操作

https://prezi.com/0xcrmrcji5ri/win7snmpmrtg/        win7下安装mrtg
http://tonyguo.blog.51cto.com/379574/165807/      内存监控

 

perl cfgmaker cgdo@192.168.0.3 -global “WorkDir: C:\www\mrtg” -output C:\mrtg\0.3\mrtg.cfg
perl cfgmaker cgdo@192.168.0.21 -global “WorkDir: C:\www\mrtg” -output C:\mrtg\0.21\mrtg.cfg
perl cfgmaker public@192.168.30.60 -global “WorkDir: C:\www\mrtg” -output C:\mrtg\30.60\mrtg.cfg
Echo RunAsDaemon:yes>>C:\mrtg\30.60\mrtg.cfg
Echo Interval:5>>C:\mrtg\30.60\mrtg.cfg

 

Perl indexmaker C:\mrtg\0.3\mrtg.cfg>>c:\www\mrtg\0.3\index.htm
Perl indexmaker C:\mrtg\0.21\mrtg.cfg>>c:\www\mrtg\0.21\index.htm
Perl indexmaker C:\mrtg\30.60\mrtg.cfg>>c:\www\mrtg\30.60\index.htm


Perl mrtg -logging=mrtg.log C:\mrtg\0.3\mrtg.cfg
Perl mrtg -logging=mrtg.log C:\mrtg\0.21\mrtg.cfg
Perl mrtg -logging=mrtg.log C:\mrtg\30.60\mrtg.cfg

修改注册表
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Parameters]
"Application"="c:\\perl\\bin\\wperl.exe"
"AppParameters"="C:\\mrtg\\bin\\mrtg --logging=mrtg.log c:\\mrtg\\0.3\\mrtg.cfg"
"AppParameters2"="C:\\mrtg\\bin\\mrtg --logging=mrtg.log c:\\mrtg\\0.21\\mrtg.cfg"
"AppParameters3"="C:\\mrtg\\bin\\mrtg --logging=mrtg.log c:\\mrtg\\30.60\\mrtg.cfg"
"AppDirectory"="c:\\mrtg\\bin\\"

mrtg监控总结

标签:监控

原文地址:http://1679542.blog.51cto.com/1669542/1720048

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!