Sziasztok.
Van egy nagios-om. Nagyon jol figyel dolgozik ahogy kell. De nem kuld levelet.A configokban benne van, hogy mire kuldjon. Bekapcsoltam mindent. A mail parancs konzolbol mukodik, a nagios felhasznalo alol is. A debug=32 utan kiderult, hogy tenylegesen a nagios nem kuld ki az uzenetet.
Par config reszlet. Biztos vagyok benne hogy en konfiguralok valamit felre:
define contact{
contact_name root
alias Root
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email root@localhost
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members root
}
define host{
name generic-host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
check_command check-host-alive
max_check_attempts 10
notification_interval 0
notification_period 24x7
notification_options d,u,r
contact_groups admins
register 0
notes Unknow host
icon_image base/irix.png
icon_image_alt Unknow host
vrml_image irix.png
statusmap_image base/irix.gd2
}
define host {
use generic-host
name linux-server
notes GNU/Linux server
icon_image base/linux40.png
icon_image_alt Debian GNU/Linux
vrml_image linux40.png
statusmap_image base/linux40.gd2
register 0
}
Ugyanilyen kettos szarmaztatast hasznalok a service-oknal is. Egy hoszt konfig:
define host {
use windows-server
host_name madarka.local
display_name Madarka
hostgroups local-area
address 10.0.0.15
}
A local area group-ra ervenyes a PING service:
define service{
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 0
is_volatile 0
check_period 24x7
normal_check_interval 5
retry_check_interval 1
max_check_attempts 4
notification_period 24x7
notification_options w,u,c,r
contact_groups admins
register 0
}
define service {
use generic-service
hostgroup_name local-area
service_description PING
check_command check_ping!100.0,29%!500.0,60%
}
define hostgroup {
hostgroup_name local-area
alias local-area
}
Bocsi hogy kicsit hosszura sikerult. Segitsetek kerlek... Mit rontok el?
Udv
balazsasd
- 1980 megtekintés
Hozzászólások
És mire szeretnéd, hogy küldjön. A check_ping-re? Kérdés, hogy ebben a felállásban az adott ip cím elérhető e. Vagy vegyél fel egy olyan service-t amit biztos, hogy nem elérhető.
Javaslom, hogy próbáld meg inkább az Nconf programot amivel webes felületen tudod állítani a nagios-t és biztos, hogy nem szúrod el a konfigot.
- A hozzászóláshoz be kell jelentkezni
A hibakat gerenalom. Webes feluleten latszik is hogy az adott gep down-ba kerul.
- A hozzászóláshoz be kell jelentkezni
Contacts groups helyett próbálj meg a contactnak küldeni.
Mintha olvastam volna valami ilyen bugról.
- A hozzászóláshoz be kell jelentkezni
okes
- A hozzászóláshoz be kell jelentkezni
BAAAAAAAAAAAAZ - Mukodik!
- A hozzászóláshoz be kell jelentkezni