Can we keep secrets in Nagios Plugins

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srivemp1
Posts: 18
Joined: Thu Sep 19, 2019 7:25 am

Can we keep secrets in Nagios Plugins

Post by srivemp1 »

Hi,

Can I keep secrets in nagios plugin or can we set env variables and use them 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

Post by benjaminsmith »

Hello,

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 
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
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!
Locked