linux監控平台nagios的使用(五)使用以及相關說明

來源:互聯網
上載者:User

使用及相關如下:

使用指令碼如下配套之前的函數:

addservices () {        echo "you can add services for  web-server or mysql-server "    echo "1,web-server"    echo "2,mysql-server"    echo "3,exit"     read abc      case $abc in 1)          webservices ;;     2)            echo "you can change the mysql type"        echo "1,master server"        echo "2,slave server"         read abcd               if [ $abcd == 1 ]                 then               #installclientmysql               addmysqlservicemaster                 else           #installclientmysql               addmysqlserviceslave                fi         echo " " ;;     3)        exit ;;     esac       }                       actionserver () {     echo "this is at nagios server:you can change install environment or add services" echo "1,Install  environment  for nagios;" echo "2,add the client services!!!!!!!!!" read aaa     case $aaa in 1)     installserver      addnagios ;;     2)     addservices ;;     *)     echo "this is error,please change again." actionserver ;;     esac     }              actionclient () {     echo "this is at nagios client:you can install the different environment" echo "1,install the environment for web-server!!" echo "2,install the environment for mysql-server" read bbb     case $bbb in 1)     installweb ;;     2)     installmysql ;;     3)     echo "this is error,please change again" actionclient ;;     esac     }              echo "######################################" echo "######**this is nagios scripts**######" echo "you can change this action:" echo "1,if you at the nagios server,please check it out!!" echo "2,if you at the nagios client,please check it out!!" read asd     case $asd in 1)      actionserver ;;     2)      actionclient ;;     *)       exit ;;     esac

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.