You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing nagios_host_context in nrpe related to cos-proxy, all nrpe targets are re-added to nrpe_lookup.csv with the updated names. Old checks, however, can still be found there.
To Reproduce
Deploy cos-proxy and nrpe, relate them using the monitors relation
Wait for the model to settle, inspect nrpe_lookup.csv contents
Wait for the model to settle and check nrpe_lookup.csv. New (the same but updated) checks with "bootstack-test" prefix will show up in the juju_unit column, but the old entries without the prefix will be still there.
Environment
rev 46 of cos-proxy, I didn't try to reproduce in rev 47 yet
Relevant log output
It's the same env that was reported in #88.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Thanks @przemeklal.
Can you tell if this is a regression due to #89?
I.e. was config change reflected correctly in the csv prior to this recent change?
Another observation is that if an entry for a juju unit was missing there with the old nagios_host_context, it's also missing among the updated entries, e.g.
searching for glance/2 check_reboot entries (there are 3 instances after 2 config changes)
graph LR
cos-proxy --- |monitors| nrpe
glance ---|nrpe_external_master| nrpe
Loading
glance is an app monitored by nrpe
for each nrpe check, cos-proxy needs to add a line to the csv file
nrpe charm has a config option, nagios_host_context, which sets a prefix to identify the particular cloud the particular glance target is coming from.
after config changed (from no prefix to some prefix), cos-proxy appended the lines to the csv file instead of replacing the old targets. Every time this config option changes, a new line is appended while the old ones are still kept there.
need to look at the monitors relation changed handler and see how the csv is generated.
Bug Description
After changing nagios_host_context in nrpe related to cos-proxy, all nrpe targets are re-added to nrpe_lookup.csv with the updated names. Old checks, however, can still be found there.
To Reproduce
monitors
relationEnvironment
rev 46 of cos-proxy, I didn't try to reproduce in rev 47 yet
Relevant log output
It's the same env that was reported in #88.
Additional context
No response
The text was updated successfully, but these errors were encountered: