91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Linux HA Heartbeat/Monitoring with Nagios

發布時間:2020-07-17 03:03:08 來源:網絡 閱讀:1880 作者:DevilRex119 欄目:移動開發
< Linux HA Heartbeat
Jump to: navigation, search

Contents

[hide]
  • 1Requirements

  • 2Linux HA Server

    • 2.1Script

    • 2.2Configuration


  • 3Nagios Server

    • 3.1template.cfg

    • 3.2host file


Requirements

You need to have a Nagios NRPE server running on the host.

The host need to have the command /usr/bin/cl_status accessible to user nrpe.

Linux HA Server

Script

The script will return a Nagios code of:

  • OK: when the number of registered nodes and active nodes is equal

  • WARNING: If at least one node is active

  • CRITICAL: If the cluster status could not be accessed or if no nodes are active

You can get it here: media:check_heartbeat.sh

Copy it to your nagios plugins directory, in my case: /usr/local/nagios/libexec/

# cp check_hearbeat.sh /usr/local/nagios/libexec/check_heartbeat.sh
# chmod 755 /usr/local/nagios/libexec/check_heartbeat.sh

Configuration

Add the following to /etc/nagios/nrpe_local.cfg

command[check_heartbeat]=/usr/local/nagios/libexec/check_heartbeat.sh

and reload nrpe server:

# /etc/init.d/nagios-nrpe-server reload

Nagios Server

template.cfg

Add the following template:

# check LVS Heartbeat
define service{
    use generic-service
    name check-heartbeat
    service_description Linux HA LVS
    check_command   check_nrpe!check_heartbeat
}

host file

Add the following service definition:

#check heartbeat
define service{
    use check-heartbeat
    host_name   lvs1, lvs2
}
Retrieved from "http://wiki.debuntu.org/wiki/Linux_HA_Heartbeat/Monitoring_with_Nagios"


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

红安县| 进贤县| 永泰县| 朔州市| 马鞍山市| 三台县| 青阳县| 余江县| 盘山县| 平阳县| 辽宁省| 河西区| 梅州市| 登封市| 盘山县| 普宁市| 呼图壁县| 扶沟县| 定襄县| 肃南| 贵州省| 紫金县| 宜兰市| 大安市| 自治县| 大城县| 玛曲县| 紫金县| 临猗县| 库车县| 中方县| 土默特左旗| 彭州市| 左权县| 万载县| 武城县| 宕昌县| 凌源市| 呼和浩特市| 乃东县| 汉寿县|