Hi,
Can I keep secrets in nagios plugin or can we set env variables and use them in Nagios Plugins?
Can we keep secrets in Nagios Plugins
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Can we keep secrets in Nagios Plugins
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
In Nagios XI, you can set a custom macro in the /usr/local/nagios/etc/resource.cfg file. For example,
Code: Select all
$USER10$ =Secret
https://assets.nagios.com/downloads/nag ... ponent.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!