Nagios
Z wiki linux-user
Linia 94: | Linia 94: | ||
hostgroup_name linux-servers | hostgroup_name linux-servers | ||
alias Linux Servers ; Long name of the group | alias Linux Servers ; Long name of the group | ||
− | members | + | members serwer-www |
} | } | ||
define service{ | define service{ | ||
− | use | + | use generic-service ; Name of service template to use |
host_name serwer-www | host_name serwer-www | ||
service_description PING | service_description PING | ||
Linia 103: | Linia 103: | ||
} | } | ||
define service{ | define service{ | ||
− | use | + | use generic-service ; Name of service template to use |
host_name serwer-www | host_name serwer-www | ||
service_description Partycja home | service_description Partycja home | ||
Linia 109: | Linia 109: | ||
} | } | ||
define service{ | define service{ | ||
− | use | + | use generic-service ; Name of service template to use |
host_name serwer-www | host_name serwer-www | ||
service_description Current Users | service_description Current Users | ||
Linia 115: | Linia 115: | ||
} | } | ||
define service{ | define service{ | ||
− | use | + | use generic-service ; Name of service template to use |
host_name check-www | host_name check-www | ||
service_description HTTP | service_description HTTP | ||
− | check_command | + | check_command check_nrpe!check_httpd |
notifications_enabled 0 | notifications_enabled 0 | ||
} | } | ||
Linia 226: | Linia 226: | ||
* '''-c''' critical | * '''-c''' critical | ||
* '''/usr/local/nagios/libexec/check_users''' ścieżka do pluginu | * '''/usr/local/nagios/libexec/check_users''' ścieżka do pluginu | ||
+ | |||
+ | ===== komenda dla sprawdzenia stanu http ===== | ||
+ | aby sprawdzić stan serwera http możesz dopisać taką regułe | ||
+ | command[check_httpd]=/usr/local/nagios/libexec/check_http -I 192.168.0.12 -w 20 -c 60 | ||
Opis poszczególnych pluginów i ich możliwych opcji możecie wyszukać na stronie [http://nagiosplugins.org/ nagiosplugins.org] | Opis poszczególnych pluginów i ich możliwych opcji możecie wyszukać na stronie [http://nagiosplugins.org/ nagiosplugins.org] |