Hidding database passwords

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jabi27
Posts: 34
Joined: Thu Jan 19, 2017 4:30 pm

Hidding database passwords

Post by jabi27 »

Hi,

How can we hide database passwords, ex

check_xi_postgres_db!-H emdb3.stil.dk --port=5432 --dbuser=xxxx --dbname=udb --dbpass="******" --action=database_size --warning=100GB --critical=110GB

so --dbpass is not visible ?

Best and thanks

/Jan
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Hidding database passwords

Post by mcapra »

You might find this documentation helpful:
https://assets.nagios.com/downloads/nag ... ponent.pdf

Basically, you can define sensitive information (like database credentials) in the User Macros Component if you're using a recent version of Nagios XI. This would remove some (but not all) visibility from the Nagios XI GUI.
Former Nagios employee
https://www.mcapra.com/
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Hidding database passwords

Post by tgriep »

Thanks @mcapra for the help.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked