nagiosを稼働中のローカルサーバで、FTPサーバの稼働状況をチェックする。
下記ファイルに対し以下の設定を追加する。
/usr/local/nagios/etc/objects/localhost.cfg
1 2 3 4 5 6 7 |
define service{ use local-service ; Name of service template to use host_name localhost service_description FTP check_command check_ftp notifications_enabled 0 } |
最後にnagiosを再起動します。
1 |
service nagios restart |
以上