I’m helping out someone at work who ran into this strange problem with the current sensu puppet module.
He set a value for “sensu::api_user” other than the default (which is “undef”), and we would get this error from the puppet agent:
Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter user at /etc/puppet/environments/montest/modules/sensu/manifests/api/config.pp:30 on node test-mon-sensu01
I had him remove the setting for api_user, and api_password, and try again (hopefully picking up the default undef values), and still got the same error.
Finally we went into sensu/manifests/api/config.pp and commented out the resource definitions for user => and password =>, and the catalog would finally compile.
I’ve been studying the lib directory trying to find any cause for that problem, and I’ve come up empty.
Any other suggestions?