å 責äºé ïŒç§ã¯ããã°ã©ããŒã§ã¯ãªãããŸãä»äºãããŠããããã³ãŒããæžãèœåãéåžžã«
æã«ã¯ãHP-UXããã³LinuxãµãŒããŒã«ã€ã³ã¹ããŒã«ãããMeasureware *ã®ããŒã¿ãHP Storageworks XPãHP EVAãEMC ClariionãEMC Symmetrixã¢ã¬ã€ã®äœæ¥ã®çµ±èšãããã³Brocade FCã¹ã€ããã€ã³ã¿ãŒãã§ã€ã¹ã®è² è·ã°ã©ããåŠçããå¿ èŠããããŸããã æœåšçã«ãCSV圢åŒã§è¡šç€ºãããæéã§ãœãŒããããçµ±èšã«åºã¥ããŠã°ã©ããæç»ã§ããã ãã§ãªããHighchartsã䜿çšããããšãã§ããŸãã SNMPã䜿çšããŠããŒã¿ãåéããªããããªã¢ã«ã¿ã€ã ã§ã°ã©ããæç»ããããšãã§ããŸãã ãã¡ãããããç¥ãããŠããCactiã¯ãSNMPã䜿çšããŠåéããããªã¢ã«ã¿ã€ã ããã³èç©ãããçµ±èšã«æé©ã§ãããæ£ãããšèšãã§ããããã€ã³ã¿ãŒãããã¯ãCactiå±éã¬ã€ããšããŸããŸãªæ©åšã®ç£èŠèšå®ã§ãã£ã±ãã§ããå€ãã®ç¬ãé£ã¹ããã劚害ãå±éããªããšããã®ãããªç£èŠã¯éåžžã«é«ããªããŸãã ExcelããŒã¹ã®ã°ã©ãããrrdtoolãšgnuplotãçæããç»åã«è¡ããæåŸã«Highchartsã«è¡ããŸããã äžèšã®è§£æ±ºçã®ãã¹ãŠãæºè¶³ãããããã§ã¯ãªããç§ã説æããæ¹æ³ã«èå³ã®ãã人ãèå³ãæã£ãŠããå¯èœæ§ã¯ååã«ãããŸãã
* MeasurewareïŒOpenView Performance AgentïŒã䜿çšãããšãçŸæç¹ã§OSãªãœãŒã¹ïŒHP-UXãLinuxãWindowsïŒã®äœ¿çšçãç£èŠããèç©ãããããŒã¿ã衚瀺ããããã«åŠçããããã«ASCII圢åŒã«ã¢ããããŒãã§ããŸãã ããã䜿çšãããšãç°ãªãOSãµãã·ã¹ãã ãåã ã®ããã»ã¹ãã«ã¹ã¿ãã€ãºãããã¢ããªã±ãŒã·ã§ã³ã»ã°ã«ãŒãïŒã·ã¹ãã å ã®ãã¹ãŠã®ora_dbw *ããã»ã¹ãªã©ïŒã®æäœã«é¢ããäž»èŠãªã¡ããªãã¯ã®å€ãååŸã§ããŸãã MeasurewareããŒã¿ã¯ãã·ã¹ãã ããã©ãŒãã³ã¹ã®æœåšçãªããã«ããã¯ãèå¥ããããã«ãOSãšãã®ããã»ã¹ã®ãã¬ãŒã¹ãšãšãã«äœ¿çšãããŸãã æ å ±ã¯å®£äŒãããŠããŸãããç§ã¯HPã§åããŠããŸãããå¥ã®èšäºã«å€ãã䟿å©ãªããŒã«ã«ã€ããŠèšåãããã£ãã ãã§ãïŒãšããã§ãHabrazhitelã¯UNIXã®ç¬èªã®å·¥æ¥ããŒãžã§ã³ã§äœ¿çšããããœãããŠã§ã¢ã«é¢ããèå³æ·±ããããã¯ã§ããïŒïŒã
Highchartsãšã¯äœã§ãäœãé£ã¹ãŸããïŒ
ããã¯ãJavascriptã䜿çšãããã£ãŒãã©ã€ãã©ãªã§ãã éåžžããã©ãŠã¶ã䜿çšããŠã€ã³ã¿ã©ã¯ãã£ããªã°ã©ããã¬ã³ããªã³ã°ããã³è¡šç€ºããŸãã HighchartsãåªããŠããã®ã¯ãªãã§ããïŒ ãã¹ãŠããæ°ã«å ¥ãã®FFãšChromeãšSafariïŒi-techã§ãïŒãIEã§ã
PNG / JPEG / PDFãžã®ãšã¯ã¹ããŒãã¯ããµãŒããŒåŽã®ã¢ãžã¥ãŒã«ãšã©ã€ãã©ãªã䜿çšããŠSVGãPNGã«å€æããããšã«åºã¥ããŠããããµãŒããŒäžã®phpããŒãžããŸãã¯highcharts.comãžã®ãªãã€ã¬ã¯ããå¿ èŠã§ãããšèšããªããã°ãªããŸããã ã¡ãªã¿ã«ãæè¿ã®ããŒãžã§ã³ã®Highchartsã§ã¯ãåçã«æ§ç¯ãããæ¡å€§ããããã£ãŒããšã°ã©ãã®ãšã¯ã¹ããŒããä¿®æ£ããŸããã ã°ã©ãã£ãã¯ããšã¯ã¹ããŒãããã«ãJSããã£ããããšjquery.jsãããŒã«ã«ã«ä¿åããåçŽãªhtmlãã¡ã€ã«ãå®è¡ããããšã«ãããã°ã©ãã£ãã¯ãããŒã«ã«ã§è¡šç€ºã§ããŸãã äžèšã®ãŠãŒãã£ãªãã£iecapt / cutycaptããšã¯ã¹ããŒãã«äœ¿çšããããšãã§ããŸãã FCã¹ã€ããã®ãã©ãã£ãã¯çµ±èšããªã¢ã«ã¿ã€ã ã§ååŸããããã«ãphp_snmpã¢ãžã¥ãŒã«ã䜿çšããŠãã¹ã€ããã®MIBããªãŒã§å¿ èŠãªOIDãå®æçã«ããŒãªã³ã°ããããŒã¿ã解æããphpããŒãžã䜿çšããŸããã SNMPèŠæ±ã¯ã¹ã€ããããã»ããµãµã€ã¯ã«ãæ¶è²»ãããããé床ã«é »ç¹ãªèŠæ±ã§éè² è·ã«ãªããªãããã«ããŠãã ããã Brocadeã«ã¯ããã®åé¡ã«é¢ãããµãŒãã¹ããŒããããããŸããããã»ããµã®äœ¿çšçãé«ããšãFCããŒãããªã»ãããããå¯èœæ§ããããŸãã確çã¯å°ããã§ãããååšãã䜿çšãããã©ã³ã·ãŒãã®ã¿ã€ãïŒã¡ãŒã«ãŒãšãã¡ãŒã ãŠã§ã¢ã®ãªããžã§ã³ïŒã«ãã£ãŠç°ãªããŸãã ãªããããã¯ã«ã€ããŠã¯ç³ãèš³ãããŸãããããèŠå-æŠè£ ãæå³ããŸããã
åºå£ã§Highchartsã䜿çšãããšäœãåŸãããŸããïŒ
èŠèŠåã®ããã«ã次ã®ã¿ã€ãã®ã°ã©ãã䜿çšã§ããŸãã
å-ããšãã°ãããã³ããšã³ãã¢ããã¿ãŒã®è² è·ã«ããããµãŒããŒã°ã«ãŒãã®ååžã衚瀺ããã«ã¯ïŒ
å-ãã¹ãã°ã©ã ãäœæããå ŽåïŒ
ã¹ãã©ã€ã³-ç°çš®ã¡ããªãã¯ã®å Žåãç¬èªã®ã¹ã±ãŒã«ã§è€æ°ã®è»žã䜿çšããç°ãªãã°ã©ããã¹ã±ãŒã«ã«è¿œå ã§ããŸãã
ãªãŒããŒã¬ã€ã¡ããªãã¯ã®å¹æã瀺ãããã®é¢ç©ãŸãã¯é¢ç©ã¹ãã©ã€ã³ïŒ
ãŸãã¯ãã®é-ã¹ã€ããã€ã³ã¿ãŒãã§ã€ã¹äžã®å€æ¹åãã©ãã£ãã¯ãããŒã®å¯Ÿæ¯ïŒ
Highchartsãããžã§ã¯ãããŒãžã«ã¯ãä»ã®å€ãã®äŸ¿å©ã§èå³æ·±ãã¿ã€ãã®ãã£ãŒãããããŸãã ãããžã§ã¯ãã¯éçºäžã§ãããæŽæ°ããã°ã©ã ãå ¬éãããŠããŸãããã©ãŒã©ã ã§ã¯ãå€ãã®äŸ¿å©ãªã¬ã·ããèŠã€ããããšãã§ããŸãã
ãã¡ã€ã«ããèç©ãããããŒã¿ãåŠçãããªã¢ã«ã¿ã€ã ã§å°çãã
ã§ã¯ãå ¥ãå£ã«ã¯äœããããŸããïŒ æ¬¡ã®ããã«ãããŒã¿ãåéããŠCSV圢åŒã«ã¢ããããŒããã段éãæå³çã«çç¥ããŸãã ããã¯ã䜿çšãããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãŸãã¯ãã£ã¹ã¯ã¢ã¬ã€ããšã«åå¥ã®èšäºã®ãããã¯ã§ãã ãã®ãããæéãšãšãã«ïŒåçŽæ¹åã«ïŒå€åããããŸããŸãªã¡ããªãã¯ïŒæ°Žå¹³ïŒã®å€ã®ããŒãã«ãšã察å¿ããèŠåºããå¿ èŠã«ãªããŸããããšãã°ã次ã®ããã«ãªããŸãã
Unixtimeãmetric1ãmetric2ãmetric3
1297666800ãval1_1ãval2_1ãval3_1
1297666860ãval1_2ãval2_2ãval3_2
ãªã©ãªã©
ããŒã¿ã¯è¡šåœ¢åŒã§ã衚瀺ã§ããŸããåè¡ã«ã¯ãããšãã°æ¬¡ã®ããã«ãçééã®æéééã§æž¬å®ãããç¹å®ã®ã¡ããªãã¯ã®å€ããªã¹ããããŸãïŒã¿ã€ãã«ã«ã¯ã°ã©ãã®ã¿ã€ãã«ãåºæºç¹ãééãå«ãŸããŸãïŒã
Lan0çµ±èšã1297666800ã600
Rx bpsã2000ã3000ã4000
Tx bpsã1200ã1600ã2000
衚瀺ãããã¡ããªãã¯ãã€ã³ã¿ã©ã¯ãã£ãã«éžæããããã®ç§ã®ããŒãžã¯æ¬¡ã®ããã«ãªããããŒã¿ã®å Žæã®æåã®ãªãã·ã§ã³ãæã€ãã¡ã€ã«ã䜿çšããŸãïŒã€ãŸããã¡ããªãã¯ã¯æ°Žå¹³ã«ãåè¡ã®å€ã¯ç¹å®ã®æéééã«ãããŸãïŒïŒ
å¯äžã®ããš-ç§ã®å ¥åãã¡ã€ã«ã«ã¯ãè¿œå ã®ãã£ãŒã«ããšãçµ±èšã®åŠçãšã°ã©ãã®ããããã«å¥ã®ããã°ã©ã ã®ãã¡ã€ã«ã䜿çšããå¯èœæ§ã瀺ãèŠåºãã®ããè¡ããããŸãã
ãã®ããŒãžãæ©èœããããã«å¿ èŠãªãã¡ã€ã«ã¯æ¬¡ã®ãšããã§ãã
- mwa.htm-ãã¡ã€ã«ããã®ã¡ããªãã¯ããã³ã°ã©ãã®æç»ãéžæããã¡ã€ã³ããŒãžã
- jquery.js-ãã®æåãªã©ã€ãã©ãªãé£ã«çœ®ãããå€éšã®WebãµãŒããŒã«é 眮ããŠäœ¿çšããŸãïŒæ¢ããŠãã人ã¯ã ãã§ãèŠã€ããããŸãïŒã
- æ°é®®ãªjsããã³export-serverãã©ã«ããŒã¯ãHighchartsãããžã§ã¯ããµã€ãããããŠã³ããŒããããŸãã tytsããŒãžã«ã¯ãããŒã«ã«ãšã¯ã¹ããŒãã®èšå®æ¹æ³ãèšèŒãããŠããŸãã
- getlist.php-mwa.htmããåŒã³åºãããããã³ãã¬ãŒãããšã®çµ±èšæ å ±ãå«ãå ¥åCSVãã¡ã€ã«ãæ€çŽ¢ããéåæèŠæ±ãå®è¡ããããã«å¿ èŠã§ãã
- 1é±éã®HP-UXãã¹ãã®çµ±èšã®äŸãå«ãmwa_S-DB-1__weekG.csvã
- live_snmp_only.php-èŠæ±ãlive_snmp_only.phpïŒhost = 10.20.30.40ïŒfcPort = 20ãã䜿çšããŠåŒã³åºãããBrocadeã¹ã€ããã®FCããŒãã®è² è·ãã°ã©ãåããããã®è¿œå ããŒãžã ã³ãã¥ããã£ã¯æ¬¡ã®ãã¡ã€ã«ã«èšè¿°ãããŠããŸãã
- snmp64.php-live_snmp_only.phpããå®æçã«åŒã³åºãããBrocadeã¹ã€ããã®FCããŒãã®çºä¿¡ããã³çä¿¡é床ãåãåããŸãïŒCisco FCãŸãã¯LANã§ã¯ããŸã çµéšããªããé©åãªOIDã䜿çšããã ãã§ãïŒã FOSã®å€ãããŒãžã§ã³ã§ã¯ã64ãããã«ãŠã³ã¿ãŒããªãå ŽåããããŸãã
ãã¡ã€ã«ãå«ãã¢ãŒã«ã€ãã¯ã httpïŒ //ge.tt/96cqBa7ããã³http://depositfiles.com/files/06h2ky72e + http://depositfiles.com/files/o6ycfl3kwã«ã¢ããããŒããããŸã ïŒãã倧ããªã¢ãŒã«ã€ãã¯ãJSããã£ããããšã©ã€ãã©ãªã«å¿ èŠã§ãPNGãžã®ãšã¯ã¹ããŒãïŒ
ãªã¢ã«ã¿ã€ã ã¹ã±ãžã¥ãŒã«ãæ§ç¯ããå Žåãã¹ã€ããããæ°ãããã©ãã£ãã¯ããŒã¿ãåä¿¡ããåã«ãã¹ã€ããããçµ±èšæ å ±ãå®æçã«ããŠã³ããŒããããããŒã¿ããŒã¹ã«ãªã¯ãšã¹ããäœæãïŒããšãã°ãSNMPãä»ããŠååŸïŒããã£ãŒãã«ãããã®ãã€ã³ããæ§ç¯ã§ããŸãã ãã®åŸã®æ°ããããŒã¿ã®ãªã¯ãšã¹ãã«ããããæ°é®®ãªããã€ã³ããè¿œå ãããã°ã©ããã·ããããŸãã
ã¡ãªã¿ã«ããªã¢ã«ã¿ã€ã ãã£ãŒãã®ç®çã®ã¿ã€ã ãŸãŒã³ãžã®æéã®ç§»åãå æã§ããŸããã§ããã 解決çãèŠã€ããŠããããã¹ãŠã®äººã«äºåã«æè¬ããŸãã
ç¹å®ã®ã¡ããªãã¯ã®å€ãæã€æåå圢åŒã®CSVãã¡ã€ã«å ã®ããŒã¿é 眮ã®å€åœ¢ã®å Žåããvar chart = new Highcharts.ChartïŒoptionsïŒ;ããåŒã³åºãåã«ããã®ãããª
// Verticaly dispersed data:
var items = lines[metricNo].split(',');
series.name = items[0];
$.each(items, function(itemNo, item) {
if (itemNo>0 && parseInt(item)>=0) {
series.data.push(parseInt(item)); // its important to parseInt !!!!
}
});
series.pointStart = parseInt(start); // its important to parseInt !!!!
series.pointInterval = parseInt(interval);
options.series.push(series);*/
ãã ããå€ã¯å®æçãªééïŒseries.pointIntervalïŒã§åéããããã®ã£ãããã¯ãããŸããã
æåŸã«ããã©ãŒã©ã ããã®ããã€ãã®ãã³ããšã¬ã·ãïŒ
- ãã£ãŒãã§500ãã€ã³ããè¶ ããªãããã«ããŠãã ãããããããªããšãé©åãªãã¬ãŒããäœåããŸãã
- ã°ã©ãã«æ£ãã衚瀺ãããããã«ãunixtime圢åŒã®æéã«ã1000ãæããå¿ èŠãããããšãå¿ããªãã§ãã ããã
- ããã€ãã®ã°ã©ãã®ãã€ã³ãã®éžæã«ã€ããŠã¯ã http ïŒ //highslide.com/forum/viewtopic.phpïŒf = 9ïŒt = 8101ãã芧ãã ããã
- 1ã€ã®htmããŒãžã«è€æ°ã®ã°ã©ããäœæããã€ãã³ãããšã«æ°ãããã€ã³ããè¿œå ããæ¹æ³ïŒ http : //highslide.com/forum/viewtopic.php?f=9 & t= 8030ããã³http://jsfiddle.net/QCefk/1/
- ãããŒã«ããã°ã©ãã®è²ã®å€æŽïŒ http : //jsfiddle.net/vu8DB/
- ãã³ãªããŒãå ã«ã°ã©ããããããããŸããããšãã°ã枬å®èª€å·®ãå€ã®åºããã瀺ããŸããhttp ïŒ //jsfiddle.net/pHFfF/3/
- ããŠã¹ã®ã¹ã±ãŒãªã³ã°ïŒ http : //jsfiddle.net/HXUmK/4/
- ããã«Xè»žïŒ http : //jsfiddle.net/PPAUx/26/
- æå°å€ãšæ倧å€ãèŠã€ããïŒ http : //jsfiddle.net/ebuTs/7/
Highchartsã©ã€ãã©ãªãšãããã§äœæã§ããã°ã©ãã£ãã¯ãæ¬åœã«å¥œãã§ãã 楜ããã§ãããããå¬ããã§ãã
UPDïŒã¹ã¯ãªããã䜿çšããŠã¢ãŒã«ã€ãã転éããæ¹ãä¿¡é Œã§ããå ŽæãæããŠãã ãããããããªããšãge.ttãšdepositfilesã§åé¡ãçºçããå¯èœæ§ããããŸããïŒ