Tuesday, 15 January 2013

setting up passive checks on nagios -



setting up passive checks on nagios -

hello board question may little clean , greenish however,

i've been trying set nagios nsca passive checks on local ubuntu box prototype.

for in know, nsca listening on 5667 , send_nsca on same ubuntu computer (localhost 127.0.0.1) . i've been reading , testing object definitions , service templates have been getting config errors when seek access nagios web after modifications.

i hope clearer instructions on how can create service (directories/configurations) process passive checks in nagio3 ubuntu.

there few things consider, firstly localhost defined host , secondly check exists other check command doesn't anything, example.. i've created passiveservices.cfg file services defined follows:

define service{ utilize generic-service,service-pnp host_name server1,server2 service_description uptime active_checks_enabled 1 passive_checks_enabled 1 check_command check_null check_freshness 1 check_period none } define service{ utilize generic-service,service-pnp host_name server1,server2 service_description drive space active_checks_enabled 1 passive_checks_enabled 1 check_command check_null check_freshness 1 check_period none

note check command check_null, it's not doing anything.. , passive_checks_enabled 1.

there 2 lines within nagios.cfg need enable:

accept_passive_host_checks accept_passive_service_checks

it's thought enable next 2 lines aswell

check_service_freshness check_host_freshness

if server doesn't poll in after set amount of time, it'll trigger script (i trigger email within config)

lastly, enable next 2 lines:

log_external_commands log_passive_checks

they'll help debugging if doesn't work. writes out /var/log/syslog on ubuntu (well, on mine)..

nagios

No comments:

Post a Comment