Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

nagios3 (39) Versions 1.4.7

Setup nagios3 with common checks predefined

Berkshelf/Librarian
Policyfile
Knife
cookbook 'nagios3', '= 1.4.7'
cookbook 'nagios3', '= 1.4.7', :supermarket
knife cookbook site install nagios3
knife cookbook site download nagios3
README
Dependencies
Quality

nagios3 Cookbook

Install and Configure nagios3 with nagiosgraph and common checks predefined

No special configuration is required to enforce the basic checks.

Requirements

Platform

  • Debian/Ubuntu
  • RHEL/CentOS/Scientific
  • Fedora
  • ArchLinux
  • FreeBSD

Recipes

  • default
  • nagios_server
  • nagios_client
  • nagios_check

Usage

Ensure that the nagios server and client are installed and the service is managed with recipe[nagios3].

Attributes List

  • node['nagios']['server_ip] - The nagios server ip. If it's 127.0.0.1 or current chef client ip, this machine will install nagios server. Default value is 127.0.0.1
  • node['nagios'][client_ip_list] - The nagios client ip list. If it's 127.0.0.1 or current chef client ip is in the ip list, this machine will install nagios server. Default value is 127.0.0.1
  • node['nagios']['allowed_host] - allowed_host for nrpe call. Default is "127.0.0.1"
  • node['nagios']['admin_username] - admin username to login webUI of nagios. Default is nagiosadmin
  • node['nagios']['admin_password_hash] - The hash value of password. Default is password1234. The has can be generated by cli like "openssl passwd -1 password1234"

Examples and Common usage

Current machine install both nagios server and client

"nagios": {
  "server_ip": "127.0.0.1",
  "client_ip_list": "127.0.0.1"
}

Customize admin username and password for nagios server

"nagios": {
  "server_ip": "127.0.0.1",
  "client_ip_list": "127.0.0.1"
  "admin_username": "mynagios"
  # generated by "openssl passwd -1 mypassword"
  "admin_password_hash": "$1$hZeGGyy1$AbzVOr8H6DLJTlppWP2zx."
}

Current machine only install nagios client

Suppose we have a cluster of 3 machines, which ip of 192.168.1.3, 192.168.1.4, 192.168.1.5

And we want to deploy nagios system like: 192.168.1.3 as nagios server, all other machines as nagios clients

"nagios": {
  "server_ip": "192.168.1.3",
  "client_ip_list": "192.168.1.3;192.168.1.4;192.168.1.5"
  }
}

License & Authors


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

linux-basic >= 0.0.0
apache2 >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric
            

1.4.7 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:34
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:37
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:38
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:39
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:42
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_check.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:55
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:73
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:84
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:93
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:105
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:116
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:129
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:136
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:143
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:151
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:169
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:174
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:90
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:91
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:102
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:103
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:111
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:112
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:138
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:144
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:145
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:153
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:219
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:230
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:238
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:269
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:270
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:276
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:15
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:21
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:121
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:24
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:33
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:40
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:46
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:65
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:72
FC002: Avoid string interpolation where not required: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:153
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/attributes/default.rb:5
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/default.rb:12
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/default.rb:13
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/default.rb:14
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/default.rb:18
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/default.rb:19
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/default.rb:20
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_check.rb:65
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_check.rb:72
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:12
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:64
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:75
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:96
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:107
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:118
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_client.rb:121
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:12
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:30
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:56
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:60
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:78
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:82
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:98
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:107
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:116
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:147
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:162
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:169
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:171
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:172
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:173
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:190
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:215
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:224
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:227
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:235
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:243
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:246
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:251
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:256
FC019: Access node attributes in a consistent manner: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/recipes/nagios_server.rb:261
FC034: Unused template variables: /tmp/cook/9f520d972c6fdedf6ba88c7d/nagios3/templates/default/my_nrpe.cfg.erb:1