Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
monitors:cpu-load-calc [2016/12/28 15:43] – [Changelog] dozor | monitors:cpu-load-calc [2018/05/22 15:05] (current) – [Changelog] dozor | ||
---|---|---|---|
Line 11: | Line 11: | ||
Calculate (and set) a Xymon client' | Calculate (and set) a Xymon client' | ||
- | This is mean to run on the Xymon Server periodically with cron. | + | This is meant to run on the Xymon Server periodically with cron. |
It allows for far more useful load monitoring than arbitrarily setting a generic load or spending a lot of time editing config files for each system. | It allows for far more useful load monitoring than arbitrarily setting a generic load or spending a lot of time editing config files for each system. | ||
Line 35: | Line 35: | ||
- Add the auto load directory to the Xymon main analysis.cfg file so it is included | - Add the auto load directory to the Xymon main analysis.cfg file so it is included | ||
- Default: " | - Default: " | ||
- | - Set the default load in / | + | - Set the default load in / |
- That way, a hostdata file is generated for a system that has not had its load auto calculated. (and you don't get alert emails/ | - That way, a hostdata file is generated for a system that has not had its load auto calculated. (and you don't get alert emails/ | ||
- Setup the script to auto run via cron (-v is verbose output) | - Setup the script to auto run via cron (-v is verbose output) | ||
Line 56: | Line 56: | ||
# Description: | # Description: | ||
# Dependency: Requires ' | # Dependency: Requires ' | ||
+ | # Last Change: 2018-05-22 | ||
+ | # Recent Changes: | ||
# | # | ||
Line 190: | Line 192: | ||
# Get the number of procs reported from node's most recent host data file | # Get the number of procs reported from node's most recent host data file | ||
- | node_num_procs=" | + | node_num_procs=" |
| | ||
# If node_num_procs is empty or not a number, move to the next node | # If node_num_procs is empty or not a number, move to the next node | ||
Line 228: | Line 230: | ||
===== Known Bugs and Issues ===== | ===== Known Bugs and Issues ===== | ||
+ | * Enterprise Linux 5 does not report number of procs in hostdata. Those systems will need to be set manually in analysis.cfg files. | ||
===== To Do ===== | ===== To Do ===== | ||
Line 234: | Line 237: | ||
===== Changelog ===== | ===== Changelog ===== | ||
+ | * **2018-05-22** | ||
+ | * Updated awk search to look for [nproc] at the beginning of the line. | ||
* **2016-12-28** | * **2016-12-28** | ||
* Added green status in force_hostdata function to improve refresh logic. | * Added green status in force_hostdata function to improve refresh logic. |