[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] Monitoring handle server with nagios



You could also send the request directly to your own handle server's HTTP port 8000.  That will prevent problems being obscured by caching at hdl.handle.net.

Robert

On 2017-02-16, at 08:13, Evelio Martínez <evelio@masmedios.com> wrote:

Thanks Pablo
 
That’s a good workaround.
 
I will test it.
 
Regards
Evelio
 
 
De: Pablo J Rebollo Sosa [mailto:pablo.rebollo@upr.edu] 
Enviado el: jueves, 16 de febrero de 2017 13:25
Para: Evelio Martínez
CC: handle-info@cnri.reston.va.us; "Sergio E. López"
Asunto: Re: [Handle-info] Monitoring handle server with nagios
 
Evelio,


We monitor handle server in a indirect way by quering an existing item on DSpace through hdl.handle.net.  For example:

            curl http://hdl.handle.net/11721/1 
    <html><head><title>Handle Redirect</title></head> <body><a href=""http://dire.upr.edu/handle/11721/1" style="color: purple; text-decoration: underline;" class="">http://dire.upr.edu/handle/11721/1">http://dire.upr.edu/handle/11721/1</a></body></html>

If the handle server is running you will receive a redirect to your DSpace instance.

Having this in mind, the following Nagios check will serve to monitor the service.  The first argument ($ARG1$) is for the handle ID/number.  The second argument ($ARG2$) is for the hostname associated to the handle.

   # 'check_handle' command definition
   define command{
      command_name    check_handle
      command_line    $USER1$/check_http -H hdl.handle.net -u /$ARG1$/1 -d $ARG2$/handle/$ARG1$/1
   }


The check will query the hdl.handle.net and check if the output contains the hostname by a regex.

Hope this help.

Pablo J. Rebollo-Sosa

Universidad de Puerto Rico
Oficina de Sistemas de Información - Administración Central
Jardín Botánico Sur
(787)250-0000 x 5400
 
 
On Feb 16, 2017, at 7:43 AM, Evelio Martínez <evelio@masmedios.com> wrote:
 
 
Hello 
 
We have a DSpace 5.5 recently migrated to a new server o a new provider and we have make a script  to start the handle-server after rebooting.
Sometimes it does not start after rebooting, so we have to start it manually.
 
Is there any way to monitor handle server service on  port 2641 or 8000 with nagios to know  if it is ok or ko?
 
Thanks in advance
 
 
<image002.png>
Evelio Martínez
Sistemas TIC
CISA, CCNA
Dept. de Tecnologías y Sistemas de Información
C/ Garcilaso, 15-bajo
46003 Valencia
Telf: 96 369 41 23 / 677 405 909
Fax: 96 369 34 39 
<image002.png>

<image003.gif>
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, puede contener información de carácter confidencial exclusivamente dirigida a su(s) destinatario(s). De acuerdo con la LOPD, MASmedios informa de que los datos personales contenidos quedarán sometidos a un tratamiento del que aquélla es responsable. Los interesados consienten el tratamiento de sus datos para estos fines, pudiendo ejercitar sus derechos de acceso, rectificación, cancelación y oposición dirigiéndose por escrito a MASmedios para la gestión de la información, calle Garcilaso 15-B 46003 Valencia o en protecciondatos@masmedios.com
 
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info
 
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info

_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info