Hidding SNMP credentials from the process list
Posted: Thu Nov 07, 2019 4:27 pm
I have a couple of custom plugins from the nagios exchange (perl scripts) which are doing well collecting data for me, but the problem is that the scripts are exposing SNMP authentication data (username, authpass and privpass) in the output of "ps".
I supply the arguments to the script via $USERXX$ macros which helps obfuscate things in the GUI but I haven't been able to find how some of the stock plugins censor the credentials in its commandline output. I have tried searching through nagios plugin development documentation but I have come up to a dead end.
Can you point me in the right direction for how I can mask output to ps so I am not exposing my SNMP authentication information?
I supply the arguments to the script via $USERXX$ macros which helps obfuscate things in the GUI but I haven't been able to find how some of the stock plugins censor the credentials in its commandline output. I have tried searching through nagios plugin development documentation but I have come up to a dead end.
Can you point me in the right direction for how I can mask output to ps so I am not exposing my SNMP authentication information?