Skip to content

Instantly share code, notes, and snippets.

@realtebo
Created September 3, 2019 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realtebo/3b6692c485fa003ed488842850420fcd to your computer and use it in GitHub Desktop.
Save realtebo/3b6692c485fa003ed488842850420fcd to your computer and use it in GitHub Desktop.
create contacts in nagios
# Edit the following file on nagios controller
#
# add an entry like
define contact {
contact_name user_nick_name
use generic-contact
alias Realtebo
email realtebo@github.dev
}
# Then in one of your service definition, send notification changing the service notification as followed
# note: use 'alias', is case sensitive, separate entries using commas
define service {
.....
contacts nagiosadmin, Realtebo
.....
}
# Always test before apply changes !
cd /usr/local/nagios
sudo bin/nagios -v etc/nagios.cfg
# Restart service
sudo systemctl restart nagios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment