Pages: [1]   Go Down
Author Topic: Modulo Check HTTP server lance un script en windows server  (Read 706 times)
0 Members and 2 Guests are viewing this topic.
alexbogus
Jr. Member
**

Karma: 0
Offline Offline

Posts: 10


View Profile
« on: May 28, 2010, 09:41:27 AM »

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
Logged

alexbogus
Jr. Member
**

Karma: 0
Offline Offline

Posts: 10


View Profile
« Reply #1 on: May 28, 2010, 11:28:06 AM »


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:\xampp\apache_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
Logged

rnovoa
Administrator
Sr. Member
*****

Karma: 2
Offline Offline

Posts: 119



View Profile
« Reply #2 on: May 31, 2010, 05:19:54 PM »

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
Logged

alexbogus
Jr. Member
**

Karma: 0
Offline Offline

Posts: 10


View Profile
« Reply #3 on: June 01, 2010, 09:21:25 AM »


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)
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST