]> git.somenet.org - root/munin.git/blob - portage_updates
muninplugins moved out of private root scripts
[root/munin.git] / portage_updates
1 #!/bin/sh
2
3 if [ "$1" = "autoconf" ]; then
4         echo "yes"
5         exit 0
6 fi
7
8 if [ "$1" = "config" ]; then
9     echo "graph_title portage pending updates"
10     echo "graph_info This graph shows the pending updates on this system"
11     echo "graph_category portage"
12     echo "graph_order updates"
13     echo "graph_printf %.0lf"
14     echo "graph_scale no"
15     echo "updates.label pending updates"
16     echo "updates.draw AREA"
17     echo "updates.warning :0"
18     echo "updates.critical 0:25"
19     exit 0
20 fi
21
22 cat /tmp/munin_portage/updates.stat
23 cat /tmp/munin_portage/updates.list
24 exit 0