Fault tolerant OCSP's

Bruce bruce at webfarm.co.nz
Fri Sep 3 00:42:45 CEST 2004


Hi,

Jason Martin wrote:

>On Thu, Sep 02, 2004 at 06:48:44PM +1200, Bruce wrote:
>  
>
>>Basically every service event is logged to a status file on the remote 
>>server, then once a minute the remote server sends the data inside the 
>>file back to the main server. 
>>    
>>
>What mechanism do you use to send it?
>  
>

We use send_nsca to send the requests, echo to put the requests in a 
file and tail of course to tail to requests to a certian amount of lines,

This is the specfific line from the script that sends the requests:
tail -n 200 
/usr/local/nagios/var/ocsp.csv|/usr/local/nagios/bin/send_nsca -c 
/usr/local/nagios/etc/send_nsca.cfg -H gw.webfarm.co.nz -to 60


>  
>
>>alerts, so we dont worry that much about it) is if the file grows to 
>>more than 100 service reports in one batch it always fails, to avoid 
>>    
>>
>Why does it fail?
>  
>

It fails when the file is larger than a certian amount and the send_nsca 
program timesout from sending the data to the server, we have avoided it 
a little by adding the -to 60 to the end of the command but it still 
fails if it goes over around 200 lines.

Cheers,

-- 
+------------------------------------------+      \|||/
| Bruce at WebFarm.co.nz       +64 06 7572881 |      (o o)
| Systems Technician                       +---ooO-(_)-Ooo---+
|                                                            |
| WebFarm                           http://www.webfarm.co.nz |
| FreeParking                   http://www.freeparking.co.nz |
+------------------------------------------------------------+

... FreeParking - NZ's best value Domain, WebHosting and email accounts - bar none 
... WebFarm - NZ's eCommerce specialists since 1997 





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list