Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1634429
  • 博文数量: 135
  • 博客积分: 2820
  • 博客等级: 少校
  • 技术积分: 2544
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-16 13:33
文章分类

全部博文(135)

文章存档

2015年(1)

2014年(8)

2013年(16)

2012年(43)

2011年(56)

2010年(11)

分类: LINUX

2011-04-20 10:38:59

都是在服务器上修改配置文件,
1。localhost.cfg
vi /usr/local/nagios/etc/objects/localhost.cfg

define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             SSH
        check_command                   check_ssh! -p 65508!172.16.10.3
        notifications_enabled           0
        }

2。被监控的服务器的配置文件
vi /usr/local/nagios/etc/servers/other.cfg

define service{
        use                             generic-service
        host_name                       other
        service_description             SSH
#        check_command                   check_nrpe!check_ssh
        check_command                   check_ssh! -p 65508!172.16.10.8
        }


阅读(2914) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~