Skip to content

Commit 13754dc

Browse files
committed
Indented code blocks, added workflow_dispatch trigger to actions
1 parent 2ffe165 commit 13754dc

File tree

3 files changed

+31
-21
lines changed

3 files changed

+31
-21
lines changed

.github/workflows/pycodestyle.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
- 'docs/**'
1212
- '.github/**'
1313
- 'README.md'
14+
workflow_dispatch:
15+
paths-ignore:
16+
- 'docs/**'
17+
- '.github/**'
18+
- 'README.md'
1419

1520
jobs:
1621
test:

.github/workflows/pylint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
- 'docs/**'
1212
- '.github/**'
1313
- 'README.md'
14+
workflow_dispatch:
15+
paths-ignore:
16+
- 'docs/**'
17+
- '.github/**'
18+
- 'README.md'
1419

1520
jobs:
1621
test:

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
* Instead the plugins reads the parametes from a hidden toml-formatted configuration file
2222
* Default: `/etc/nagios/.mdbservice`, use `--credentialfile=/path/to/your/file`for a non-default location
2323
* Ideally change the file owner and permissions of `.mdbservice` so that only the user executing the plugins can read the config file
24-
```toml
25-
[localhost]
26-
hostname="localhost"
27-
port=27017
28-
user="yourdbuser"
29-
pw="secretpassword"
30-
authdb="admin"
31-
tls=true
32-
```
24+
```toml
25+
[localhost]
26+
hostname="localhost"
27+
port=27017
28+
user="yourdbuser"
29+
pw="secretpassword"
30+
authdb="admin"
31+
tls=true
32+
```
3333

3434
##### Parameters
3535
* `[instancename]` : you can configure multiple connections within one `.mdbservice`-file. This config section name corresponds with the `--instance`-argument of the plugin
@@ -42,18 +42,18 @@ tls=true
4242

4343
#### Configuring database use
4444
* Open a MongoDB DB shell, create a dedicated monitoring user and assign the `clusterMonitor` role
45-
```java
46-
use admin
47-
db.createUser(
48-
{
49-
user: "monitoring",
50-
pwd: passwordPrompt(),
51-
roles: [
52-
{ role: "clusterMonitor", db: "admin" }
53-
]
54-
}
55-
)
56-
```
45+
```java
46+
use admin
47+
db.createUser(
48+
{
49+
user: "monitoring",
50+
pwd: passwordPrompt(),
51+
roles: [
52+
{ role: "clusterMonitor", db: "admin" }
53+
]
54+
}
55+
)
56+
```
5757

5858
## Documentation
5959
* [check_mongodb_stats.py](docs/check_mongodb_stats.md)

0 commit comments

Comments
 (0)