add-config-to-nagios-server

add-config-to-nagios-server

Basic Ansible role to add a server to be monitored by Nagios. Defines services for SSH, Ping, MySQL and HTTP

Requirements

Assumes that your Nagios Server is installed in the following path /usr/local/nagios

Role Variables

The hostname of the machine you are monitoring. Host names should not have spaces in them.

    add_config_to_nagios_server_host_name: "my-server"   

The alias or Nagios friendly name to show in Nagios as the computer being monitored

    add_config_to_nagios_server_nagios_friendly_name: "My Important Server"

The fully qualified domain name or IP address of the machine you are adding to be monitored

    add_config_to_nagios_server_server_fqdn: "myserver-to-monitor.com"

Does Nagios need to monitor WordPress updates for this server? The default is false.

    add_config_to_nagios_server_is_a_wordpress_server: false

Dependencies

None

Example Playbook

    - hosts: your_nagios_server
      vars_files:
        - vars/main.yml
      roles:
        - { role: stancel.add-config-to-nagios-server }

or

    - 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

GPLv3

Author Information

Brad Stancel

About

Basic Ansible role to add a server to be monitored by Nagios

Install
ansible-galaxy install stancel/add-config-to-nagios-server
GitHub repository
License
Unknown
Downloads
205