Action Command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
monitoreo1
Posts: 124
Joined: Wed Feb 18, 2015 10:41 am

Action Command

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Action Command

Post 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.
Former Nagios employee
monitoreo1
Posts: 124
Joined: Wed Feb 18, 2015 10:41 am

Re: Action Command

Post by monitoreo1 »

Muchas gracias hemos resuelto el tema de este post.

Saludos !!!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Action Command

Post 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!
Former Nagios employee
Locked