+ windows server windows_exporter install , prometheus 연동 admin 2023.10.12 prometheus 를 이용해서 모니터링을 할때 필요한 windows_exporter 설치 방법 1. 홈페이지에서 자료를 다운로드 한다 https://github.com/prometheus-community/windows_exporter https://github.com/prometheus-community/windows_exporter/releases 해당 파일을 다운로드 하여 c:\ 이동을 한다 cmd -> 관리자권한 실행 / install [crayon-67feeb97eb20e844625985/] 웹페이지에서 확인 이제 prometheus 에 등록 ( prometheus server에서 작업) [crayon-67feeb97eb218461555619/] prometheus 재시작 [crayon-... Read More..
+ linux shell script ( bash if eq 연산자) admin 2023.10.12 bash if 문 사용 방법 bash if 연산자 사용 [crayon-67feeb97ebb03538115975/] if 산술 비교 연산자 [crayon-67feeb97ebb0c320515802/] 문자열 비교 [crayon-67feeb97ebb10771956718/] 1. 파일이 존재하는지 여부 체크 ( -e ) [crayon-67feeb97ebb13072549494/] 2. 디렉토리 체크 ( -d ) [crayon-67feeb97ebb17459352137/] 실제 디렉토리로 다시 체크해보면 ( 디렉토리명을 명시해주면 ) [crayon-67feeb97ebb1a095731728/] 폴더가 없으면 바로 폴더를 생성하는 if문 [crayon-67feeb97ebb1d453931594/] 3. 파일은 존재하는데... Read More..