Antony Hawkins

Missing ConfigSources PropertySource

Recommended Posts

This one came up when a customer pondered how they'd know if ConfigSources weren't finding instances on devices they should be (typically this would be due to an absence of valid credentials, for example).

This PropertySource relies on API credentials (set as properties apiaccessid.key and apiaccesskey.key) and checks devices for any ConfigSource that applies to that device, but which has zero instances.

As a PropertySource it *only* writes properties, which will look a bit like this:


Obviously this doesn't trigger any alerting as written, but you can very very easily write a datasource that simply returns the auto.missing_configsources_count value and then alert on anything non-zero.

v1.0.0: ZGEG67

Note: If you're tempted to try the same with DataSources, remember that they're nothing like as clear-cut - a resource may have all sorts of DataSources applied to it (e.g. IIS for a Windows server) that may quite correctly have zero instances discovered.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.