mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Initial version
This commit is contained in:
parent
4e166aa94d
commit
4ee944dcb8
1 changed files with 30 additions and 0 deletions
30
plugins/other/pid
Executable file
30
plugins/other/pid
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#%# family=manual
|
||||||
|
#%# capabilities=autoconf
|
||||||
|
|
||||||
|
STYLE=LINE2
|
||||||
|
GRAPH="pid"
|
||||||
|
SECTION="system"
|
||||||
|
|
||||||
|
run_autoconf() {
|
||||||
|
echo yes
|
||||||
|
}
|
||||||
|
|
||||||
|
run_config() {
|
||||||
|
cat << EOF
|
||||||
|
graph_title ${GRAPH}
|
||||||
|
graph_category ${SECTION}
|
||||||
|
graph_vlabel pid
|
||||||
|
pid.label pid
|
||||||
|
pid.draw LINE2
|
||||||
|
pid.min 0
|
||||||
|
pid.info pid
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
run_() {
|
||||||
|
echo "pid.value $$"
|
||||||
|
}
|
||||||
|
|
||||||
|
run_$1
|
Loading…
Add table
Add a link
Reference in a new issue