如何用Nagios监控远程系统

开发者在线 Builder.com.cn 更新时间:2007-06-18作者:builder.com.cn 来源:

本文关键词: Vincent Danen 监控 Nagios

Nagios是一个奇妙的程序,它允许你监控远程系统的可用性。你可从http://www.nagios.org下载Nagios,它一般由Linux供应商提供,因此它应该是一个apt-get或urpmi。

Nagios大量利用配置文件,它们一般位于/etc/nagios目录中。主要的配置/etc/nagios/nagios.cfg,以及其它一些配置选项,通过使用cfg_file指令指向其它配置文件:

cfg_file=/etc/nagios/contacts.cfg

cfg_file=/etc/hosts.cfg

cfg_file=/etc/services.cfg

上面的文件进一步配置和优化Nagios。例如,contacts.cfg中可能包含:

define contact{

contact_nameadmin

aliasadmin

service_notification_period24x7

host_notification_period24x7

service_notification_optionsc,r

host_notification_optionsd,r

service_notification_commandsnotify-by-email

host_notification_commandshost-notify-by-email

emailadmin@mysite.com

}

用户评论

  • 用户名
  • 评论内容