Add drupal check, Icinga
How to add an Drupal check to Icinga2
Command will be run on localhost machine, in order to run remotely do not forget to download a plugin and create a commands.conf record both on main and remote node.
How to add an Drupal check to Icinga2
Command will be run on localhost machine, in order to run remotely do not forget to download a plugin and create a commands.conf record both on main and remote node.
Important configuration files
Binaries Directory:cd /usr/lib/nagios/plugins
Used to store binaries/scripts for a services, use./plugin_name -h
Add icinga sources to apteditor /etc/apt/sources.list.d/icinga.list
adddeb http://packages.icinga.com/debian icinga-stretch main
deb-src http://packages.icinga.com/debian icinga-stretch main
1. Define a particular check you like to add
- mysql
2. Check if plugin exist in /usr/lib/nagios/plugins
call a scripts with parameter -- help for more related informationcheck_mysql --help
1 Hosts
- agent based connection to nodes
- PKI secure check
- adding hosts to zones.d/ via main zone folder, one per each node
- example of FGDN.conf file in /etc/icinga2/zones.d/zone.main.server.name/fqdn.of.node.conf
Check whether Icinga configuration is okicinga2 daemon -C
Check whether connection from node to master is establishednetstat | grep :5665