Tags in password store matching hosts
We have different passwords and settings per environment. We decided to create a site per environment and add this passwords/settings to ~/etc/nagios/resource.cfg
For example on test
$USER44$=10.17.2.158
on prod
$USER44$=10.17.24.233
The script is then
check_xx.sh -H $HOSTNAME$ -p 44300 -d $USER44$
The objective was to use just one rule with te same parameter and not to rewrite every rule.
From our point of view it would be better to enhance the password store with tags reflecting the environment. Always of course with the idea in mind to use just one rule for all environments.
Would it be possible to enhance the password store with tags to replace resource.cfg?
Comments: 2
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
17 Jul, '25
Mohamed Saleh AdminHi Markus,
Thank you for posting on our Ideas Portal!
The description you provided is very helpful to understand your use case, thanks for sharing.
Could you also give a hint how you would imagine the tags to be used in the password store, or how would the config on the UI then look like so that it solves your problem?
Looking forward to hearing back from you.
All the best,
Saleh -
11 Aug, '25
Markus1) Create a custom host attribute "PASSWORD"
Check Show this attribute in host tables of the setup menu
Check Make this custom attribute available to check commands, notifications and the status GUI
Unfortunatetly you can choose only text ---> Why not password store??
2) You will now see this custom host attribute in the properties of any host
3) You will be able to invoke the variable form a script with $_HOSTPASSWORD$
4) As you are able to choose only text you may not refer to the password store