When I log into foreman is see the red dot at the bell symbol. There is a notification “Proxies - 1 New Event - foreman.example.com’s disk is 12% full. Since this proxy is running Pulp, it needs disk space to publish content views. Please ensure the disk does not get full.”
I don’t really see the point of this notification when there is still plenty of disk space available.
Expected outcome:
No notification, but only when disk space is maybe 90% full.
Foreman and Proxy versions:
1.17.1
Foreman and Proxy plugin versions:
Katello 3.6.0
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
I could be reading that code wrong but I swear that it alerts on anything less than 90% like I think filled that directory to 91% you wouldn’t have an alert. But there is a conditional at the end of the if statements and the evaluation there might be wrong.
For the next 12h, we don’t have the notification. Now, 12h later… GOTO beginning of the post
Basically right before creating the notification I will add a check for > 90% full. The rest of the logic looks sound IMO.