Skip to content

Instantly share code, notes, and snippets.

@edwin-bluekite
Last active December 28, 2018 09:07
Show Gist options
  • Save edwin-bluekite/336784835564f388e5b7 to your computer and use it in GitHub Desktop.
Save edwin-bluekite/336784835564f388e5b7 to your computer and use it in GitHub Desktop.
$ sudo /usr/bin/sqlite3 /opt/nagios/var/rw/nagios_hosts.db 'create table add_hosts (hostname TEXT, dstamp INTEGER); create table del_hosts (hostname TEXT);'
$ sudo /opt/xoom/nagios/bin/process_api_hosts_icinga.sh add
$ vim /opt/nagios/etc/check_mk/conf.d/hosts.mk #check if is correct
$ sudo service monitoring start

Important files

/opt/nagios/share/check_mk/check_mk_templates.cfg /opt/nagios/etc/objects/check_mk_objects.cfg

Hosts file

opt/nagios/etc/check_mk/conf.d/hosts.mk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment