SpitfireYük Testi ve Gözlemlenebilirlikv1.4.9 · Yenilikler

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

  1. Komutu kopyalayın, terminale yapıştırın, soruları yanıtlayın.
bash
curl -fsSL "https://<spitfire>/api/v1/setup/ds/snmp.sh?t=<token>" -o /tmp/sf-snmp.sh && bash /tmp/sf-snmp.sh
  1. OK: ... 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:

  1. Tower makinesinden test edin.
bash
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"
  1. 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)

  1. Paketleri kurun.
bash
sudo apt-get install -y snmpd snmp libsnmp-dev || sudo dnf install -y net-snmp net-snmp-utils net-snmp-devel
  1. snmpd'yi durdurun.
bash
sudo systemctl stop snmpd
  1. Salt okunur v3 kullanıcısını ekleyin.
bash
sudo net-snmp-create-v3-user -ro -a SHA-256 -A '<auth-password>' -x AES -X '<priv-password>' spitfire_monitor
  1. Dışarıdan dinlemesini açın (yedek alınır).
bash
sudo sed -i.spitfire.bak 's/^agentaddress .*/agentaddress udp:161/' /etc/snmp/snmpd.conf
  1. snmpd'yi başlatın.
bash
sudo systemctl start snmpd
  1. Test edin.
bash
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

  1. Tower'a açık view, grup ve kullanıcıyı ekleyin.
text
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
  1. Kullanıcıyı görün.
text
show snmp user spitfire_monitor

NX-OS'te: snmp-server user spitfire_monitor network-operator auth sha <auth-password> priv aes-128 <priv-password>.

Juniper Junos

  1. Kullanıcıyı ve salt okunur view'ı ekleyin.
text
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
commit

Arista EOS

  1. View, grup ve kullanıcıyı ekleyin.
text
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 memory

HPE Aruba (ArubaOS-CX, ProCurve)

  1. ArubaOS-CX'te kullanıcıyı ekleyin.
text
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
  1. ProCurve / ArubaOS-Switch'te kullanıcıyı ekleyin.
text
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 memory

MikroTik RouterOS

  1. Tower'a açık, salt okunur v3 kullanıcısını ekleyin.
text
/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=yes

FortiGate

  1. Tower'a açık v3 kullanıcısını ekleyin.
text
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
  1. SNMP'yi Tower'a bakan interface'te açın.
text
config system interface
    edit "<interface>"
        append allowaccess snmp
    next
end

Palo Alto (PAN-OS)

  1. v3 kullanıcısını ve view'ı ekleyin.
text
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
  1. Yönetim interface'inde SNMP'yi açın.
text
set deviceconfig system service disable-snmp no
commit

Check Point (Gaia)

  1. v3 kullanıcısını salt okunur ekleyin.
text
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 config

F5 BIG-IP

  1. Tower'a izin verin ve v3 kullanıcısını ekleyin.
bash
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 config

pfSense ve OPNsense

  1. SNMP servisini açın.
text
pfSense: Services → SNMP → Enable, Bind interface = Tower'a bakan interface
OPNsense: System → Firmware → Plugins → os-net-snmp kur, Services → Net-SNMP → Enable
  1. v3 kullanıcısını ekleyin (OPNsense: Services → Net-SNMP → Users, Read only).
text
Kullanıcı: spitfire_monitor, Auth: SHA, Encryption: AES, Read only

pfSense'in yerleşik SNMP'si v2c bilir: community'yi Tower IP'sine kısıtlayın.

Ubiquiti (UniFi, EdgeOS)

  1. EdgeOS'ta v3 kullanıcısını ekleyin.
text
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
  1. UniFi'de: Network → Settings → System → SNMP → v3, kullanıcı ve parola.
text
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:

  1. SNMP servisini kurun.
powershell
Add-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"
  1. Community'yi salt okunur ve yalnız Tower'a açın.
powershell
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).