Name
Date
Size
#Lines
LOC

..--

Makefile.amH A D07-May-20142 KiB429

READMEH A D05-Feb-20143.1 KiB9657

bmc-snmp-proxyH A D05-Feb-20149.3 KiB382271

bmc-snmp-proxy.serviceH A D05-Feb-2014361 1913

bmc-snmp-proxy.sysconfH A D05-Feb-20141.6 KiB4943

bmclanconfH A D05-Feb-20148.2 KiB309234

collect_data.shH A D05-Feb-2014448 3011

create_rrds.shH A D05-Feb-2014685 4120

create_webpage.shH A D05-Feb-20144.1 KiB212155

create_webpage_compact.shH A D05-Feb-20142.7 KiB152102

exchange-bmc-os-info.init.redhatH A D05-Feb-20147.8 KiB327198

exchange-bmc-os-info.service.redhatH A D05-Feb-2014295 1411

exchange-bmc-os-info.sysconfH A D05-Feb-2014850 2723

ipmi.init.basicH A D05-Feb-2014352 1811

ipmi.init.redhatH A D05-Feb-20144.8 KiB223149

ipmievd.init.debianH A D05-Feb-20142.1 KiB9346

ipmievd.init.redhatH A D05-Feb-20142 KiB8850

ipmievd.init.suseH A D05-Feb-20145.9 KiB213129

log_bmc.shH A D07-May-20142.7 KiB8943

oem_ibm_sel_mapH A D05-Feb-201443.5 KiB230229

README

1 
2 Graphs for ipmitool
3 -------------------
4 
5 This is a set of shell-scripts to quickly create a webpage with pretty graphs!
6 
7 Prerequisites are a webserver with cgi-bin support and RRDtool, a data
8 collection and graphing utility you can get here:
9 
10 http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
11 
12 
13 First, decide on a directory where to store the RRDtool database files and make
14 sure it exists. The user that will run the cronjob to collect updates must have
15 write permissions in this dir.
16 
17 Next, you'll need to edit some variables at the top of each script.
18 
19 Common to all scripts:
20 
21 hostname	Override this if you are collecting data from a remote host,
22 		or if the $HOSTNAME variable is incorrect.
23 
24 ipmi_cmd	Command line used to call ipmitool. Default is to collect
25 		data from the local server using OpenIPMI.
26 
27 		If you want to collect data from a remote host, add the
28 		-I lan, -H, -U and -P options as necessary.
29 
30 		BIG NOTE! I do not recommend using remote data collection since
31 		you'll have to store the password in the script. If you do,
32 		make sure unauthorized people can't read or execute the scripts
33 		or they'll be able to wreak havoc on your server.
34 
35 rrd_dir		Enter the dir where to store the RRDtool database here.
36 
37 
38 Now you can get the data collection going. Run create_rrds.sh to create the
39 RDDtool database, you'll find one .rrd file per sensor in the designated dir.
40 Add a line to your crontab that executes collect_data.sh every 5 minutes.
41 
42 Something like this:
43 */5 * * * * /usr/local/bin/collect_data.sh
44 
45 If you are a Solaris user you'll have to write the more verbose:
46 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/collect_data.sh
47 
48 
49 Finally it's time to create the webpage, begin with editing some more variables
50 in the create_webpage.sh and/or create_webpage_compact.sh scripts:
51 
52 rrdcgi		Full path to the rrdcgi executable.
53 
54 img_dir		Directory to store the graph images. This path must be within
55 		the document root and writable by the web server user.
56 
57 		Example: /usr/local/apache2/htdocs/images/graphs
58 
59 web_dir		Relative path of the URL where the images will show up
60 		on the web server.
61 
62 		Example: With the img_dir path above the corresponding web_dir
63 		would be /images/graphs
64 
65 graph_width	Size of the graph area in pixels (excluding title, legends etc.)
66 graph_height
67 
68 graph_daily	Decide which of daily, weekly and monthly graphs you want
69 graph_weekly	included on the page.
70 graph_monthly
71 
72 
73 Finally run the create webpage script and store the output as a cgi-script and
74 don't forget to make it executable.
75 
76 Example:
77 
78 create_webpage.sh > /usr/local/apache2/cgi-bin/my_ipmi_graphs.cgi
79 chmod 755 /usr/local/apache2/cgi-bin/my_ipmi_graphs.cgi
80 
81 Now you can surf to http://my.server.com/cgi-bin/my_ipmi_graphs.cgi and enjoy!
82 
83 
84 The difference between create_webpage.sh and create_webpage_compact.sh is that
85 the first script displays sensor thresholds in the graphs. The second script
86 collects all sensors that measure the same unit into the same graph thus
87 producing a lot fewer graphs.
88 
89 Note, RRDtool sometimes scales the graphs such that the sensor thresholds
90 fall outside the visible area.
91 
92 
93 Happy graphing!
94 
95 
96