簡報說明
LibreNMS 於企業中實際使用的各種經驗分享,以及 LibreNMS 基本、進階、整合外部應用介紹。
2018 NAS 使用者社團年會台中場 @Monospace
逐頁文字
2018-11-10 NAS 使用者社團年會 @ Monospace
LibreNMS
企業實戰經驗分享
耀達電腦
JASON CHENG為什什麼?
主機太多
難以查看
資料保存
即時 通 知
資訊分散查修麻煩
交叉分析停機 過 長
讀取繁雜解決⽅方案?
付費軟體
ipswitch
WhatsUp® Gold
192
WhatsUp Gold 2018
最新功能
針對重點加強監控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 ToolsSee it all in one place
Your servers, your clouds, your metrics, your apps, your team. Together.HostMonitor
錢能解決的問題都不是問題
「問題是沒有錢」
免費軟體
spiceworks
Simple, easy-to-use network monitoring software.開源軟體
是另⼀一扇⾨門MRTG
Tobi Oetiker's MRTG - The Multi Router Traffc
Grapher
田 3rd Party Docs
What it does
Second
Bits
NewsNagios Open Source
Nagios Core
Nagios Core Plugins
Nagios Core
Nagios Core Addons
XI
LOG SERVER
FUSION(本頁無文字)
SicinGAroducts
Icinga Web 2
Fast. Slight. Extendable.ZABBIX
ZABBIX
4.0 LTS
Retain total visibility
of your IT infrastructure
and services
100%
300 000 +
20 years是我要的嗎?
需求分析
監控眾多裝置
保存歷史數據
支援類型廣泛
自訂裝置分組
美觀好用介面
設定簡單容易
多種認證機制
多樣警報機制
外掛擴充能力
支援二次開發
解決⽅方案
A OBSERVIUM
Expand Visibility
Ease Planning
Improve Reliability
Enterprise, Professional and Community Editions台灣
GoogleOBSERVIUM
file8.忽然有一天...
警報功能勒?抱歉,這功能要錢喔
呃...
救星來來了了
救星來來了了
PHP
SNMP
MariaDB
RRDICMP
SNMP
AGENT
APPLICATION
SERVICECPU RAM
NET DISK
裝置概觀
裝置列表
部份裝置Logo
部份廠牌Logo
設定監控會不會很麻煩?
裝置列表
加入裝置 4
好,你已經學會LibreNMS了。
加入裝置 4
更更多功能
Overview
日口
Dashboard
syslogDashboard
DashboardDashboard
Dashboard
Availability Map
呃... Network Map
Eventlog
IP/MAC/ARP/FDB Table
Devices
沙 Device DependenciesNAS
SynologySynology
RRDTOOL / TOB1 OETIKERRRDTOOL / TOBI OETIKER|
oni
- CPU usage
RRDTOOL
TOBI
OETIKER
OETIKER
RRDTOOL
RRDTOOL
OETIKERI
QETIKER95%' to transport 'telegram'
RRDTOOL / TOBI OETIKER
(本頁無文字)
NAS
QNAPRRDTODL / TOBT OETIKER
172.16.4.4
Processor Usage(本頁無文字)
NAS
FreeNAS(本頁無文字)
Voltage
4.928V3.3V
NAS
VINAS廣告
限量款式即將聯名上市
文道有先後
數頁有專供廣告
節省哥您好,
您的順序。
VINAS將在11/11 發出。
我是文生哥,在這邊信件通知您,恭喜獲得VINAS的領取資格,請回信已確認
VINAS詳情>> vinas.twPrinter
Develop / Konica-Minolta(本頁無文字)
(本頁無文字)
UPS
Netagent(本頁無文字)
Serial Server
Moxa2018-10:22
Network
NetgearNETGEAR
NETGEAR
Network
Dell(本頁無文字)
Network
CiscoCISCO
Network
DrayTekDray Tek
RRDTOOL / TOBI OETIKERNetwork
pfSenseRRDTOOL / TOBT OETIKER
RRDTOOL / TOBI OETIKER|Network
PaloAltoRRDTOOL
* FanspeedPC
Windows DesktopOETIKER
計費
Traffic BillsLibreNMS
Bill:
Transfer Report
Bytes Transferred驗證
Authentication帳號密碼驗證
MySQL
Active Directory
LDAP
Radius
HTTP Auth
Single Sign-on雙因素驗證
行動應用
Mobile DevicemyLibreNMS
生產應用
0 這個應用程式與你的部分裝置相容。
已安裝App Store Preview
myLibreNMS @+LibreNMS
:LibreNMS
LibreNMS
XPROXMOX中文化
Chinese Version(本頁無文字)
中文化現況
目前支援至 1.33
https://github.com/jasoncheng7115/librenms-cpatch需 Hard Code 方式修改
更新後回復英文版
官方多語言架構開發中
正在期待,準備動手只⽤用 SNMP,這樣夠嗎?
擴充監控
IPMI
硬體管理介面資訊擷取* Fanspeed
Check_MK Agnet
代理程式加強資訊完整XPROXMOX
0.000 apt-transport-https
0.000
0.00g autoconf
0.000 bash-completionApplication
加強特定應用詳細資訊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 ZFSApps: Apache
Apps: Asterisk
Apps: FreeBSD NFS Server
Apps: MySQL/MariaDB
Apps: NTP Server
Apps: OS Updates
Apps: Proxmox
Apps: Proxmox
Apps: SMART
Apps: ZFS
看似很多,但也就這樣?
靈活外掛
Service
無限擴充的外掛程式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_hostsicmp 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 memorynagios 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 raidsensors 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(本頁無文字)
(本頁無文字)
(本頁無文字)
mysql
覺得不夠
有需要就到這個網址Nagios’
4837+
找不到
那就自己寫囉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).記錄管理理
Eventlog
系統與裝置異動檢測記錄2018-10-22
(本頁無文字)
(本頁無文字)
Syslog
集中收容裝置事件記錄(本頁無文字)
XPROXMOX
XPROXMOX
問題來了
Windows 丟 Syslog 怎麼辦官⽅方推薦
https://github.com/fmikker/syslogagent
我最推薦
https://nxlog.co/products/nxlog-community-edition
警報機制
功能
Alert Transport
Alert Template
Alert Rule
Notification / AcknowledgeAlert
警報發送範例X[警報]
onit
說明:
dev
規則:服務狀態異常程
T CAN IT
系統(id=81)
string 請輸入帳號'not foundAlert Transport
警報發送管道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(本頁無文字)
Alert Template
警報發送訊息樣版(本頁無文字)
(本頁無文字)
Alert Rule
警報發送條件設定(本頁無文字)
(本頁無文字)
Notification / Acknowledge
警報提示與處理結果(本頁無文字)
.com
onit
hat
dev
Max 前往處理完成
CAN IT進階整合
Graylog
整合外部記錄分析系統grayl®g
HistogramMessages
2018-11-
2018-11-Weathermap
裝置狀況與網路氣象圖(本頁無文字)
(本頁無文字)
https://github.com/librenms-plugins/Weathermap
Weathermapper
網路氣象圖快速產生器(本頁無文字)
(本頁無文字)
https://github.com/pblasquez/weathermapper
Oxidized
裝置組態自動備份系統(本頁無文字)
€€ -69,14 +75,15 @@
29.https://github.com/ytti/oxidized
10
常⾒見見問題問題一
源頭故障,一堆主機發警報怎麼辦源頭異常,所有子項一起警報
裝置關聯
心 Device Dependencies問題二
Windows 常產生礙眼的無用 Port(本頁無文字)
/opt/librenms/config.php
(本頁無文字)
問題三
輪詢 Service 單緒執行過久如何解決/etc/cron.d/librenms
check-services.php
services-wrapper.py
更換排程設定中的輪詢執行器
問題四
LibreNMS 軟體更新頻率a s e
⼀一 R ele
常通
⼀一個⽉月通常個月Release
/opt/librenms
daily.sh
手動更新 LibreNMS 至最新 Release 版
m i t
有 新 Com
⾄至 2 天就
每 1
每1至2天就有新Commit更更新頻道切換
$config['update_channel'] = 'release';$config['update_channel'] = 'master';
⾃自動更更新開關
$config['update'] = 0;$config['update'] = 1;
BLACKDUCK | Open Hub
librenms
SecurityVulnerabilities
LACKDUCK| Open Hub
1.36.01
1.42.01問題五
LibreNMS 檢查別人死掉沒,它自己呢圖片取自 https://www.mobile01.com/topicdetail.php?f=650&t=2278953
只要拿另外一支電筒照著它再架一台 LibreNMS 來監控 LibreNMS 嘛!
PHP Server Monitor
繁體中文化版本 https://github.com/jasoncheng7115/phpservermon
狀態問題六
檢查裝置太多,單台 LibreNMS 扛不住Distributed Poller
https://docs.librenms.org/Extensions/Distributed-Poller/11
時間粒度更細微的時間粒度
預設Poller = 5分
極限Poller ≧ 1分
LibreNMS 裝置輪詢建議與極限需要秒級單位
你可以搭配其它方案來做
netdata
系統狀狀態即時監看(本頁無文字)
System Overview
11.7
percentagenetwork
megabi
megabGrafana
Prometheus
系統狀狀態即時數據集中收容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...特別感謝向大提供 Prometheus+Grafana 實際運作圖
特別感謝向大提供 Prometheus+Grafana 實際運作圖
實例
直接看比較圖最準確5分
1分
1秒
12
更更多資源docs.
librenms.orgjasontools.
blogspot.com
節省工具箱/Jason Tools
完成您的slideshare.net/
jasoncheng7115真正的價值不在於免費。
「 ⽽而是開放源碼、通⽤用架構、
⾃自由使⽤用、眾⼈人協作。 」
自由使用、眾人協作。END