cookbook 'nagios3', '~> 1.7.1'
nagios3
(39) Versions
1.7.1
-
Follow1
Setup nagios3 with common checks predefined
cookbook 'nagios3', '~> 1.7.1', :supermarket
knife supermarket install nagios3
knife supermarket download nagios3
nagios3 Cookbook
Install and Configure nagios3 monitor 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
- Author:: DennyZhang001 denny@dennyzhang.com
- Copyright:: 2015, http://DennyZhang.com
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
apache2 >= 0.0.0 |
apt >= 0.0.0 |
yum-epel >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.7.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.7.1 failed this metric
FC064: Ensure issues_url is set in metadata: nagios3/metadata.rb:1
FC065: Ensure source_url is set in metadata: nagios3/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nagios3/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.7.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
nagios3/nagios1.png
nagios3/nagios2.png
Testing File Metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.7.1 failed this metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.7.1 failed this metric
FC064: Ensure issues_url is set in metadata: nagios3/metadata.rb:1
FC065: Ensure source_url is set in metadata: nagios3/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nagios3/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.7.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
nagios3/nagios1.png
nagios3/nagios2.png
Testing File Metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.7.1 failed this metric
FC065: Ensure source_url is set in metadata: nagios3/metadata.rb:1
FC066: Ensure chef_version is set in metadata: nagios3/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.7.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
nagios3/nagios1.png
nagios3/nagios2.png
Testing File Metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.7.1 failed this metric
1.7.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number