This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check_nrpe_ng: use requests package to query nrpe-ng server
This has lots of advantages, and only one disadvantage as far as I can tell: needing the additional dependency of the requests package. I believe this is negligible as the requests package is pretty ubiquitous. The advantages are: - cleaner, more legible code, which is less likely to contain hidden bugs because we're not directly creating sockets, SSL contexts, and HTTP requests - all of the client-side TODO items have been implemented, that is: * ssl_verify_server can now be disabled * the timeout setting is now honoured * timeouts return CRITICAL status by default, but can be changed back to UNKNOWN with the -u option as per check_nrpe
- Loading branch information
Showing
3 changed files
with
65 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,7 @@ | |
'nrpe-ng = nrpe_ng.server:main', | ||
], | ||
}, | ||
install_requires=[ | ||
'requests', | ||
], | ||
) |