Changes between Version 2 and Version 3 of how-to/servers/puppet/setup-nagios-monitor


Ignore:
Timestamp:
May 2, 2013, 10:24:37 PM (6 years ago)
Author:
Ross
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • how-to/servers/puppet/setup-nagios-monitor

    v2 v3  
    5353files.
    5454
    55 projects/puppet/modules/mayfirst/files/nagios/nagios-plugins/plugins/mf-SCRIPT-NAME
     55'''puppet/modules/mayfirst/files/nagios/nagios-plugins/plugins/mf-SCRIPT-NAME'''
    5656
    5757You can model scripts that already exist to check this.
     58
     59=== Add the check as a service ===
     60The service part of the infrastructure is the display component for nagios.
     61
     62'''puppet/modules/mayfirst/files/nagios/nagios3/conf.d/services_nagios2.cfg'''
     63
     64Copy a pre-existing stanza and make the necessary changes.  It will look something like this:
     65
     66{{{
     67define service{
     68        hostgroup_name                  upgrade-servers
     69        service_description             Upgrade
     70        check_command                   check-upgrade
     71        notification_interval           0
     72        use                             generic-service
     73}
     74}}}
    5875
    5976=== Finally add the hostgroup to nagios manifest ===