Taking a user input and doing something with it
Posted: Thu Nov 24, 2016 6:22 am
Is there are way to take a user input from the XI GUI and do something with it on the server?
Specifically, I'd like to be able to take a user input from the XI GUI, send it back to the server and trigger a script and/or Nagios plugin, passing the user input as an argument.
N.B. I know how to pass argument in; this query is about how I can get a user input from the XI GUI back to the server in a form that I can use it as an argument.
I can think of a way to do this (i.e. write a custom dashlet to take the input, add my own custom URL to Nagios' Apache server and have this URL trigger the script, then have the custom dashlet send the user input to the custom URL). I'm just trying to find out if there's a better way that Nagios XI more obviously supports (the way I'm thinking might not even be possible).
Many thanks.
Specifically, I'd like to be able to take a user input from the XI GUI, send it back to the server and trigger a script and/or Nagios plugin, passing the user input as an argument.
N.B. I know how to pass argument in; this query is about how I can get a user input from the XI GUI back to the server in a form that I can use it as an argument.
I can think of a way to do this (i.e. write a custom dashlet to take the input, add my own custom URL to Nagios' Apache server and have this URL trigger the script, then have the custom dashlet send the user input to the custom URL). I'm just trying to find out if there's a better way that Nagios XI more obviously supports (the way I'm thinking might not even be possible).
Many thanks.