Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Bienvenido a la comunidad de Pandora FMS Forums Soporte de la comunidad Modulo Check HTTP server lance un script en windows server

  • Modulo Check HTTP server lance un script en windows server

    Posted by alexbogus on mayo 28, 2010 at 12:41

    Hola

    Leyendo la documentación no encuentro cómo hacer una cosa que aparentemente parece sencilla. He habilitado el módulo “CHECK HTTP” para que monitorice un servidor XAMPP en Windows y necesitaría que cuando se dispare esta alerta, ejecute un .bat en el servidor Windows que contiene el servidor XAMPP para hacer un restart de Apache y MySQL.

    Muchas gracias por adelantado
    Un cordial saludo
    Alex Casanova

    alexbogus replied 14 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • alexbogus

    Member
    mayo 28, 2010 at 14:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    He probado con el servidor UDP añadiendo esto al pandora_agent.conf

    udp_server 1
    udp_server_port 4321
    udp_server_auth_address xx.xx.xx.xx
    process_apache_start c:xamppapache_restart.bat

    Y desde el servidor PANDORA_FMS envío el siguiente comando

    ./udp_client.pl xx.xx.xx.xx 4321 START_PROCESS_apache

    Y en los logs de pandora_agent.log veo el siguiente comando:

    UDP Server: Received invalid data

  • rnovoa

    Member
    mayo 31, 2010 at 20:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hola Alex,

    Prueba sin los guiones bajos:

    ./udp_client.pl xx.xx.xx.xx 4321 “START PROCESS apache”

    Aquí tienes más información sobre el servidor UDP del agente y los comandos que acepta:

    http://www.openideas.info/wiki/index.php?title=Pandora_3.0:Documentation_es:Configuracion#Servidor_UDP

  • alexbogus

    Member
    junio 1, 2010 at 12:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Muchas gracias

    Enviando el comando ./udp_client.pl xx.xx.xx.xx 4321 “START PROCESS apache” no observo errores en el log del agente. ¿debe aparecer algún mensaje tipo apache start succesfully?

    Un cordial saludo
    Atte.

    Alex Casanova (EA5HJX)