Changes between Version 2 and Version 3 of how-to/servers/puppet/setup-nagios-monitor
- Timestamp:
- May 3, 2013, 2:24:37 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
how-to/servers/puppet/setup-nagios-monitor
v2 v3 53 53 files. 54 54 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''' 56 56 57 57 You can model scripts that already exist to check this. 58 59 === Add the check as a service === 60 The 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 64 Copy a pre-existing stanza and make the necessary changes. It will look something like this: 65 66 {{{ 67 define 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 }}} 58 75 59 76 === Finally add the hostgroup to nagios manifest ===