欢迎来到天天文库
浏览记录
ID:14309787
大小:243.68 KB
页数:5页
时间:2018-07-27
《02—xymon网络监控添加监控内容》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Xymon添加被监控的条目1)切换至xymon用户下,进入/home/xymon/server/etc目录,编辑vimhost.cfgsu-xymon/home/xymon/server/hobbit.shstart<==启动hobbit.sh服务,新版本为xymon.sh/home/xymon/client/runclient.shstart<==client暂时先忽略everythingworkingperfectlysoclient-serveronthefedorahostisrunningnowItookthe
2、/home/xymon/clientdirectoryandcopiedittoanotherhost,firstIhadtocreatethexymonuserthereontheserver,appendtheclientipandhostnameto/home/xymon/server/etc/hosts.cfg<==vim编辑hosts.cfgsamplehosts.cfgFile如下例子添加需要监控的主机、网络、系统服务,最好分页监控.注意page和group的用法group-compress
3、bpagesxxx.xxx.xxx.xxxxxx.gate.io#http://xxx.gate.ionoconnnopingnoinfonotrendsxxx.xxx.xxx.xxxxxx1.gate.io#http://xxx1.gate.ionoconnnopingnoinfonotrendsxxx.xxx.xxx.xxxxxx2.gate.io#http://xxxnoconnnopingnoinfonotrendstitle
4、ssxymonserverxxx.xxx.xxx.xxxxxx.gate.local#bbdhttp://usfed01/CLIENT:usfed01group-compresslinux192.168.1.1root.gate.local#CLIENT:xxxxxx.xxx.xxx.xxxxxx.gate.local#CLIENT:xxxgroup-compresswindowsxxx.xxx.xxx.xxxxxx.gate.local#CLIENT:xxxconfigureiptablesifinstalled,fo
5、rport1984tcp,thatsthedefaultportstarttheclientdone!sinceserver/clientwascompiledon64bitfedora,fora32bitclient,youneedtorecompiletheclientona32bitsystemSecurityissuesyouneedtosetaadminuserfortheadminpanel,andbetterlockthepageforexternalaccess,iptablesorhtaccessisq
6、uiteokhtpasswd-c/home/xymon/server/etc/hobbitpasswdUSERNAMEandaddAuthUserFile/home/xymon/server/etc/hobbitpasswdAuthGroupFile/home/xymon/server/etc/hobbitgroupsAuthTypeBasicAuthName"XymonAdministration"tothexymondirectoryinhttpd.confsoyouusethesameusernametoenter
7、thepageandusetheadminpanel1)开启服务器自动启动服务ServerAutostartredhat/fed/centos如下脚本适合Redhat、fed、CentOS三个操作系统{CODE{}}cpxymon-4.2.2/rpm/hobbit-init.d/etc/init.d/xymonchkconfig--levels3xymonon{CODE}settheDAEMONvariableinthescript,andifit'snotworking,trytoreplace"su-c"with"s
8、u-xymon-c"2)Clientinstallation客户端的安装WindowsClient:从下面网站下载关于client的组件,安装在客户端机上,设定连接服务器的ipaddress,并添加需要监控的项目,如硬盘,内存,CPU,服务等等projectpage:http://sourceforge.net/pr
此文档下载收益归作者所有