Search Suggest

ติดตั้ง Nagios Monitor


1. Install from ubuntu-nagios/#adding-a-host-to-monitor
2. แก้ไขปัญหา การตรวจสอบ service ssh ที่เปลี่ยนพอร์ตจาก 22 เป็น พอร์ตอื่น ให้แก้ไขค่า คอนฟิกดังนี้
#vim /usr/local/nagios/etc/servers/mail.cfg
define service {
      host_name                       mail.nanyangtest.com
      service_description             Check SSH
      check_command                 check_ssh! -p 00001 แก้ไขแบบนี้
      max_check_attempts              2
      check_interval                  2
      retry_interval                  2
      check_period                    24x7
      check_freshness                 1
      contact_groups                  admins
      notification_interval           2
      notification_period             24x7
      notifications_enabled           1
      register                        1
Restart service Server
#service apache2 restart && service nagios restart
Restart service another server
$sudo /etc/init.d/nagios-nrpe-server restart

Đăng nhận xét