Freshness not working or am i a spacehead...
Posted: Wed Mar 02, 2016 6:48 am
Hi all.
I have made it so that client's are making a passive host check, and send it to the server every 10min, and the server's freshness is 15min, so i should be fine.
however, i see the server report's "CRITICAL: Host down from my command_line"now and then, but the client is up.
And i the log at the server i see that the check is received every 10min's and sometimes with a few minutes apart "still can't figure out why" but it's never 15min old.
Do i misunderstand Freshness or what im i doing wrong ?
client:
define host {
use linux-server
host_name bmhtest
address localhost
check_command check_dummy
check_interval 10
max_check_attempts 2
}
server:
define host {
name linux-host
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_period 24x7
check_interval 10
check_command host-report-down
retry_interval 5
max_check_attempts 4
active_checks_enabled 0
passive_checks_enabled 1
check_freshness 1
freshness_threshold 900
notifications_enabled 1
notification_period 24x7
notification_interval 120
notification_options d,u,s
}
define command{
command_name host-report-down
command_line /usr/lib/nagios/plugins/check_dummy 2 "CRITICAL: Host down"
}
example from log:
[Wed Mar 2 11:16:41 2016 GMT] HOST ALERT: morso;UP;HARD;1;OK
[Wed Mar 2 11:16:41 2016 GMT] HOST ALERT: morso;DOWN;SOFT;1;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:33:28 2016 GMT] HOST ALERT: morso;DOWN;SOFT;2;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:33:48 2016 GMT] HOST ALERT: morso;DOWN;SOFT;3;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:34:07 2016 GMT] HOST ALERT: morso;DOWN;HARD;4;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:37:48 2016 GMT] HOST ALERT: morso;UP;HARD;1;OK
I have made it so that client's are making a passive host check, and send it to the server every 10min, and the server's freshness is 15min, so i should be fine.
however, i see the server report's "CRITICAL: Host down from my command_line"now and then, but the client is up.
And i the log at the server i see that the check is received every 10min's and sometimes with a few minutes apart "still can't figure out why" but it's never 15min old.
Do i misunderstand Freshness or what im i doing wrong ?
client:
define host {
use linux-server
host_name bmhtest
address localhost
check_command check_dummy
check_interval 10
max_check_attempts 2
}
server:
define host {
name linux-host
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_period 24x7
check_interval 10
check_command host-report-down
retry_interval 5
max_check_attempts 4
active_checks_enabled 0
passive_checks_enabled 1
check_freshness 1
freshness_threshold 900
notifications_enabled 1
notification_period 24x7
notification_interval 120
notification_options d,u,s
}
define command{
command_name host-report-down
command_line /usr/lib/nagios/plugins/check_dummy 2 "CRITICAL: Host down"
}
example from log:
[Wed Mar 2 11:16:41 2016 GMT] HOST ALERT: morso;UP;HARD;1;OK
[Wed Mar 2 11:16:41 2016 GMT] HOST ALERT: morso;DOWN;SOFT;1;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:33:28 2016 GMT] HOST ALERT: morso;DOWN;SOFT;2;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:33:48 2016 GMT] HOST ALERT: morso;DOWN;SOFT;3;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:34:07 2016 GMT] HOST ALERT: morso;DOWN;HARD;4;CRITICAL: CRITICAL: Host down
[Wed Mar 2 11:37:48 2016 GMT] HOST ALERT: morso;UP;HARD;1;OK