-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CheckCommands and documentation on Windows plugins
- Loading branch information
Showing
8 changed files
with
678 additions
and
4 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
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,76 @@ | ||
/* | ||
* Service apply rules. | ||
* | ||
* The CheckCommand objects `ping4`, `ping6`, etc | ||
* are provided by the plugin check command templates. | ||
* Check the documentation for details. | ||
* | ||
* Tip: Use `icinga2 object list --type Service` to | ||
* list all service objects after running | ||
* configuration validation (`icinga2 daemon -C`). | ||
*/ | ||
|
||
/* | ||
* This is an example host based on your | ||
* local host's FQDN. Specify the NodeName | ||
* constant in `constants.conf` or use your | ||
* own description, e.g. "db-host-1". | ||
*/ | ||
|
||
/* | ||
* These are generic `ping4` and `ping6` | ||
* checks applied to all hosts having the | ||
* `address` resp. `address6` attribute | ||
* defined. | ||
*/ | ||
apply Service "ping4" { | ||
import "generic-service" | ||
|
||
check_command = "ping4-windows" | ||
|
||
assign where host.address | ||
} | ||
|
||
apply Service "ping6" { | ||
import "generic-service" | ||
|
||
check_command = "ping6-windows" | ||
|
||
assign where host.address6 | ||
} | ||
|
||
apply Service "load" { | ||
import "generic-service" | ||
|
||
check_command = "load-windows" | ||
|
||
/* Used by the ScheduledDowntime apply rule in `downtimes.conf`. */ | ||
vars.backup_downtime = "02:00-03:00" | ||
|
||
assign where host.name == NodeName | ||
} | ||
|
||
apply Service "procs" { | ||
import "generic-service" | ||
|
||
check_command = "procs-windows" | ||
|
||
assign where host.name == NodeName | ||
} | ||
|
||
apply Service "swap" { | ||
import "generic-service" | ||
|
||
check_command = "swap-windows" | ||
|
||
assign where host.name == NodeName | ||
} | ||
|
||
apply Service "users" { | ||
import "generic-service" | ||
|
||
check_command = "users-windows" | ||
|
||
assign where host.name == NodeName | ||
} | ||
|
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,58 @@ | ||
/** | ||
* Icinga 2 configuration file | ||
* - this is where you define settings for the Icinga application including | ||
* which hosts/services to check. | ||
* | ||
* For an overview of all available configuration options please refer | ||
* to the documentation that is distributed as part of Icinga 2. | ||
*/ | ||
|
||
/** | ||
* The constants.conf defines global constants. | ||
*/ | ||
include "constants.conf" | ||
|
||
/** | ||
* The zones.conf defines zones for a cluster setup. | ||
* Not required for single instance setups. | ||
*/ | ||
include "zones.conf" | ||
|
||
/** | ||
* The Icinga Template Library (ITL) provides a number of useful templates | ||
* and command definitions. | ||
* Common monitoring plugin command definitions are included separately. | ||
*/ | ||
include <itl> | ||
include <plugins> | ||
// include <plugins-contrib> | ||
|
||
/** | ||
* This includes the Icinga 2 Windows plugins | ||
*/ | ||
include <windows-plugins> | ||
|
||
|
||
|
||
/** | ||
* The features-available directory contains a number of configuration | ||
* files for features which can be enabled and disabled using the | ||
* icinga2 feature enable / icinga2 feature disable CLI commands. | ||
* These commands work by creating and removing symbolic links in | ||
* the features-enabled directory. | ||
*/ | ||
include "features-enabled/*.conf" | ||
|
||
/** | ||
* The repository.d directory contains all configuration objects | ||
* managed by the 'icinga2 repository' CLI commands. | ||
*/ | ||
include_recursive "repository.d" | ||
|
||
/** | ||
* Although in theory you could define all your objects in this file | ||
* the preferred way is to create separate directories and files in the conf.d | ||
* directory. Each of these files must have the file extension ".conf". | ||
*/ | ||
include_recursive "conf.d" | ||
|
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
Oops, something went wrong.