mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Vagrant: Install Icinga plugins from Perl module Monitoring::Generator::TestConfig too
refs #4506
This commit is contained in:
parent
0a5db0fb3a
commit
a2de4a8c22
@ -405,7 +405,6 @@ exec { 'create_monitoring_test_config':
|
|||||||
|
|
||||||
define populate_monitoring_test_config {
|
define populate_monitoring_test_config {
|
||||||
file { "/usr/local/icinga-mysql/etc/conf.d/test_config/${name}.cfg":
|
file { "/usr/local/icinga-mysql/etc/conf.d/test_config/${name}.cfg":
|
||||||
recurse => true,
|
|
||||||
owner => 'icinga',
|
owner => 'icinga',
|
||||||
group => 'icinga',
|
group => 'icinga',
|
||||||
source => "/usr/local/share/misc/monitoring_test_config/etc/conf.d/${name}.cfg",
|
source => "/usr/local/share/misc/monitoring_test_config/etc/conf.d/${name}.cfg",
|
||||||
@ -439,3 +438,18 @@ populate_monitoring_test_config { ['commands', 'contacts', 'dependencies',
|
|||||||
File['/usr/local/icinga-mysql/etc/conf.d/test_config/'],
|
File['/usr/local/icinga-mysql/etc/conf.d/test_config/'],
|
||||||
File['/usr/local/icinga-pgsql/etc/conf.d/test_config/'] ]
|
File['/usr/local/icinga-pgsql/etc/conf.d/test_config/'] ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define populate_monitoring_test_config_plugins {
|
||||||
|
file { "/usr/lib64/nagios/plugins/libexec/${name}":
|
||||||
|
owner => 'icinga',
|
||||||
|
group => 'icinga',
|
||||||
|
source => "/usr/local/share/misc/monitoring_test_config/plugins/${name}",
|
||||||
|
notify => [ Service['icinga-mysql'], Service['icinga-pgsql'] ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
populate_monitoring_test_config_plugins{ ['test_hostcheck.pl', 'test_servicecheck.pl']:
|
||||||
|
require => [ Exec['create_monitoring_test_config'],
|
||||||
|
Cmmi['icinga-mysql'],
|
||||||
|
Cmmi['icinga-pgsql'] ]
|
||||||
|
}
|
||||||
|
13
README.md
13
README.md
@ -53,6 +53,7 @@ After you should be able to browse [localhost:8080/icinga2-web](http://localhost
|
|||||||
* MySQL server and client software
|
* MySQL server and client software
|
||||||
* PostgreSQL server and client software
|
* PostgreSQL server and client software
|
||||||
* [Icinga prerequisites](http://docs.icinga.org/latest/en/quickstart-idoutils.html#installpackages)
|
* [Icinga prerequisites](http://docs.icinga.org/latest/en/quickstart-idoutils.html#installpackages)
|
||||||
|
* OpenLDAP servers and clients
|
||||||
|
|
||||||
**Installed users and groups**:
|
**Installed users and groups**:
|
||||||
|
|
||||||
@ -102,6 +103,18 @@ Connect to the **icinga mysql database** using the following command:
|
|||||||
Access the **Classic UI** (CGIs) via [localhost:8080/icinga-pgsql](http://localhost:8080/icinga-pgsql).
|
Access the **Classic UI** (CGIs) via [localhost:8080/icinga-pgsql](http://localhost:8080/icinga-pgsql).
|
||||||
For **logging into** the Icinga classic web interface use user *icingaadmin* with password *icinga*.
|
For **logging into** the Icinga classic web interface use user *icingaadmin* with password *icinga*.
|
||||||
|
|
||||||
|
#### Monitoring Test Config
|
||||||
|
|
||||||
|
Test config is added to both the MySQL and PostgreSQL Icinga instance utilizing the Perl module
|
||||||
|
**Monitoring::Generator::TestConfig** to generate test config to **/usr/local/share/misc/monitoring_test_config**
|
||||||
|
which is then copied to **<instance>/etc/conf.d/test_config/**.
|
||||||
|
Configuration can be adjusted and recreated with **/usr/local/share/misc/monitoring_test_config/recreate.pl**.
|
||||||
|
**Note** that you have to run
|
||||||
|
|
||||||
|
vagrant provision
|
||||||
|
|
||||||
|
in the host after any modification to the script just mentioned.
|
||||||
|
|
||||||
#### MK Livestatus
|
#### MK Livestatus
|
||||||
|
|
||||||
MK Livestatus is added to the Icinga installation using a MySQL database.
|
MK Livestatus is added to the Icinga installation using a MySQL database.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user