This is an old revision of the document!
ldom.ksh
Author | Vernon Everett |
---|---|
Compatibility | Xymon but might work elsewhere - it's simple enough |
Requirements | T-series hardware running LDoms |
Download | None |
Last Update | 2010-06-10 |
Description
This script was born from a need to give people visibility of the LDoms and available resources, but without giving them access to the control domain to gather this information.
Xymon, being available, seemed the most logical place to display the information for those who needed it.
Added CPU usage graphing to assist with capacity planning. Calculates and graphs an “Effective Number of VCPUs Utilised”.
Installation
Client side
Copy ldom.ksh in hobboit/xymon ext directory (usually in HOBBITCLIENTHOME/ext) on the control domain.
Give it appropriate sudo, SUID or RBA access to allow the hobbit/xymon user to run ldm
Add the following to clientlaunch.cfg
[ldom] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/ext/ldom.ksh LOGFILE $HOBBITCLIENTHOME/logs/ldom.log INTERVAL 5m
Server side
Add the following to graphs.cfg
[ldom] FNPATTERN ldom,(.*).rrd TITLE LDOM EFFECTIVE VCPU UTILISATION YAXIS Effective CPUs -l 0 DEF:p@RRDIDX@=@RRDFN@:lambda:AVERAGE LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@ GPRINT:p@RRDIDX@:LAST: \: %5.2lf (cur) GPRINT:p@RRDIDX@:MAX: \: %5.2lf (max) GPRINT:p@RRDIDX@:MIN: \: %5.2lf (min) GPRINT:p@RRDIDX@:AVERAGE: \: %5.2lf (avg)\n
Add the following to xymonserver.cfg
SPLITNCV_ldom="*:GAUGE"
- Add ldom=ncv to TEST2RRD=
- Add ldom to GRAPHS=
Source
ldom.ksh
Known Bugs and Issues
Let me know if you spot any.
To Do
Solve world hunger.
Credits
I acted alone, I swear it!
Changelog
- 2010-06-10
- Initial release
- Sometime since then
- Added graphing, but only got round to putting the updated code up today 2013-07-31.