Oefenweb.nagios_client
nagios-client
Set up a machine (client) so it can be monitored by nagios (server).
Requirements
None
Variables
nagios_client_install[default:[]]: Packages to install (e.g.percona-nagios-plugins)nagios_client_user: [default:nagios]: The user that the nagios server will use to loginnagios_client_group: [default:nagios]: The primary group of the nagios usernagios_client_groups: [default:[]]: The secondary groups of the nagios usernagios_client_authorized_keys: [default:[]]: Authorized key declarationsnagios_client_authorized_keys.{n}.src: [required]: The local path of the keynagios_client_authorized_keys.{n}.state: [optional, default:present]: Statenagios_client_script_map[default:{}]: Script declarationsnagios_client_script_map.key: [required]: The identifier of the file (e.g.check_raid)nagios_client_script_map.key.src: [required]: The local path of the file to copy, can be absolute or relative (e.g.../../../files/nagios-client/usr/lib/nagios/plugins/check_raid)nagios_client_script_map.key.dest: [required]: The remote path of the file to copy (e.g./usr/lib/nagios/plugins/check_raid)nagios_client_script_map.key.owner: [optional, defaultroot]: The name of the user that should own the filenagios_client_script_map.key.group: [optional, defaultroot]:The name of the group that should own the filenagios_client_script_map.key.mode: [optional, default0755]: The mode of the file
Dependencies
None
Example
---
- hosts: all
roles:
- oefenweb.nagios-client
vars:
nagios_client_authorized_keys:
- src: ../../../files/nagios-client/etc/nagios/id_rsa.pub
License
MIT
Author Information
Mischa ter Smitten
Feedback, bug-reports, requests, ...
Are welcome!
ansible-galaxy install Oefenweb.nagios_client