Hi there,
is there a way to generate a msi file which automatically has several configurations set after install, like winperf
Terminal Services: ts_sessions
I do not realy want to handle with copying configuration files…
Other question is about the register agent, is there a way to avoid to run the register command with given username and password (baked in certificate or something else)
Currently we use:
C:\ProgramData\checkmk\agent\plugins\cmk-update-agent.exe register -H %computername%.tld -u cmkadmin -p
But i am not rly happy to put cmkadmin (or another administrative account creds) in our software distribution. Is there a way to avoid this?
You can build an “default windows” agent via bakery and you can then use this msi for your installation.
To register an agent you can create an automation account with a secret, not a password (other flag on command line) to do the job. This is the intended use for automation accounts as far as I understand the concept.
The bakery doesnt give me any options which options are enabled or not…only auto update mechanism and such stuff.
Thanks for the hint with the secret, this works for me so far
C:\ProgramData\checkmk\agent\plugins\cmk-update-agent.exe register -H %computername%.tld -u cmkregister -S secret -v
Not sure if this is more safe than “default” login but…yea for the moment ok.
Create a dummy host in cmk with the option “do not monitor this host”. Then create rules in Agent Bakery to configure agent on this host. Then you have a pre configured msi for deployment with all plugins and configurations you want.
When i do the rules and bake the agents, do already installed hosts receive an update with those rules? If so, my problem is already solved an i work with the rules (automatic update ist configured)
Only question, which syntax is used for performance counters
is it like in the config file?
hm manual update (just started the updater) didnt change anything, how can i force the update? The agent bakery tells me the host should get the new agent but it doesnt work
This is a working config file
Still missing what i have to put in in the ruleset, there seems to be a lack of documentation? Yea i found i can set it through agent bakery, but in what format…nothing.
I think -f is for force but have you checked that your new agent is dedicated to your host?
For your counters I would put ts_sessions to the field “section name” and only “Terminal Services” in the field “Counter-object name or number”. This should work for you.
If your agent updater did not work you could also download the newly backed agent from WATO und try to install it manually to check if the configuration is correct.