-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I've bought a new machine, monitor.preaction.me, and have configured Icinga2 on it. In the Rexfile, I've documented what I needed to do to install and configure Icinga2 on the OpenBSD 6.0 machine I bought. I likely need to see how to add better OpenBSD integration into Rex so I'm using Rex functions instead of raw commands. The Icinga2 config file I've started will eventually contain actual monitors for various parts of the system as I come across things that go down. Refs cpan-testers/cpantesters-project#16
- Loading branch information
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<VirtualHost *:80> | ||
ServerAdmin [email protected] | ||
DocumentRoot "/var/www/icinga-web2/public" | ||
ServerName monitor.preaction.me | ||
ErrorLog "logs/monitor.preaction.me-error_log" | ||
CustomLog "logs/monitor.preaction.me-access_log" common | ||
|
||
<Directory "/var/www/icinga-web2/public"> | ||
Options SymLinksIfOwnerMatch | ||
AllowOverride None | ||
<RequireAll> | ||
Require all granted | ||
</RequireAll> | ||
|
||
SetEnv ICINGAWEB_CONFIGDIR "/var/www/etc/icingaweb2" | ||
EnableSendfile Off | ||
|
||
RewriteEngine on | ||
RewriteCond %{REQUEST_FILENAME} -s [OR] | ||
RewriteCond %{REQUEST_FILENAME} -l [OR] | ||
RewriteCond %{REQUEST_FILENAME} -d | ||
RewriteRule ^.*$ - [NC,L] | ||
RewriteRule ^.*$ index.php [NC,L] | ||
|
||
DirectoryIndex index.php | ||
</Directory> | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
/********************************************************************** | ||
* CPAN Testers monitoring | ||
*********************************************************************/ | ||
|
||
/*********************************** | ||
* Users and UserGroups | ||
**********************************/ | ||
object UserGroup "cpantestersadmins" { | ||
display_name = "CPAN Testers Admins" | ||
} | ||
|
||
object User "doug" { | ||
import "generic-user" | ||
|
||
display_name = "Doug Bell" | ||
groups = [ "cpantestersadmins" ] | ||
|
||
email = "[email protected]" | ||
} | ||
|
||
/*********************************** | ||
* Hosts | ||
**********************************/ | ||
|
||
object Host "www.cpantesters.org" { | ||
address = "www.cpantesters.org" | ||
check_command = "hostalive" | ||
} | ||
|
||
/*********************************** | ||
* Services | ||
**********************************/ | ||
|