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

Commit

Permalink
Add option "-j" to output response as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kraus committed Apr 25, 2017
1 parent dbdbbde commit e974c1e
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,38 @@ OK: No entries found|'count'=0;0;0 'problem_count'=0;0;0
## Program help
```
Usage of ./check_nsc_web:
-f int
Round performance data float values to this number of digits
check_nsc_web is a REST client for the NSClient++ webserver for querying
and receiving check information over HTTPS.
Copyright 2016 Michael Kraus <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Example:
check_nsc_web -p "password" -u "https://<SERVER_RUNNING_NSCLIENT>:8443" check_cpu
Usage:
check_nsc_web [options] [NSClient query parameters]
check_nsc_web can and should be built with CGO_ENABLED=0
Options:
-V Print program version.
-f int
Round performance data float values to this number of digits. (default -1)
-j Print out JOSN response body.
-k Insecure mode - skip TLS verification.
-p string
NSClient++ webserver password.
Expand All @@ -50,4 +80,6 @@ Usage of ./check_nsc_web:
-u string
NSCLient++ URL, for example https://10.1.2.3:8443.
-v Enable verbose output.
-x string
Extra text to appear in output.
```

0 comments on commit e974c1e

Please sign in to comment.