Re: [Nagios-devel] ocsp slows nagios a great deal

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] ocsp slows nagios a great deal

Post by Guest »



> -----Original Message-----
> From: [email protected] [mailto:nagios-devel-
> [email protected]] On Behalf Of loren jan wilson
> Sent: Monday, August 14, 2006 9:36 AM
> To: [email protected]
> Subject: Re: [Nagios-devel] ocsp slows nagios a great deal
>=20
> Marc Powell said:
> > This is under RHAS3 with really no special tuning done and using the
> > documented OCSP procedure for distributed checks. Have you done any
> > testing to determine where the time penalty is originating?
>=20
> Could you be more specific about how I might do said testing?
> I guess I could start by compiling with "--enable-DEBUGALL".. would
> that tell me what I need to know? Any other things?
>=20

I'd personally start by adding time markers to your submit_check_result
script around important sections --

#!/bin/bash
LOGFILE=3D/usr/local/nagios/var/submit.log; export LOGFILE

echo -n `date` . " " >> $LOGFILE 2>&1
echo "Entering OCSP command " >> $LOGFILE 2>&1

{command line processing code}

echo -n `date` . " " >> $LOGFILE 2>&1
echo "Calling send_nsca " >> $LOGFILE 2>&1

{send_nsca command}

echo -n `date` . " " >> $LOGFILE 2>&1
echo "NSCA exited with exit code: $? " >> $LOGFILE 2>&1

echo -n `date` . " " >> $LOGFILE 2>&1
echo "Exiting submit_check_result" >> $LOGFILE 2>&1


That'll give you an idea if the delay comes from calling the ocsp
command in general orsend_nsca itself.

> Also, do the nagios developers know that ocsp is such a big
> performance hit (on solaris 10, at least), or is this coming as
> a surprise?

I've been on the lists for 4 years and I don't recall it. That's a lot
of time to forget things though and not many installations are of that
size. At any rate, it's not common. What Ethan knows of it only he can
say.

--
Marc





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked