Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:xymon_cpu_load_threshold_calc [2016/11/27 00:08] billdozor |
linux_wiki:xymon_cpu_load_threshold_calc [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Xymon Cpu Load Threshold Calc ====== | + | ====== Xymon CPU Load Threshold Calc ====== |
**General Information** | **General Information** | ||
Line 21: | Line 21: | ||
Installation instructions. | Installation instructions. | ||
- | ===== Client side ===== | + | ===== Xymon Client side ===== |
No client modifications required. | No client modifications required. | ||
- | ===== Server side ===== | + | ---- |
+ | |||
+ | ===== Xymon Server side ===== | ||
- Install the ' | - Install the ' | ||
Line 50: | Line 52: | ||
====== The Script ====== | ====== The Script ====== | ||
- | <hidden onHidden=" | ||
<code bash cpu-load-calc.sh> | <code bash cpu-load-calc.sh> | ||
#!/bin/bash | #!/bin/bash | ||
Line 56: | Line 57: | ||
# Description: | # Description: | ||
# Dependency: Requires ' | # Dependency: Requires ' | ||
+ | # Last Change: 2018-05-22 | ||
+ | # Recent Changes: | ||
# | # | ||
Line 132: | Line 135: | ||
node_name=${1} | node_name=${1} | ||
- | # Lie to Xymon that the node's cpu is yellow, forcing a hostdata snapshot | + | # Lie to Xymon that the node's cpu is green, then yellow, forcing a hostdata snapshot |
+ | xymon 127.0.0.1 " | ||
xymon 127.0.0.1 " | xymon 127.0.0.1 " | ||
} | } | ||
Line 189: | Line 193: | ||
# 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 223: | Line 227: | ||
exit 0 | exit 0 | ||
</ | </ | ||
- | </ | ||
---- | ---- | ||