Overview
Once your Nagios service is receiving Passive NRDP checks, they will not appear anywhere in Nagios until you define host and service definitions.
The following definitions compliment the guides for using NCPA to send passive check results to Nagios via NRDP.
The following Nagios Definitions will result in:
A Passive Host object for the server S1601
Passive Service objects for the server S1601 for the services:
CPU Usage
Disk Usage
Swap Usage
Memory Usage
Process Count
Which will result in something like this in Nagios:
define command {
command_name check_dummy
command_line $USER1$/check_dummy $ARG1$
}
define host {
use generic-host
name passive_host
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 0
contact_groups admins
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options d,u,r
}
define service {
use generic-service
name passive_service
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 0
contact_groups admins
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options w,u,c,r
}
define host {
use passive_host
host_name S1601
}
define service {
use passive_service
service_description CPU Usage
host_name S1601
}
define service {
use passive_service
service_description Disk Usage
host_name S1601
}
define service {
use passive_service
service_description Swap Usage
host_name S1601
}
define service {
use passive_service
service_description Memory Usage
host_name S1601
}
define service {
use passive_service
service_description Process Count
host_name S1601
}
For any support related questions please visit the Nagios Support Forums at:
http://support.nagios.com/forum/
Article ID: 762
Created On: Wed, Oct 18, 2017 at 10:44 PM
Last Updated On: Wed, Oct 18, 2017 at 11:03 PM
Authored by: tlea
Online URL: https://support.nagios.com/kb/article/nrdp-passive-host-and-service-definitions-762.html