[tor-bugs] #12803 [BridgeDB]: BridgeDB needs Nagios checks for the HTTPS Distributor

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Aug 6 04:13:01 UTC 2014


#12803: BridgeDB needs Nagios checks for the HTTPS Distributor
-----------------------------+------------------------------------
     Reporter:  isis         |      Owner:  isis
         Type:  enhancement  |     Status:  new
     Priority:  major        |  Milestone:
    Component:  BridgeDB     |    Version:
   Resolution:               |   Keywords:  bridgedb-https, nagios
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+------------------------------------

Comment (by dawuud):

 We can easily use check_http to do this:

 {{{
 amnesia at amnesia:~$ sudo apt-get install nagios-plugins
 ...
 amnesia at amnesia:~$ usewithtor /usr/lib/nagios/plugins/check_http -H
 bridges.torproject.org --ssl=3
 HTTP OK: HTTP/1.1 200 OK - 4098 bytes in 2.560 second response time
 |time=2.559883s;;;0.000000 size=4098B;;;0
 amnesia at amnesia:~$ usewithtor /usr/lib/nagios/plugins/check_http -H
 bridges.torproject.org --ssl=3 --string=yoyo
 HTTP CRITICAL: HTTP/1.1 200 OK - string 'yoyo' not found on
 'https://bridges.torproject.org:443/' - 4098 bytes in 4.560 second
 response time |time=4.559573s;;;0.000000 size=4098B;;;0
 amnesia at amnesia:~$ usewithtor /usr/lib/nagios/plugins/check_http -H
 bridges.torproject.org --ssl=3 --string=bridges
 HTTP OK: HTTP/1.1 200 OK - 4098 bytes in 2.571 second response time
 |time=2.570934s;;;0.000000 size=4098B;;;0
 amnesia at amnesia:~$
 }}}


 The person with admin access to your icinga server will have to add a few
 lines to it's configuration...
 specifying the service check schedule, hostgroup/servicegroup etc.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12803#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list