Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save realtebo/b9188def0b94a1d34ff760e68f58022b to your computer and use it in GitHub Desktop.
Save realtebo/b9188def0b94a1d34ff760e68f58022b to your computer and use it in GitHub Desktop.
example of config for a remote with ncpa
define host {
host_name HostNameWithoutSpecialChars
hostgroups NCPA
address 139.xx.yyy.zzzz
check_command check_ncpa!-t 'community_string' -P 5693 -M system/agent_version
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contacts nagiosadmin
notification_interval 60
notification_period 24x7
notifications_enabled 1
icon_image linux40.png
statusmap_image linux40.png
register 1
}
define service {
host_name HostNameWithoutSpecialChars
service_description Cpu Usage
servicegroups cpu_load
check_command check_ncpa!-t 'community_string' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
define service {
host_name HostNameWithoutSpecialChars
service_description Memory Usage
servicegroups ram
check_command check_ncpa!-t 'community_string' -P 5693 -M memory/virtual -w 50 -c 80 -u G
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
define service {
host_name HostNameWithoutSpecialChars
service_description Process Count
servicegroups cpu_load
check_command check_ncpa!-t 'community_string' -P 5693 -M processes -w 150 -c 200
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
define service {
host_name HostNameWithoutSpecialChars
service_description High Cpu Processes
servicegroups cpu_load
check_command check_ncpa!-t 'community_string' -M 'processes' -q 'cpu_percent=10' -w 1 -c 2
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
define service {
host_name HostNameWithoutSpecialChars
service_description Root Partition
servicegroups disks
check_command check_ncpa!-t 'community_string' -M 'disk/logical/|/used_percent' -w 90 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment