Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt install icinga2
- apt install nsca-ng-server
- apt install nsca-ng-client
- command_file = "/run/icinga2/cmd/icinga2.cmd"
- user = "nagios"
- authorize "example" {
- password = "PASSWORD"
- host = "example.com"
- services = {
- "*",
- }
- }
- object Host "example"{
- import
- name = "example.com"
- address = "example.com"
- # mark as node
- var.is_node = "true"
- # default check intervals
- max_check_attempts = 7
- retry_interval = 1m
- # add this if you want mail notifications
- vars.notification["mail"] = {
- groups = [ "icingaadmins" ]
- }
- }
- template Service "remote_passive" {
- import "generic-service"
- check_interval = 10m
- retry_interval = 1m
- check_command = passive
- }
- apply Service "serivce-name" {
- import "remote_passive"
- assign where host.var.is_node
- }
- server = "example.com"
- identity = "example"
- password = "PASSWORD"
- user<TAB>service-name<TAB>command-to-execute-with-args
- nobody test-apt /usr/lib/nagios/plugins/check_apt -o
- /etc/monitoring/monitoring-report.py -c /PATH/TO/monitoring.conf
Add Comment
Please, Sign In to add comment