Monitoring

[Nagiosgraph] 0~100% 까지 그래프 범위 고정하기

Lawmin 2014. 6. 30. 14:09

action_url 의 두개의 주소(기본, rel)에 아래 파라미터 추가

&rrdopts=-l+0-m+100-r


1. 개별 지정

define service{

        use                             local-service,graphed-service-percentage

       action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&rrdopts=-l+0-m+100-r' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&rrdopts=-l+0-m+100-r

        host_name                       newgdb

        service_description             Oracle Disk Space

check_command check_nrpe!check_oracle_disk

        }


* 서버 설정 예시

define service{

        use                             local-service,graphed-service-percentage

        host_name                       newgdb

        service_description             Oracle Disk Space

check_command check_nrpe!check_oracle_disk

        }


1. 또는 공통 템플릿으로 적용

nagios/etc/objects/templates.cfg 에서 서비스별 action_url 설정하고 해당 서버의 use 항목에 template 이름을 지정


* templates.cfg 예시

define service {

       name graphed-service-percentage

       action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&rrdopts=-l+0-m+100-r' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&rrdopts=-l+0-m+100-r

       register 0

     }


* 서버 설정 예시

define service{

        use                             local-service,graphed-service-percentage

        host_name                       newgdb

        service_description             Oracle Disk Space

check_command check_nrpe!check_oracle_disk

        }