Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit e974c1e

Browse files
author
Michael Kraus
committed
Add option "-j" to output response as JSON
1 parent dbdbbde commit e974c1e

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,38 @@ OK: No entries found|'count'=0;0;0 'problem_count'=0;0;0
4040
## Program help
4141
```
4242
Usage of ./check_nsc_web:
43-
-f int
44-
Round performance data float values to this number of digits
43+
44+
check_nsc_web is a REST client for the NSClient++ webserver for querying
45+
and receiving check information over HTTPS.
46+
47+
Copyright 2016 Michael Kraus <Michael.Kraus@consol.de>
48+
49+
This program is free software: you can redistribute it and/or modify
50+
it under the terms of the GNU General Public License as published by
51+
the Free Software Foundation, either version 3 of the License, or
52+
(at your option) any later version.
53+
54+
This program is distributed in the hope that it will be useful,
55+
but WITHOUT ANY WARRANTY; without even the implied warranty of
56+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57+
GNU General Public License for more details.
58+
59+
You should have received a copy of the GNU General Public License
60+
along with this program. If not, see <http://www.gnu.org/licenses/>.
61+
62+
Example:
63+
check_nsc_web -p "password" -u "https://<SERVER_RUNNING_NSCLIENT>:8443" check_cpu
64+
65+
Usage:
66+
check_nsc_web [options] [NSClient query parameters]
67+
68+
check_nsc_web can and should be built with CGO_ENABLED=0
69+
70+
Options:
71+
-V Print program version.
72+
-f int
73+
Round performance data float values to this number of digits. (default -1)
74+
-j Print out JOSN response body.
4575
-k Insecure mode - skip TLS verification.
4676
-p string
4777
NSClient++ webserver password.
@@ -50,4 +80,6 @@ Usage of ./check_nsc_web:
5080
-u string
5181
NSCLient++ URL, for example https://10.1.2.3:8443.
5282
-v Enable verbose output.
83+
-x string
84+
Extra text to appear in output.
5385
```

0 commit comments

Comments
 (0)