Server IP : 85.193.89.191 / Your IP : 18.227.111.18 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/munin/plugins/ |
Upload File : |
#!/usr/bin/sh # -*- sh -*- # # Folding@Home Rank # # Parameters: # # config (required) # autoconf (optional - only used by munin-config) # # Magic markers (optional - used by munin-config and some installation # scripts): #%# family=contrib statefile=$MUNIN_PLUGSTATE/plugin-fah_rank.state if [ "$1" = "config" ]; then echo 'graph_title Folding@Home Rank' echo 'graph_args -l 0 --base 1000' echo 'graph_vlabel rank' echo 'rank.label rank' echo 'rank.type GAUGE' echo 'rank.max 12000' exit 0 fi rank=$(wget "http://vspx27.stanford.edu/cgi-bin/main.py?qtype=userpage&username=8d" -q -t 1 -T 5 -O - | grep -E "<TD> <font size=3> <b> [0-9]* </b> of [0-9]* </font></TD>" | sed 's/.*<font size=3> <b> \([0-9]*\) .*/\1/') if [ -z "$rank" ]; then if [ -f "$statefile" ]; then echo "rank.value $(cat "$statefile")" fi else echo "$rank" >"$statefile" echo "rank.value $rank" fi