欢迎来到天天文库
浏览记录
ID:17605186
大小:243.68 KB
页数:5页
时间:2018-09-03
《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/home/xymon/clientdirectoryandc
2、opiedittoanotherhost,firstIhadtocreatethexymonuserthereontheserver,appendtheclientipandhostnameto/home/xymon/server/etc/hosts.cfg<==vim编辑hosts.cfgsamplehosts.cfgFile如下例子添加需要监控的主机、网络、系统服务,最好分页监控.注意page和group的用法group-compress
3、connnopingnoinfonotrendsxxx.xxx.xxx.xxxxxx1.gate.io#http://xxx1.gate.ionoconnnopingnoinfonotrendsxxx.xxx.xxx.xxxxxx2.gate.io#http://xxxnoconnnopingnoinfonotrendstitle
4、x192.168.1.1root.gate.local#CLIENT:xxxxxx.xxx.xxx.xxxxxx.gate.local#CLIENT:xxxgroup-compresswindowsxxx.xxx.xxx.xxxxxx.gate.local#CLIENT:xxxconfigureiptablesifinstalled,forport1984tcp,thatsthedefaultportstarttheclientdone!sinceserver/clientwascompiledon64bitfedora,fora32bitclient,youneedtorecom
5、piletheclientona32bitsystemSecurityissuesyouneedtosetaadminuserfortheadminpanel,andbetterlockthepageforexternalaccess,iptablesorhtaccessisquiteokhtpasswd-c/home/xymon/server/etc/hobbitpasswdUSERNAMEandaddAuthUserFile/home/xymon/server/etc/hobbitpasswdAuthGroupFile/home/xymon/server/etc/hobbitg
6、roupsAuthTypeBasicAuthName"XymonAdministration"tothexymondirectoryinhttpd.confsoyouusethesameusernametoenterthepageandusetheadminpanel1)开启服务器自动启动服务ServerAutostartredhat/fed/centos如下脚本适合Redhat、fed、CentOS三个操作系统{CODE{}}cpxymon-4.2.2/rpm/hobbit-init.d/etc/init.d/xymonchkconfig--levels3xymonon{CODE
7、}settheDAEMONvariableinthescript,andifit'snotworking,trytoreplace"su-c"with"su-xymon-c"2)Clientinstallation客户端的安装WindowsClient:从下面网站下载关于client的组件,安装在客户端机上,设定连接服务器的ipaddress,并添加需要监控的项目,如硬盘,内存,CPU,服务等等projectpage:http://sourceforge.net/pr
此文档下载收益归作者所有