stu# uname -a
FreeBSD stu.xxx.cn 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri May 18 22:02:36 CST 2012 ljwsy@stu.xxx.cn:/usr/obj/usr/src/sys/STU i386
stu# pkg_info | grep python
python26-2.6.8 An interpreted object-oriented programming language
python31-3.1.5 An interpreted object-oriented programming language
stu# pkg_info | grep rrdtool
py26-rrdtool_lgpl-1.0b1_2 Python interface to RRDTool, the graphing and logging utili
rrdtool-1.4.7_1 Round Robin Database Tools
stu# pkg_info | grep apache
apache-2.2.22_5 Version 2.2.x of Apache web server with prefork MPM.
stu# sysctl -a | /usr/bin/grep hw | grep temper
hw.acpi.thermal.tz0.temperature: 49.0C
stu# snmpwalk -c public -v 1 fb.xxx.cn .1.3.6.1.4.1.2021.51.101.1
UCD-SNMP-MIB::ucdavis.51.101.1 = STRING: " 46.5"
stu# rrdtool fetch rrd/temperture.rrd AVERAGE -s 1340784000
fb stu
1340784300: nan nan
1340784600: nan nan
1340784900: nan nan
1340785200: nan nan
1340785500: nan nan
1340785800: nan nan
1340786100: nan nan
1340786400: nan nan
stu# ./update.py
stu# rrdtool fetch rrd/temperture.rrd AVERAGE -s 1340784000
fb stu
1340784300: nan nan
1340784600: nan nan
1340784900: nan nan
1340785200: nan nan
1340785500: nan nan
1340785800: nan nan
1340786100: nan nan
1340786400: 4.6699204174e+01 4.7510090197e+01
1340786700: nan nan
stu# ./update.py
stu# ls -l /usr/local/www/apache22/data/temperture.png
-rw-r--r-- 1 root wheel 7158 Jun 27 16:47 /usr/local/www/apache22/data/temperture.png
stu#
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |