-
<PYTHON>[rrdtool 사용]Flower in my dev/Python 2015. 6. 1. 21:29
역시나 설치 먼저...
yum install python-rrdtool
1234567import rrdtooltargetFile = '파일이름'result = rrdtool.fetch(targetFile, 'AVERAGE', '-s 1430812800', '-e 1430813000')print resultcs 결과값은 튜플로 반환.
실제 값은 result.[2][0][0]
프로그램에서는 다른 것은 필요할 일이 없을 것이다.
'Flower in my dev > Python' 카테고리의 다른 글
<PYTHON>[pptx to pdf] opensource활용 (0) 2015.06.09 <PYTHON>[문자열] (0) 2015.06.03 <PYTHON>[ConfigParser] (0) 2015.05.29 <PYTHON>파싱결과 비교(split count) --> 파일 저장 (0) 2015.05.29 <PYTHON>파싱결과 비교(contents) --> 파일 저장 (0) 2015.05.29