File tree 2 files changed +182
-148
lines changed
2 files changed +182
-148
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,25 @@ curl -s -u '<username>:<password>' -H "Content-Type: application/json" -X POST -
27
27
```
28
28
curl -s -u '<username>:<password>' https://example.org/pnp4nagios/index.php/api/hosts
29
29
```
30
+
30
31
#### List services of a host
31
32
```
32
33
curl -s -u '<username>:<password>' -H "Content-Type: application/json" -X POST -d '
33
34
{
34
35
"host":"host.example.org"
35
36
}' https://example.org/pnp4nagios/index.php/api/services
36
37
```
38
+
39
+ You can use regular expressions for host lists:
40
+
41
+ ```
42
+ curl -s -u '<username>:<password>' -H "Content-Type: application/json" -X POST -d '
43
+ {
44
+ "host":"/^local"
45
+ }' https://example.org/pnp4nagios/index.php/api/services
46
+ ```
47
+
48
+
37
49
#### List labels of a service of specific host
38
50
```
39
51
curl -s -u '<username>:<password>' -H "Content-Type: application/json" -X POST -d '
You can’t perform that action at this time.
0 commit comments