omdclient 1.4.2__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- omdclient-2.0.0/LICENSE +4 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/PKG-INFO +13 -43
- {omdclient-1.4.2 → omdclient-2.0.0}/README.md +9 -40
- omdclient-2.0.0/omdclient/__init__.py +833 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/omdclient.egg-info/PKG-INFO +13 -43
- {omdclient-1.4.2 → omdclient-2.0.0}/omdclient.egg-info/SOURCES.txt +2 -2
- {omdclient-1.4.2 → omdclient-2.0.0}/setup.py +2 -2
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-activate +9 -14
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-bulkimport +25 -16
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-host-crud +45 -68
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-nagios-ack +10 -14
- omdclient-1.4.2/usr/bin/omd-reinventory → omdclient-2.0.0/usr/bin/omd-nagios-count +27 -23
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-nagios-downtime +13 -29
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-nagios-hostlist +7 -17
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-nagios-hosts-with-problem +17 -15
- {omdclient-1.4.2 → omdclient-2.0.0}/usr/bin/omd-nagios-report +23 -15
- omdclient-1.4.2/usr/bin/omd-host-tag → omdclient-2.0.0/usr/bin/omd-reinventory +52 -76
- omdclient-1.4.2/omdclient/__init__.py +0 -561
- omdclient-1.4.2/usr/bin/omd-puppet-enc +0 -138
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-activate.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-host-crud.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-host-tag.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-nagios-ack.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-nagios-downtime.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-nagios-hostlist.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-nagios-hosts-with-problem.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-nagios-report.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-puppet-enc.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/man/man1/omd-reinventory.1 +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/omdclient.egg-info/dependency_links.txt +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/omdclient.egg-info/top_level.txt +0 -0
- {omdclient-1.4.2 → omdclient-2.0.0}/setup.cfg +0 -0
omdclient-2.0.0/LICENSE
ADDED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: omdclient
|
|
3
|
-
Version:
|
|
4
|
-
Summary: omdclient check_mk
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: omdclient check_mk API interface
|
|
5
5
|
Home-page: https://github.com/tskirvin/omdclient/
|
|
6
6
|
Author: Tim Skirvin
|
|
7
7
|
Author-email: tskirvin@fnal.gov
|
|
@@ -13,12 +13,12 @@ Description: # omdclient
|
|
|
13
13
|
omdclient provides a suite of command-line tools to interact with the APIs
|
|
14
14
|
associated with the `check_mk`/Open Monitoring Distribution tool suite.
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## check\_mk API
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
suite. This is documented at:
|
|
18
|
+
<https://docs.checkmk.com/latest/en/rest_api.html>
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
This interface has been standard since about check\_mk 2.0. It's more
|
|
21
|
+
powerful and more complex than their old WATO API.
|
|
22
22
|
|
|
23
23
|
### omd-activate
|
|
24
24
|
|
|
@@ -41,10 +41,6 @@ Description: # omdclient
|
|
|
41
41
|
|
|
42
42
|
Reinventory a host in OMD.
|
|
43
43
|
|
|
44
|
-
## Multisite/Nagios
|
|
45
|
-
|
|
46
|
-
<https://mathias-kettner.de/checkmk_multisite_automation.html>
|
|
47
|
-
|
|
48
44
|
### omd-nagios-ack
|
|
49
45
|
|
|
50
46
|
Acknowledges host/service alerts from the command-line.
|
|
@@ -81,38 +77,6 @@ Description: # omdclient
|
|
|
81
77
|
|
|
82
78
|
OMDCONFIG=/tmp/myconfig.yaml omd-activate
|
|
83
79
|
|
|
84
|
-
### Configuration of 'expanded views'
|
|
85
|
-
|
|
86
|
-
The report scripts depend on 'expanded view' versions of the
|
|
87
|
-
`hostproblems` and `svcproblems` views, which add comments. In order to
|
|
88
|
-
add these, you generally have to:
|
|
89
|
-
|
|
90
|
-
1. Edit view `hostproblems` - it's a default view, so you'll go to 'clone'.
|
|
91
|
-
* Change the name from `hostproblems` to `hostproblems_expanded`.
|
|
92
|
-
* Update the list of columns to read:
|
|
93
|
-
1. Hostname
|
|
94
|
-
2. Host icons
|
|
95
|
-
3. Host state
|
|
96
|
-
4. Output of host check plugin
|
|
97
|
-
5. Number of services in state OK
|
|
98
|
-
6. Number of services in state WARN
|
|
99
|
-
7. Number of services in state UNKNOWN
|
|
100
|
-
8. Number of services in state CRIT
|
|
101
|
-
9. Number of services in state PENDING
|
|
102
|
-
10. The age of the current host state
|
|
103
|
-
11. Host comments
|
|
104
|
-
* (newer versions) set to 'public' and 'hidden'.
|
|
105
|
-
* Save.
|
|
106
|
-
2. Edit the view `svcproblems` and created `svcproblems_expanded`, same
|
|
107
|
-
as above but just add the column `Service Comments`.
|
|
108
|
-
|
|
109
|
-
In newer versions of check\_mk, you may also need to make these views
|
|
110
|
-
Public (check `Visibility` / `Make this view available for other users` /
|
|
111
|
-
`Publish to all users`). Also, the `hostproblems` base view may have
|
|
112
|
-
changed: I have for `hostproblems_expanded`:
|
|
113
|
-
|
|
114
|
-
(Thanks to Christian Bryn - https://github.com/epleterte - for the docs!)
|
|
115
|
-
|
|
116
80
|
## How To Build
|
|
117
81
|
|
|
118
82
|
There is a `Makefile.bak` and a `*.spec` file that mirrors my local build
|
|
@@ -125,12 +89,18 @@ Description: # omdclient
|
|
|
125
89
|
`pod2man` if you're ambitious; and run `python setup.py install` to
|
|
126
90
|
install the python library.
|
|
127
91
|
|
|
92
|
+
Also possible to do it all with pipx:
|
|
93
|
+
|
|
94
|
+
pipx install .
|
|
95
|
+
pipx runpip omdclient install -r requirements.txt
|
|
96
|
+
|
|
128
97
|
### Debian
|
|
129
98
|
|
|
130
99
|
make -f Makefile.deb build
|
|
131
100
|
|
|
132
101
|
That should build a full .deb package.
|
|
133
102
|
|
|
134
|
-
Keywords: check_mk,omd,nagios,api
|
|
103
|
+
Keywords: check_mk,omd,nagios,api
|
|
135
104
|
Platform: UNKNOWN
|
|
136
105
|
Description-Content-Type: text/markdown
|
|
106
|
+
License-File: LICENSE
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
omdclient provides a suite of command-line tools to interact with the APIs
|
|
4
4
|
associated with the `check_mk`/Open Monitoring Distribution tool suite.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## check\_mk API
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
suite. This is documented at:
|
|
8
|
+
<https://docs.checkmk.com/latest/en/rest_api.html>
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
This interface has been standard since about check\_mk 2.0. It's more
|
|
11
|
+
powerful and more complex than their old WATO API.
|
|
12
12
|
|
|
13
13
|
### omd-activate
|
|
14
14
|
|
|
@@ -31,10 +31,6 @@ update/remove a given host tag in OMD
|
|
|
31
31
|
|
|
32
32
|
Reinventory a host in OMD.
|
|
33
33
|
|
|
34
|
-
## Multisite/Nagios
|
|
35
|
-
|
|
36
|
-
<https://mathias-kettner.de/checkmk_multisite_automation.html>
|
|
37
|
-
|
|
38
34
|
### omd-nagios-ack
|
|
39
35
|
|
|
40
36
|
Acknowledges host/service alerts from the command-line.
|
|
@@ -71,38 +67,6 @@ configs, e.g.:
|
|
|
71
67
|
|
|
72
68
|
OMDCONFIG=/tmp/myconfig.yaml omd-activate
|
|
73
69
|
|
|
74
|
-
### Configuration of 'expanded views'
|
|
75
|
-
|
|
76
|
-
The report scripts depend on 'expanded view' versions of the
|
|
77
|
-
`hostproblems` and `svcproblems` views, which add comments. In order to
|
|
78
|
-
add these, you generally have to:
|
|
79
|
-
|
|
80
|
-
1. Edit view `hostproblems` - it's a default view, so you'll go to 'clone'.
|
|
81
|
-
* Change the name from `hostproblems` to `hostproblems_expanded`.
|
|
82
|
-
* Update the list of columns to read:
|
|
83
|
-
1. Hostname
|
|
84
|
-
2. Host icons
|
|
85
|
-
3. Host state
|
|
86
|
-
4. Output of host check plugin
|
|
87
|
-
5. Number of services in state OK
|
|
88
|
-
6. Number of services in state WARN
|
|
89
|
-
7. Number of services in state UNKNOWN
|
|
90
|
-
8. Number of services in state CRIT
|
|
91
|
-
9. Number of services in state PENDING
|
|
92
|
-
10. The age of the current host state
|
|
93
|
-
11. Host comments
|
|
94
|
-
* (newer versions) set to 'public' and 'hidden'.
|
|
95
|
-
* Save.
|
|
96
|
-
2. Edit the view `svcproblems` and created `svcproblems_expanded`, same
|
|
97
|
-
as above but just add the column `Service Comments`.
|
|
98
|
-
|
|
99
|
-
In newer versions of check\_mk, you may also need to make these views
|
|
100
|
-
Public (check `Visibility` / `Make this view available for other users` /
|
|
101
|
-
`Publish to all users`). Also, the `hostproblems` base view may have
|
|
102
|
-
changed: I have for `hostproblems_expanded`:
|
|
103
|
-
|
|
104
|
-
(Thanks to Christian Bryn - https://github.com/epleterte - for the docs!)
|
|
105
|
-
|
|
106
70
|
## How To Build
|
|
107
71
|
|
|
108
72
|
There is a `Makefile.bak` and a `*.spec` file that mirrors my local build
|
|
@@ -115,6 +79,11 @@ in `*.spec`. Scripts from `usr/bin/*` go into your path; create
|
|
|
115
79
|
`pod2man` if you're ambitious; and run `python setup.py install` to
|
|
116
80
|
install the python library.
|
|
117
81
|
|
|
82
|
+
Also possible to do it all with pipx:
|
|
83
|
+
|
|
84
|
+
pipx install .
|
|
85
|
+
pipx runpip omdclient install -r requirements.txt
|
|
86
|
+
|
|
118
87
|
### Debian
|
|
119
88
|
|
|
120
89
|
make -f Makefile.deb build
|