[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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@amnesia:~$ sudo apt-get install nagios-plugins
 ...
 amnesia@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@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@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@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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs