[munin/*] Plein de plugins munin qui n'étaient pas trackés
This commit is contained in:
parent
fcc2fef9b0
commit
b55129ef17
9 changed files with 1031 additions and 0 deletions
44
munin/check_ntp
Executable file
44
munin/check_ntp
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/bin/sh
|
||||
# Petit plugin histoire de mesurer la dérive temporelle (spécialement des domU)
|
||||
|
||||
output_config() {
|
||||
echo "graph_title Suivi du temps"
|
||||
echo "graph_category time"
|
||||
echo "local_date.label Date courante"
|
||||
echo "local_date.type DERIVE"
|
||||
}
|
||||
|
||||
output_values() {
|
||||
|
||||
printf "local_date.value %d\n" $(cur_timestamp)
|
||||
}
|
||||
|
||||
cur_timestamp() {
|
||||
date +%s
|
||||
}
|
||||
|
||||
output_usage() {
|
||||
printf >&2 "%s - munin plugin to graph an example value\n" ${0##*/}
|
||||
printf >&2 "Usage: %s [config]\n" ${0##*/}
|
||||
}
|
||||
|
||||
case $# in
|
||||
0)
|
||||
output_values
|
||||
;;
|
||||
1)
|
||||
case $1 in
|
||||
config)
|
||||
output_config
|
||||
;;
|
||||
*)
|
||||
output_usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
output_usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue