zabbix配置了解Hostszabbix中的hosts就是指你想监控的设备,如服务器、工作站、交换机等等。如果你想监控某个主机X的某个变量,你必须先创建一个主机X,然后再给该主机添加监控items。hosts可以被有组织的安排进hostgroup中。通过zabbix的前端web界面配置hosts:?1Configuratio..
分类:
其他好文 时间:
2014-12-17 19:03:28
阅读次数:
373
Maplabels(拓扑图标签)支持以下Macros(宏):MACRODESCRIPTION{HOST.CONN}IPorhostDNSname,dependingonhostsettings{HOST.DNS}HostDNSname{HOST.HOST}Hostname{HOST.IP}HostIPaddress{HOST.NAME}Visiblehostname{host:key.func(param)}Simplemacros,asusedintriggerexpressi..
分类:
其他好文 时间:
2014-12-17 18:52:19
阅读次数:
542
一. 主机Master设置1.安装ssh客服端和服务器(ubuntu已默认安装了)2.机器名与ip绑定由于/etc/hosts中需要将计算机名和IP绑定,所有最好设置IP地址为静态地址 sudo nano /etc/hosts 添加Master的ip地址和机器名 eg:192.168.3.155 w...
分类:
其他好文 时间:
2014-12-17 18:16:29
阅读次数:
519
需求:需要用hosts.deny限制用户通过ssh登录在/etc/hosts.deny中加入sshd:all在/etc/hosts.allow中加入sshd:all#拒绝所有的ip链接ssh服务在其他服务器上尝试链接该服务器,却发现还是正常链接继续找问题,又从网上得知,/etc/hosts.allow与/etc/hosts.deny只对调用了tcp_wrapper..
分类:
其他好文 时间:
2014-12-17 13:00:50
阅读次数:
213
Linux日志默认时间格式:Dec1609:52:01,看起来不习惯,修改成2014-12-1609:52:01感觉舒服多了。步骤:vi/etc/rsyslog.conf#定义自己的本土化的时间格式$templatemyformat,"%$NOW%%TIMESTAMP:8:15%%hostname%%syslogtag%%msg%\n"#Usedefaulttimestampformat#$ActionFileDefault..
分类:
系统相关 时间:
2014-12-16 15:22:19
阅读次数:
963
原因:在原来的电脑上配置伪分布的时候,已经将hostname与IP绑定了,所以拷贝到别的电脑的时候,重新启动的时候就会失败,因为新的电脑的IP不见得就和原来的电脑的IP一样!因为在不同的网络中,在NAT模式下Linux的IP肯定是位于不同的网段的!! 解决方法:vi /etc/hosts 将原来的电...
分类:
其他好文 时间:
2014-12-16 00:47:25
阅读次数:
299
我们时常会与操作系统交互或在 Ruby 中执行 Shell 命令。Ruby为我们提供了完成该任务的诸多方法。ExecKernel#exec通过执行给定的命令来替换当前进程,例如:$ irb>> exec 'echo "hello $HOSTNAME"'hello codefun$注意exec利用ec...
分类:
系统相关 时间:
2014-12-15 23:31:49
阅读次数:
321
1、实验环境192.168.56.101r1.com
192.168.56.102r2.com2、修改主机名#cat/etc/hosts
127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4
::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6
192.168.56.101r1r1.com
192.168.56.102..
分类:
其他好文 时间:
2014-12-15 22:08:05
阅读次数:
393
最好的方法还是改hosts文件的方法,更新速度较快。Windows在C:\WINDOWS\system32\drivers\etc目录下,Linux用户打开/etc/hosts文件。添加:#Google主页203.208.46.146 www.google.com#这行是为了方便打开Android开...
分类:
移动开发 时间:
2014-12-15 16:50:30
阅读次数:
231
对于thinkphp框架项目的访问格式有多种,其中pathinfo是默认的基本访问格式,格式为:http://hostname:port/index.php/模块名/action名/参数1/参数1的值/ pathinfo其实就是一个参数,可以通过$_SERVER['PATH_INFO']获得,thi...
分类:
Web程序 时间:
2014-12-15 16:47:08
阅读次数:
248