Red Hat ENTERPRISE LINUX 5.4 - SYSTEMTAP BEGINNERS GUIDE Technické informace Strana 70

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 240
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 69
56 System Analysis and Tuning Guide
max_check_attempts 10
contact_groups admins
notification_interval 60
notification_options d,u,r
}
5 Insert a service object in services.cfg:
define service {
use generic-service
host_name host.name.com
service_description HTTP
contact_groups router-admins
check_command check_http
}
6 Insert a contact and contactgroup object in contacts.cfg:
define contact {
contact_name max-mustermann
use generic-contact
alias Webserver Administrator
e-mail mmustermann@localhost
}
define contactgroup {
contactgroup_name admins
alias Administrators
members max-mustermann
}
7 Execute rcnagios restart to (re)start Nagios.
8 Execute cat /var/log/nagios/nagios.log and verify whether the fol-
lowing content appears:
[1242115343] Nagios 3.0.6 starting... (PID=10915)
[1242115343] Local time is Tue May 12 10:02:23 CEST 2009
[1242115343] LOG VERSION: 2.0
[1242115343] Finished daemonizing... (New PID=10916)
If you need to monitor a different remote service, it is possible to adjust
check_command in step Step 5 (page56). A full list of all available check
programs can be obtained by executing ls /usr/lib/nagios/plug-
ins/check_*
See Section3.5, “Troubleshooting” (page58) if an error occurred.
Zobrazit stránku 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 239 240

Komentáře k této Příručce

Žádné komentáře