節省工具箱公開簡報

LibreNMS 企業實戰經驗分享

2018/11/10Monospace232 張投影片

/ 232

簡報說明

LibreNMS 於企業中實際使用的各種經驗分享,以及 LibreNMS 基本、進階、整合外部應用介紹。

2018 NAS 使用者社團年會台中場 @Monospace

完整議程:https://tfc.kktix.cc/events/nas-tw-2018

逐頁文字

  1. 2018-11-10 NAS 使用者社團年會 @ Monospace

    LibreNMS
    企業實戰經驗分享
    耀達電腦
    JASON CHENG

  2. 為什什麼?

  3. 主機太多
    難以查看
    資料保存
    即時 通 知
    資訊分散

  4. 查修麻煩
    交叉分析

    停機 過 長
    讀取繁雜

  5. 解決⽅方案?

  6. 付費軟體

  7. ipswitch
    WhatsUp® Gold
    192
    WhatsUp Gold 2018
    最新功能
    針對重點加強監控

  8. opsview
    Opsview Monitor Enterprise Plan
    Enjoy the core benefits of Opsview Monitor, like Dashboards, Notifications, and Integrations. With that you get out of tl
    box SLA and trend reporting, scalability for large systems, up to 24/7 support, and your own dedicated customer succe
    Enterprise Monitoring Tools

  9. See it all in one place
    Your servers, your clouds, your metrics, your apps, your team. Together.

  10. HostMonitor

  11. 錢能解決的問題都不是問題

    「問題是沒有錢」

  12. 免費軟體

  13. spiceworks
    Simple, easy-to-use network monitoring software.

  14. 開源軟體
    是另⼀一扇⾨門

  15. MRTG
    Tobi Oetiker's MRTG - The Multi Router Traffc
    Grapher
    田 3rd Party Docs
    What it does
    Second
    Bits
    News

  16. Nagios Open Source
    Nagios Core
    Nagios Core Plugins
    Nagios Core
    Nagios Core Addons
    XI
    LOG SERVER
    FUSION

  17. (本頁無文字)

  18. SicinGAroducts
    Icinga Web 2
    Fast. Slight. Extendable.

  19. ZABBIX
    ZABBIX
    4.0 LTS
    Retain total visibility
    of your IT infrastructure
    and services
    100%
    300 000 +
    20 years

  20. 是我要的嗎?

  21. 需求分析

  22. 監控眾多裝置

  23. 保存歷史數據

  24. 支援類型廣泛

  25. 自訂裝置分組

  26. 美觀好用介面

  27. 設定簡單容易

  28. 多種認證機制

  29. 多樣警報機制

  30. 外掛擴充能力

  31. 支援二次開發

  32. 解決⽅方案

  33. A OBSERVIUM
    Expand Visibility
    Ease Planning
    Improve Reliability
    Enterprise, Professional and Community Editions

  34. 台灣
    Google

  35. OBSERVIUM
    file8.

  36. 忽然有一天...
    警報功能勒?

  37. 抱歉,這功能要錢喔

  38. 呃...

  39. 救星來來了了

  40. 救星來來了了

  41. PHP
    SNMP
    MariaDB
    RRD

  42. ICMP
    SNMP
    AGENT
    APPLICATION
    SERVICE

  43. CPU RAM

    NET DISK

  44. 裝置概觀

  45. 裝置列表

  46. 部份裝置Logo

  47. 部份廠牌Logo

  48. 設定監控會不會很麻煩?

    裝置列表

  49. 加入裝置 4

  50. 好,你已經學會LibreNMS了。

    加入裝置 4

  51. 更更多功能

  52. Overview
    日口
    Dashboard
    syslog

  53. Dashboard
    Dashboard

  54. Dashboard

  55. Dashboard

  56. Availability Map

  57. 呃... Network Map

  58. Eventlog

  59. IP/MAC/ARP/FDB Table

  60. Devices
    沙 Device Dependencies

  61. NAS
    Synology

  62. Synology
    RRDTOOL / TOB1 OETIKER

  63. RRDTOOL / TOBI OETIKER|
    oni
    - CPU usage
    RRDTOOL
    TOBI
    OETIKER
    OETIKER
    RRDTOOL
    RRDTOOL
    OETIKERI
    QETIKER

  64. 95%' to transport 'telegram'

  65. RRDTOOL / TOBI OETIKER

  66. (本頁無文字)

  67. NAS
    QNAP

  68. RRDTODL / TOBT OETIKER

  69. 172.16.4.4
    Processor Usage

  70. (本頁無文字)

  71. NAS
    FreeNAS

  72. (本頁無文字)

  73. Voltage
    4.928V

    3.3V

  74. NAS
    VINAS

  75. 廣告
    限量款式即將聯名上市
    文道有先後
    數頁有專供

  76. 廣告
    節省哥您好,
    您的順序。
    VINAS將在11/11 發出。
    我是文生哥,在這邊信件通知您,恭喜獲得VINAS的領取資格,請回信已確認
    VINAS詳情>> vinas.tw

  77. Printer
    Develop / Konica-Minolta

  78. (本頁無文字)

  79. (本頁無文字)

  80. UPS
    Netagent

  81. (本頁無文字)

  82. Serial Server
    Moxa

  83. 2018-10:22

  84. Network
    Netgear

  85. NETGEAR

  86. NETGEAR

  87. Network
    Dell

  88. (本頁無文字)

  89. Network
    Cisco

  90. CISCO

  91. Network
    DrayTek

  92. Dray Tek
    RRDTOOL / TOBI OETIKER

  93. Network
    pfSense

  94. RRDTOOL / TOBT OETIKER
    RRDTOOL / TOBI OETIKER|

  95. Network
    PaloAlto

  96. RRDTOOL
    * Fanspeed

  97. PC
    Windows Desktop

  98. OETIKER

  99. 計費
    Traffic Bills

  100. LibreNMS

  101. Bill:
    Transfer Report
    Bytes Transferred

  102. 驗證
    Authentication

  103. 帳號密碼驗證
    MySQL
    Active Directory
    LDAP
    Radius
    HTTP Auth
    Single Sign-on

  104. 雙因素驗證

  105. 行動應用
    Mobile Device

  106. myLibreNMS
    生產應用
    0 這個應用程式與你的部分裝置相容。
    已安裝

  107. App Store Preview
    myLibreNMS @+

  108. LibreNMS

    :LibreNMS
    LibreNMS
    XPROXMOX

  109. 中文化
    Chinese Version

  110. (本頁無文字)

  111. 中文化現況
    目前支援至 1.33
    https://github.com/jasoncheng7115/librenms-cpatch

    需 Hard Code 方式修改
    更新後回復英文版
    官方多語言架構開發中
    正在期待,準備動手

  112. 只⽤用 SNMP,這樣夠嗎?

  113. 擴充監控

  114. IPMI
    硬體管理介面資訊擷取

  115. * Fanspeed

  116. Check_MK Agnet
    代理程式加強資訊完整

  117. XPROXMOX

  118. 0.000 apt-transport-https
    0.000
    0.00g autoconf
    0.000 bash-completion

  119. Application
    加強特定應用詳細資訊

  120. Apache GPSD Postfix
    Asterisk Mailscanner Postgres
    BIND9/named Memcached PowerDNS
    C.H.I.P Munin Proxmox
    Ceph MySQL/MariaDB Raspberry PI
    DHCP Stats NGINX SDFS Info
    Entropy NFS Server SMART
    EXIM Stats NTP Client Squid
    Fail2ban NTP Server/NTPD TinyDNS/djbdns
    FreeBSD NFS Client Nvidia GPU Unbound
    FreeBSD NFS Server OS Updates UPS-nut
    FreeRADIUS PHP-FPM UPS-apcups
    FreeSwitch Pi-hole ZFS

  121. Apps: Apache

  122. Apps: Asterisk

  123. Apps: FreeBSD NFS Server

  124. Apps: MySQL/MariaDB

  125. Apps: NTP Server

  126. Apps: OS Updates

  127. Apps: Proxmox

  128. Apps: Proxmox

  129. Apps: SMART

  130. Apps: ZFS

  131. 看似很多,但也就這樣?

  132. 靈活外掛

  133. Service
    無限擴充的外掛程式

  134. ajp dbi etc_resolv
    apt dhcp file_age
    backuppc dig flexlm
    bgpstate disk fping
    breeze disk_smb ftp
    by_ssh dns game
    cert_expire drbd graphite
    checksums dummy haproxy
    clamav email_delivery haproxy_stats
    cluster entropy
    cups etc_hosts

  135. icmp ldap mongodb
    ide_smart ldaps mrtg
    ifoperstatus libs mrtgtraf
    ifstatus libvirt multipath
    imap lm_sensors mysql
    imap_quota load mysql_heath
    imap_receive log mysql_query
    ipmi_sensor mailq
    ircd memcached
    jabber memory

  136. nagios oracle rbl
    nfsmounts overcr real
    nntp packages redis
    nntps pgsql rps
    nt ping rta_multi
    ntp pop running_ker
    nel
    ntp_peer printer
    ntp_time procs
    nwstat raid

  137. sensors soas ups
    shutdown spop uptime
    simap ssh users
    smstools ssl_cert v46
    smtp ssmtp wave
    smtp_send statusfile webinject
    snmp swap zone_auth
    snmp_enviro tcp zone_rrsig_exp
    nment iration
    time
    snmp_time
    udp

  138. (本頁無文字)

  139. (本頁無文字)

  140. (本頁無文字)

  141. mysql

  142. 覺得不夠
    有需要就到這個網址

  143. Nagios’

  144. 4837+

  145. 找不到
    那就自己寫囉

  146. Description
    1 day, 23h 13m
    (>24H)
    15 days, 22h
    Storage
    抄寫時間差
    numoffles_byssh 15 days, 11h
    外寄 Queue 檢查
    (>10)
    目前使用者人數
    (>22)
    warning- 20
    8 days, 10h 38m
    耀達域名
    02-24).

  147. 記錄管理理

  148. Eventlog
    系統與裝置異動檢測記錄

  149. 2018-10-22

  150. (本頁無文字)

  151. (本頁無文字)

  152. Syslog
    集中收容裝置事件記錄

  153. (本頁無文字)

  154. XPROXMOX

  155. XPROXMOX

  156. 問題來了
    Windows 丟 Syslog 怎麼辦

  157. 官⽅方推薦

    https://github.com/fmikker/syslogagent

  158. 我最推薦

    https://nxlog.co/products/nxlog-community-edition

  159. 警報機制

  160. 功能
    Alert Transport
    Alert Template
    Alert Rule
    Notification / Acknowledge

  161. Alert
    警報發送範例

  162. X[警報]
    onit
    說明:
    dev
    規則:服務狀態異常程
    T CAN IT
    系統(id=81)
    string 請輸入帳號'not found

  163. Alert Transport
    警報發送管道

  164. API JIRA Pushover
    Boxcar Mail Rocket.chat
    Canopsis Microsoft Teams Slack
    Cisco Spark Nagios SMSEagle
    Compatible
    Clickatell Syslog
    OpsGenie
    Discord Telegram
    osTicket
    Elasticsearch Twilio SMS
    PagerDuty
    Gitlab VictorOps
    Philips Hue
    HipChat Kayako Classic
    PlaySMS
    IRC SMSFeedback
    Pushbullet

  165. (本頁無文字)

  166. Alert Template
    警報發送訊息樣版

  167. (本頁無文字)

  168. (本頁無文字)

  169. Alert Rule
    警報發送條件設定

  170. (本頁無文字)

  171. (本頁無文字)

  172. Notification / Acknowledge
    警報提示與處理結果

  173. (本頁無文字)

  174. .com
    onit
    hat
    dev
    Max 前往處理完成
    CAN IT

  175. 進階整合

  176. Graylog
    整合外部記錄分析系統

  177. grayl®g
    Histogram

    Messages

  178. 2018-11-
    2018-11-

  179. Weathermap
    裝置狀況與網路氣象圖

  180. (本頁無文字)

  181. (本頁無文字)

  182. https://github.com/librenms-plugins/Weathermap

  183. Weathermapper
    網路氣象圖快速產生器

  184. (本頁無文字)

  185. (本頁無文字)

  186. https://github.com/pblasquez/weathermapper

  187. Oxidized
    裝置組態自動備份系統

  188. (本頁無文字)

  189. €€ -69,14 +75,15 @@
    29.

  190. https://github.com/ytti/oxidized

  191. 10
    常⾒見見問題

  192. 問題一
    源頭故障,一堆主機發警報怎麼辦

  193. 源頭異常,所有子項一起警報

  194. 裝置關聯
    心 Device Dependencies

  195. 問題二
    Windows 常產生礙眼的無用 Port

  196. (本頁無文字)

  197. /opt/librenms/config.php

  198. (本頁無文字)

  199. 問題三
    輪詢 Service 單緒執行過久如何解決

  200. /etc/cron.d/librenms

    check-services.php

    services-wrapper.py

    更換排程設定中的輪詢執行器

  201. 問題四
    LibreNMS 軟體更新頻率

  202. a s e
    ⼀一 R ele
    常通
    ⼀一個⽉月

    通常個月Release

  203. /opt/librenms

    daily.sh

    手動更新 LibreNMS 至最新 Release 版

  204. m i t
    有 新 Com
    ⾄至 2 天就
    每 1
    每1至2天就有新Commit

  205. 更更新頻道切換
    $config['update_channel'] = 'release';

    $config['update_channel'] = 'master';

    ⾃自動更更新開關
    $config['update'] = 0;

    $config['update'] = 1;

  206. BLACKDUCK | Open Hub
    librenms
    Security

    Vulnerabilities
    LACKDUCK| Open Hub
    1.36.01
    1.42.01

  207. 問題五
    LibreNMS 檢查別人死掉沒,它自己呢

  208. 圖片取自 https://www.mobile01.com/topicdetail.php?f=650&t=2278953
    只要拿另外一支電筒照著它

  209. 再架一台 LibreNMS 來監控 LibreNMS 嘛!

  210. PHP Server Monitor
    繁體中文化版本 https://github.com/jasoncheng7115/phpservermon
    狀態

  211. 問題六
    檢查裝置太多,單台 LibreNMS 扛不住

  212. Distributed Poller
    https://docs.librenms.org/Extensions/Distributed-Poller/

  213. 11
    時間粒度

  214. 更細微的時間粒度

  215. 預設Poller = 5分
    極限Poller ≧ 1分
    LibreNMS 裝置輪詢建議與極限

  216. 需要秒級單位

    你可以搭配其它方案來做

  217. netdata
    系統狀狀態即時監看

  218. (本頁無文字)

  219. System Overview
    11.7
    percentage

  220. network
    megabi
    megab

  221. Grafana

    Prometheus
    系統狀狀態即時數據集中收容

  222. Prometheus
    From metrics to insight
    Power your metrics and alerting with a leading
    open-source monitoring solution.

    Dimensional d...
    Q Powerful queri...
    Great visualiz.
    Efficient storage
    Simple operation
    A Precise alerting
    Many integrati...

  223. 特別感謝向大提供 Prometheus+Grafana 實際運作圖

  224. 特別感謝向大提供 Prometheus+Grafana 實際運作圖

  225. 實例
    直接看比較圖最準確

  226. 5分

    1分

    1秒

  227. 12
    更更多資源

  228. docs.
    librenms.org

  229. jasontools.
    blogspot.com
    節省工具箱/Jason Tools
    完成您的

  230. slideshare.net/
    jasoncheng7115

  231. 真正的價值不在於免費。

    「 ⽽而是開放源碼、通⽤用架構、
    ⾃自由使⽤用、眾⼈人協作。 」
    自由使用、眾人協作。

  232. END