Skip to content

Commit

Permalink
* linux/load: Correct documentation on how to set warning levels
Browse files Browse the repository at this point in the history
* sunos/load: Set more graph_ things, including graph_scale no to avoid "milliload"
  • Loading branch information
Nicolai Langfeldt committed Dec 3, 2009
1 parent accbe74 commit 637541d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
10 changes: 5 additions & 5 deletions plugins/node.d.linux/load.in
Expand Up @@ -13,11 +13,11 @@ The following environment variables are used by this plugin:
=over 4
=item load_warn <float>
=item load_warning <float>
Threshold for when to report a warning
=item load_crit <float>
=item load_critical <float>
Threshold for when to report a critical
Expand All @@ -26,8 +26,8 @@ Threshold for when to report a critical
=head2 EXAMPLE CONFIGURATION
[load]
env.load_warn 5
env.load_crit 10
env.load_warning 5
env.load_criting 10
=head1 NOTES
Expand Down Expand Up @@ -83,7 +83,7 @@ if [ "$1" = "config" ]; then
# one is for the graph itself, while the second one is for the field
# "load".
echo 'graph_info The load average of the machine describes how many processes are in the run-queue (scheduled to run "immediately").'
echo 'load.info Average load for the five minutes.'
echo 'load.info 5 minute load average'

# Last, if run with the "config"-parameter, quit here (don't
# display any data)
Expand Down
33 changes: 29 additions & 4 deletions plugins/node.d.sunos/load.in
Expand Up @@ -9,7 +9,25 @@ load - Plugin to monitor system load
=head1 CONFIGURATION
No configuration
The following environment variables are used by this plugin:
=over 4
=item load_warning <float>
Threshold for when to report a warning
=item load_critical <float>
Threshold for when to report a critical
=back
=head2 EXAMPLE CONFIGURATION
[load]
env.load_warning 5
env.load_critical 10
=head1 AUTHOR
Expand All @@ -35,9 +53,16 @@ fi

if [ "$1" = "config" ]; then

echo 'graph_title Load average'
echo 'graph_category system'
echo 'load.label load'
cat <<EOF
graph_title Load average
graph_category system
graph_scale no
graph_vlabel load
graph_args --base 1000 -l 0
graph_info The load average of the machine describes how many processes are in the run-queue
load.label load
load.info 5 minute load average
EOF
print_warning load
print_critical load
exit 0
Expand Down

0 comments on commit 637541d

Please sign in to comment.