stancel.add-config-to-nagios-server
add-config-to-nagios-server
This is a simple Ansible role to help you add a server for monitoring with Nagios. It sets up checks for services like SSH, Ping, MySQL, and HTTP.
Requirements
Make sure your Nagios Server is installed at this path: /usr/local/nagios
Role Variables
- Host Name: This is the name of the machine you want to monitor. Avoid spaces in the name.
add_config_to_nagios_server_host_name: "my-server"
- Friendly Name: This is a friendly name that Nagios will show for the server.
add_config_to_nagios_server_nagios_friendly_name: "My Important Server"
- Server Address: This should be the full domain name or IP address of the server.
add_config_to_nagios_server_server_fqdn: "myserver-to-monitor.com"
- WordPress Monitoring: Set to true if you want Nagios to monitor WordPress updates on this server. The default is false.
add_config_to_nagios_server_is_a_wordpress_server: false
Dependencies
This role does not have any dependencies.
Example Playbook
Here's how to use this role in a playbook:
- hosts: your_nagios_server
vars_files:
- vars/main.yml
roles:
- { role: stancel.add-config-to-nagios-server }
Alternatively, you can define the variables directly in the playbook:
- hosts: your_nagios_server
vars:
add_config_to_nagios_server_host_name: "my-server"
add_config_to_nagios_server_nagios_friendly_name: "My Important Server"
add_config_to_nagios_server_server_fqdn: "myserver-to-monitor.com"
roles:
- stancel.add-config-to-nagios-server
License
This project is licensed under GPLv3.
Author Information
Informazioni sul progetto
Basic Ansible role to add a server to be monitored by Nagios
Installa
ansible-galaxy install stancel.add-config-to-nagios-server
Licenza
Unknown
Download
215
Proprietario