Sürüm: 1.4.9Bu dokümantasyon Spitfire 1.4.9 içindir.
Altyapı izleme — ağ cihazları (SNMP, Beta)
Switch, router, firewall, load balancer ve Linux sunucuları SNMP ile Tower üzerinden okunur. Yalnız
okuma yapılır; cihazda hiçbir ayar değişmez. Her cihaz bir sunucu sayılır (lisanstaki sunucu
sınırı). Cihazlar tek tek host[:161] olarak yazılır; aralık, CIDR ya da ağ taraması yoktur.
Hızlı kurulum
- Komutu kopyalayın, terminale yapıştırın, soruları yanıtlayın.
curl -fsSL "https://<spitfire>/api/v1/setup/ds/snmp.sh?t=<token>" -o /tmp/sf-snmp.sh && bash /tmp/sf-snmp.shOK: ...satırını görünce bitti.
Dosya iki şey sorar: linux bu makinedeki net-snmp'ye salt okunur v3 kullanıcısı ekler, device
hazır bir ağ cihazını yalnız test eder.
Elle kurulum
Önce cihaz ailenizin bölümündeki komutlarla salt okunur v3 kullanıcısını açın. Sonra:
- Tower makinesinden test edin.
snmpget -v3 -l authPriv -u spitfire_monitor -a SHA -A '<auth-password>' -x AES -X '<priv-password>' -t 5 -r 1 udp:<cihaz>:161 1.3.6.1.2.1.1.5.0 1.3.6.1.2.1.1.3.0 && echo "OK: SNMP v3 yanıt veriyor"- Spitfire → Altyapı izleme → SNMP → cihazları ve kullanıcıyı girin.
Sürüm olarak v3 seçin. v2c yalnız v3 bilmeyen cihaz için: community ağda açık metin gider.
net-snmp (Linux)
- Paketleri kurun.
sudo apt-get install -y snmpd snmp libsnmp-dev || sudo dnf install -y net-snmp net-snmp-utils net-snmp-devel- snmpd'yi durdurun.
sudo systemctl stop snmpd- Salt okunur v3 kullanıcısını ekleyin.
sudo net-snmp-create-v3-user -ro -a SHA-256 -A '<auth-password>' -x AES -X '<priv-password>' spitfire_monitor- Dışarıdan dinlemesini açın (yedek alınır).
sudo sed -i.spitfire.bak 's/^agentaddress .*/agentaddress udp:161/' /etc/snmp/snmpd.conf- snmpd'yi başlatın.
sudo systemctl start snmpd- Test edin.
snmpget -v3 -l authPriv -u spitfire_monitor -a SHA-256 -A '<auth-password>' -x AES -X '<priv-password>' udp:127.0.0.1:161 1.3.6.1.2.1.1.3.0 && echo "OK: snmpd yanıt veriyor"Cisco IOS ve IOS XE
- Tower'a açık view, grup ve kullanıcıyı ekleyin.
configure terminal
ip access-list standard SPITFIRE-SNMP
permit <tower-ip>
exit
snmp-server view SPITFIRE-RO iso included
snmp-server group SPITFIRE v3 priv read SPITFIRE-RO access SPITFIRE-SNMP
snmp-server user spitfire_monitor SPITFIRE v3 auth sha <auth-password> priv aes 128 <priv-password>
end
write memory- Kullanıcıyı görün.
show snmp user spitfire_monitorNX-OS'te: snmp-server user spitfire_monitor network-operator auth sha <auth-password> priv aes-128 <priv-password>.
Juniper Junos
- Kullanıcıyı ve salt okunur view'ı ekleyin.
configure
set snmp v3 usm local-engine user spitfire_monitor authentication-sha authentication-password "<auth-password>"
set snmp v3 usm local-engine user spitfire_monitor privacy-aes128 privacy-password "<priv-password>"
set snmp view SPITFIRE-RO oid .1 include
set snmp v3 vacm security-to-group security-model usm security-name spitfire_monitor group SPITFIRE
set snmp v3 vacm access group SPITFIRE default-context-prefix security-model usm security-level privacy read-view SPITFIRE-RO
commitArista EOS
- View, grup ve kullanıcıyı ekleyin.
configure
snmp-server view SPITFIRE-RO iso included
snmp-server group SPITFIRE v3 priv read SPITFIRE-RO
snmp-server user spitfire_monitor SPITFIRE v3 auth sha <auth-password> priv aes <priv-password>
write memoryHPE Aruba (ArubaOS-CX, ProCurve)
- ArubaOS-CX'te kullanıcıyı ekleyin.
configure terminal
snmp-server vrf default
snmpv3 user spitfire_monitor auth sha auth-pass plaintext <auth-password> priv aes priv-pass plaintext <priv-password>
snmpv3 context default vrf default
write memory- ProCurve / ArubaOS-Switch'te kullanıcıyı ekleyin.
configure
snmpv3 enable
snmpv3 user spitfire_monitor auth sha <auth-password> priv aes <priv-password>
snmpv3 group operator user spitfire_monitor sec-model ver3
write memoryMikroTik RouterOS
- Tower'a açık, salt okunur v3 kullanıcısını ekleyin.
/snmp community add name=spitfire_monitor addresses=<tower-ip>/32 security=private read-access=yes write-access=no authentication-protocol=SHA1 authentication-password=<auth-password> encryption-protocol=AES encryption-password=<priv-password>
/snmp set enabled=yesFortiGate
- Tower'a açık v3 kullanıcısını ekleyin.
config system snmp sysinfo
set status enable
end
config system snmp user
edit "spitfire_monitor"
set notify-hosts <tower-ip>
set security-level auth-priv
set auth-proto sha
set auth-pwd <auth-password>
set priv-proto aes
set priv-pwd <priv-password>
set queries enable
next
end- SNMP'yi Tower'a bakan interface'te açın.
config system interface
edit "<interface>"
append allowaccess snmp
next
endPalo Alto (PAN-OS)
- v3 kullanıcısını ve view'ı ekleyin.
configure
set deviceconfig system snmp-setting access-setting version v3 views SPITFIRE-RO view all oid 1.3.6.1 option include
set deviceconfig system snmp-setting access-setting version v3 users spitfire_monitor view SPITFIRE-RO authpwd <auth-password> privpwd <priv-password>
commit- Yönetim interface'inde SNMP'yi açın.
set deviceconfig system service disable-snmp no
commitCheck Point (Gaia)
- v3 kullanıcısını salt okunur ekleyin.
set snmp agent on
set snmp agent-version v3-Only
add snmp usm user spitfire_monitor security-level authPriv auth-pass-type SHA1 auth-pass-phrase <auth-password> privacy-pass-type AES128 privacy-pass-phrase <priv-password>
save configF5 BIG-IP
- Tower'a izin verin ve v3 kullanıcısını ekleyin.
tmsh modify sys snmp allowed-addresses add { <tower-ip> } users add { spitfire_monitor { username spitfire_monitor auth-protocol sha auth-password '<auth-password>' privacy-protocol aes privacy-password '<priv-password>' oid-subset .1 access ro } } && tmsh save sys configpfSense ve OPNsense
- SNMP servisini açın.
pfSense: Services → SNMP → Enable, Bind interface = Tower'a bakan interface
OPNsense: System → Firmware → Plugins → os-net-snmp kur, Services → Net-SNMP → Enable- v3 kullanıcısını ekleyin (OPNsense: Services → Net-SNMP → Users, Read only).
Kullanıcı: spitfire_monitor, Auth: SHA, Encryption: AES, Read onlypfSense'in yerleşik SNMP'si v2c bilir: community'yi Tower IP'sine kısıtlayın.
Ubiquiti (UniFi, EdgeOS)
- EdgeOS'ta v3 kullanıcısını ekleyin.
configure
set service snmp v3 user spitfire_monitor auth type sha
set service snmp v3 user spitfire_monitor auth plaintext-password <auth-password>
set service snmp v3 user spitfire_monitor privacy type aes
set service snmp v3 user spitfire_monitor privacy plaintext-password <priv-password>
set service snmp v3 user spitfire_monitor mode ro
commit; save- UniFi'de: Network → Settings → System → SNMP → v3, kullanıcı ve parola.
Version: SNMPv3, Username: spitfire_monitor, Password: <auth-password>Windows
Windows'un SNMP servisi yalnız v1/v2c bilir ve Microsoft'ça kullanımdan kaldırıldı; Windows için kurulum dosyası yoktur. Windows sunucuları sistem izleme ile ekleyin. Başka yol yoksa v2c:
- SNMP servisini kurun.
Add-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"- Community'yi salt okunur ve yalnız Tower'a açın.
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities" -Name "<community>" -Value 4 -PropertyType DWord -Force; New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers" -Name "1" -Value "<tower-ip>" -PropertyType String -Force; Restart-Service SNMP; Write-Output "OK: SNMP v2c açık"Ne okunur
| Grup | İçerik |
|---|---|
| System | sysName, sysDescr, sysUpTime, sysObjectID |
| IF-MIB | Interface adı, durumu, hızı, trafik, hata ve atılan paket |
| HOST-RESOURCES, UCD | CPU, bellek, disk |
| ENTITY-SENSOR | Sıcaklık, fan, güç kaynağı |
| BGP4, OSPF | Komşu durumları |
| Ürün profilleri | sysObjectID'den seçilir: Cisco, Juniper, Arista, HPE/Aruba, MikroTik, FortiGate, Palo Alto, Check Point, F5, pfSense/OPNsense, Ubiquiti, net-snmp |
Trap'ler Tower'da sayılır ve cihaz görünümünde son 24 saatin trap sayısı görünür.
Eşik bulguları
| Bulgu | Önem |
|---|---|
| Cihaz yanıt vermiyor | kritik |
| Cihaz yeniden başladı (sysUpTime sıfırlandı) | uyarı |
| Interface yönetimsel açıkken düşük | uyarı; uplink ise kritik |
| Interface %90 üstü dolu | uyarı |
| Interface'te hata ya da atılan paket artıyor | uyarı |
| CPU 15 dakikadır %90 üstü | uyarı |
| Disk ya da bellek %90 üstü dolu | uyarı |
| Sensör arıza bildiriyor / normal aralığın dışında | kritik / uyarı |
| BGP komşusu established değil | kritik |
| OSPF komşusu full değil | kritik ya da uyarı |
| VPN tüneli kapalı (FortiGate) | kritik |
| HA durumu değişti / üye senkron değil | uyarı |
| F5 havuzu / üyesi / sanal sunucusu kapalı | kritik / uyarı / uyarı |
| Oturum tablosu %80 üstü dolu | uyarı |
Uplink: Uplink'ler alanına yazılan interface adları ya da alias'ında "uplink" geçenler.
Test sonuçları
| Kod | Anlamı |
|---|---|
ok |
Cihaz yanıt veriyor; sysName ve profil gösterilir |
timeout |
Yanıt yok: v2c'de community yanlış olabilir; değilse ACL, güvenlik duvarı (UDP 161) ya da agent kapalı |
auth |
v3 kullanıcısı, parolası ya da protokolü yanlış |
dns |
Cihaz adı çözülemiyor |
unreachable |
Cihaza ya da ağına ulaşılamıyor |
permission |
Kullanıcının view'ı system grubunu kapsamıyor |
Yakında
- NetFlow, sFlow ve IPFIX akış verisi.
- Bulut yönetimli cihazlar (bulut kontrolcüsünün API'si üzerinden).