Scan devices with a disk check assigned to automatically update %DISK%
host variables.
Synopsis
/opt/opsview/support-scripts/bin/setup_disk_monitoring
setup_disk_monitoring [-?hV]
setup_disk_monitoring [--username <username>] [--password [password]] [--reload]
setup_disk_monitoring [-u <username>] [-p [password]] [-r]
setup_disk_monitoring [-u <username>] [-p [password]] [-r] [-H <hostname>][-H <hostgroup>]
Description
Performs a search of all service checks configured with a %DISK%
variable in the plugin arguments. Any host that has such a service check assigned either directly or via a host template has a disk scan performed against it. The results of the disk scan are used to populate %DISK%
variables of each host.
If a host or host group is provided then the disk scans are limited to those devices (the search for all service checks is still performed first). Any host that does not have a suitable service check assigned either directly or indirectly is be ignored.
The disk scan uses check_nrpe
and check_disk
or an SNMP check to gather filesystem information.
The “username” and “password” can be specified in the configuration file along with any filesystems that may need to be excluded (either across all devices or specific ones).
Options
Option | Purpose | Default |
---|---|---|
--help , -h , -? , |
Display help text | |
--debug [0-9], --debug [--debug [...]] |
Enable debugging mode (using more than once increases verbosity, or specify a level explicitly to a maximum of level 8) | |
--version , -V |
Show version information | |
--hostname <hostname or hostgroup>, -H <hostname or hostgroup> |
Limit the updates to the named hosts or members of the named parent hostgroup | |
--reload , -r |
If changes have been made, perform an Apply changes |
Arguments
- None
Files
File | Description |
---|---|
/opt/opsview/support-scripts/etc/setup_disk_monitoring.yml.in |
Example configuration file |
/opt/opsview/support-scripts/etc/setup_disk_monitoring.yml |
Optional configuration file |
Comments
0 comments
Please sign in to leave a comment.