Page 1 of 1

Hidding database passwords

Posted: Mon Jul 10, 2017 3:19 pm
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

Re: Hidding database passwords

Posted: Mon Jul 10, 2017 3:24 pm
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.

Re: Hidding database passwords

Posted: Mon Jul 10, 2017 4:45 pm
by tgriep
Thanks @mcapra for the help.