Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check beancounters
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
OpenVZ containers may have limited resources, if they reach their maximum and try to request more of a single resource they produce a fail-count that is displayed in /proc/user_beancounters. Maybe you want to get notified about that problem, this script monitors the file and alerts if any fail-counter increases.
To reset the fail-counts you have to restart the container, but sometimes there isn’t the chance to reboot a virtual machine. So this script copies the /proc/user_beancounters (at default the copy is located at /tmp/user_beancounters) and alerts about diffs. To disable the alert just delete the copy, the script will create a new copy when it is called the next time. So there won’t be a diff anymore.
To get read access to /proc/user_beancounters for the user nagios don’t forget to set the s-bit (chmod +s check_UBC.pl).
Maybe you have to modify the location of your utils.pm by updating the lib-path in line 13
More information at https://binfalse.de
To reset the fail-counts you have to restart the container, but sometimes there isn’t the chance to reboot a virtual machine. So this script copies the /proc/user_beancounters (at default the copy is located at /tmp/user_beancounters) and alerts about diffs. To disable the alert just delete the copy, the script will create a new copy when it is called the next time. So there won’t be a diff anymore.
To get read access to /proc/user_beancounters for the user nagios don’t forget to set the s-bit (chmod +s check_UBC.pl).
Maybe you have to modify the location of your utils.pm by updating the lib-path in line 13
More information at https://binfalse.de
Reviews (0)
Be the first to review this listing!