]> git.somenet.org - somenet/munin.git/blob - portage_tree_stats
hostapd stats script
[somenet/munin.git] / portage_tree_stats
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 tree stats"
10     echo "graph_info This graph shows the count of packages and ebuilds available on this system"
11     echo "graph_category portage"
12     echo "graph_order packages ebuilds"
13     echo "graph_printf %.0lf"
14     echo "graph_scale no"
15     echo "packages.label packages"
16     echo "packages.draw LINE2"
17     echo "ebuilds.label ebuilds"
18     echo "ebuilds.draw LINE2"
19     exit 0
20 fi
21
22 cat /tmp/munin_portage/packages.stat
23 cat /tmp/munin_portage/ebuilds.stat
24 exit 0