Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update readme.

  • Loading branch information...
commit e5614e45f489106e66f826613ca8e78c0142d302 1 parent e406f4d
@PeterScott PeterScott authored
Showing with 23 additions and 13 deletions.
  1. +23 −13 checkserver/README.md
View
36 checkserver/README.md
@@ -6,7 +6,9 @@ Simple server that runs checks without Python startup overhead
### Dependencies
-[Tornado](/facebook/tornado)
+* [Eventlet](http://eventlet.net/)
+
+* [Flask](http://flask.pocoo.org/)
### Usage
@@ -18,22 +20,30 @@ when you visit
http://localhost:8111/check/<name>
+Each check will be run in a thread pool. If you want to include arguments, you can do it
+like this:
+
+ http://localhost:8111/check/<name>?arg=hello&arg=world
+
When the check changes, you can reload the changed code by visiting
http://localhost:8111/update/<name>
-That's it! We also include check.sh which returns the proper exit code from a check.
+That's it! We also include check.sh which returns the proper exit code from a check. You
+can see stats for how many times each check has been called at
+
+ http://localhost:8111/
Using checkserver is simple, run an instance of the server, and then add nagios checks like:
- define command {
- command_name check_<name>
- command_line /usr/lib/nagios/plugins/check.sh <name> args like $HOSTNAME$
- }
-
- define service {
- use your-service-type
- service_description Your Description Here
- check_command check_<name>
- hostgroup_name your-hostgroup
- }
+ define command {
+ command_name check_<name>
+ command_line /usr/lib/nagios/plugins/check.sh <name> args like $HOSTNAME$
+ }
+
+ define service {
+ use your-service-type
+ service_description Your Description Here
+ check_command check_<name>
+ hostgroup_name your-hostgroup
+ }
Please sign in to comment.
Something went wrong with that request. Please try again.