Page 1 of 1

Action Command

Posted: Mon Mar 23, 2015 10:12 pm
by monitoreo1
Que tal necesito su ayuda para poder ejecutar un Action Command , tengo la siguinete instrucción:

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c stop_lzic -t 99

Al ejecutarla desde línea de comandos si se ejecuta correctamete pero, al crear un Action Component de tipo Command con variables no me funciona

/usr/local/nagios/libexec/reset_lzic.sh "%hostaddress%"

Como podría pasar al Action Component

La version es:
Nagios XI Version : 2014R2.6
x86_64
Red Hat Enterprise Linux Server release 7.0 (Maipo)
Gnome esta instalado

Re: Action Command

Posted: Tue Mar 24, 2015 9:34 am
by tmcdonald
Por favor, escribe sus preguntas en inglés para que los otros pueden leerlos.
monitoreo1 wrote:Hey I need your help to be able to execute an Action Command, I have the following command:

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c stop_lzic -t 99

When I run this command it works fine, however when I create an Action Component of the type "Command" with variables it does not work for me

/usr/local/nagios/libexec/reset_lzic.sh "%hostaddress%"

How can pass this to the Action Component?

The version is:
Nagios XI Version : 2014R2.6
x86_64
Red Hat Enterprise Linux Server release 7.0 (Maipo)
Gnome is installed
If you change the script to be '/bin/echo "%hostaddress" > /tmp/address' what is written to the file when you run the command?

Edit: I sent him some as-of-yet unpublished docs on how to integrate SSH links in Windows. It should be published in the near future.

Re: Action Command

Posted: Tue Mar 24, 2015 1:40 pm
by monitoreo1
Muchas gracias hemos resuelto el tema de este post.

Saludos !!!

Re: Action Command

Posted: Tue Mar 24, 2015 2:47 pm
by tmcdonald
monitoreo1 wrote:Thank you very much we have resolved the topic of this post

Greetings !!!
You are quite welcome! I'll be closing this thread now, but feel free to open another if you need anything in the future!