cookbook 'checkmk', '= 1.7.1'
checkmk (4) Versions 1.7.1 Follow1
Installs/Configures checkmk server/agent
cookbook 'checkmk', '= 1.7.1', :supermarket
knife supermarket install checkmk
knife supermarket download checkmk
checkmk
Enviromental required variables that need to be defined<br/>
CMK_TOKEN - To hold the token created by the server
CMK_IP - The IP address of the CheckMK server
Here is an example of where to get the free version:<br />
This for RHEL/CentOS only<br />
```
osv=8 # Version of RHEL/CentOS
cmkv='1.6.0p25' # 1.6 Version of checkmk server
cmkv='2.0.0p8' # 2.0 Version of checkmk server
1.6.0
wget -q https://download.checkmk.com/checkmk/${cmkv}/check-mk-enterprise-${cmkv}.demo-el${osv}-38.x86_64.rpm
2.0.0
wget -q https://download.checkmk.com/checkmk/${cmkv}/check-mk-free-${cmkv}-el${osv}-38.x86_64.rpm
My local server to get pre-packaged agent
wget http://checkmks/cmk/check_mk/agents/check-mk-agent-${cmkv}-1.noarch.rpm
curl "http://checkmks/cmk/check_mk/webapi.py?action=get_all_hosts&_username=automation&_secret=$akey"
```
The following will list the CheckMK token, if on server
cat /opt/omd/sites/cmk/var/check_mk/web/automation/automation.secret
The following will list the CheckMK token, from host
knife ssh -m checkmks -x vagrant -P vagrant 'sudo cat /opt/omd/sites/cmk/var/check_mk/web/automation/automation.secret'
Creating a host:
curl "http://checkmks/cmk/check_mk/webapi.py?action=add_host&_username=automation&_secret=$akey" -d 'request={"hostname":"checkmks","folder":"","attributes":{"ipaddress":"10.1.1.20","site":"cmk","tag_agent":"cmk-agent"}}'
Executing a Service Discovery
curl "http://checkmks/cmk/check_mk/webapi.py?action=discover_services&_username=automation&_secret=$akey" -d 'request={"hostname":"checkmks"}'
Activating changes
curl "http://checkmks/cmk/check_mk/webapi.py?_secret=$akey&_username=automation&action=activate_changes" -d 'request={"sites":["cmk"]}'
Dependent cookbooks
line >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
License Metric
1.7.1 passed this metric
1.7.1 passed this metric