Hi,
I’m developing a special agent but am having a problem with the Password field and password store. I’ve got the field written like this:
"password": DictElement(
parameter_form=Password(
title=Title("Password or API key"),
migrate=migrate_to_password,
),
(Note that I’ve got the “migrate=migrate_to_password,” bit in there because I’ve seen it on other rules, but the same issue occurs with or without that line)
The form displays fine and the rule saves without any issue. I choose a stored password from the password store. When it comes to activating changes however, I get the error
Warnings:
- check_mk: The stored password “stored_password” used by host “192.168.0.4” does not exist (anymore).
There is also the error in the Check MK service:
pwstore: Password ‘stored_password’ not found in /omd/sites/master/var/check_mk/core/helper_config/latest/stored_passwords
Obviously this is a bit perplexing, because the password is definitely in the password store, because I was able to select it in the rule?
Am I missing something? The relevant bit in rules.mk is:
special_agents['truenas'] = [
{'condition': {'host_folder': '/%s/' % FOLDER_PATH},
'id': '750f1edb-9e13-426a-bc2f-49d053f1ef85',
'options': {'disabled': False},
'value': {'password': ('cmk_postprocessed',
'stored_password',
('password_1', ''))}},
] + special_agents['truenas']
Any help would be appreciated
P.S. I also get similar with Explicit password:
check_mk: The stored password "explicit_password" used by host "192.168.0.4" does not exist (anymore).