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
Action Command
Re: Action Command
Por favor, escribe sus preguntas en inglés para que los otros pueden leerlos.
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.
If you change the script to be '/bin/echo "%hostaddress" > /tmp/address' what is written to the file when you run the command?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
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.
Former Nagios employee
-
monitoreo1
- Posts: 124
- Joined: Wed Feb 18, 2015 10:41 am
Re: Action Command
Muchas gracias hemos resuelto el tema de este post.
Saludos !!!
Saludos !!!
Re: Action Command
You are quite welcome! I'll be closing this thread now, but feel free to open another if you need anything in the future!monitoreo1 wrote:Thank you very much we have resolved the topic of this post
Greetings !!!
Former Nagios employee