Page 1 of 1
Can we keep secrets in Nagios Plugins
Posted: Fri Mar 06, 2020 2:28 am
by srivemp1
Hi,
Can I keep secrets in nagios plugin or can we set env variables and use them in Nagios Plugins?
Re: Can we keep secrets in Nagios Plugins
Posted: Fri Mar 06, 2020 11:50 am
by benjaminsmith
Hello,
In Nagios XI, you can set a custom macro in the /usr/local/nagios/etc/resource.cfg file. For example,
and then use this macro in your plugin arguments. The secret would only be accessible to users shell access to the server. Just let me know if that answers your question or not. If so, check out the guide below for more details on how to use the macros in XI.
https://assets.nagios.com/downloads/nag ... ponent.pdf