• úvod
  • témata
  • události
  • tržiště
  • diskuze
  • nástěnka
  • přihlásit
    registrace
    ztracené heslo?
    SNIPERCZEZabbix, nagios a další monitorovací nástroje
    KUTNY
    KUTNY --- ---
    KUTNY: Odpoved je:
    All templates/Cisco_Catalyst_Discovery - Discovery list/Network Interfaces - zalozka filters - pridat filtr {#IFDESCR} matches Ethernet
    CHOROBA
    CHOROBA --- ---
    spine rozhodne. ale v ty novy verzi 1.x uz to umi vic s pollerama paralelne a taky rrd proxy
    DANYSEK
    DANYSEK --- ---
    CHOROBA: jen to chce tahat spis spis uz cacti-spine poller.
    CHOROBA
    CHOROBA --- ---
    todle umi cacti
    TBC
    TBC --- ---
    Pouziva nekdo zabbix nebo jiny open source performence monitoring tool (jaky?), kde by mel radove stovky tisic az nekolik malo milionu citacu? tzn. neco so by zvladala parelizaci dotazovani abychom tohle mohli sbirat v 5 min intervalu?
    KUTNY
    KUTNY --- ---
    Dobre dopoledne,
    nevite, prosim, jak u templatu, kde pres discovery rules - network interfaces - sbiram hodnoty in/out bps, ifAlias aj, napsat macro, tak aby hodnoty sbiral pouze pro ifDescription ifacy, ktere obsahuji klicove slovo "ethernet"? Cilem je, aby template nesbiral hodnoty u jinych ifacu nez GigE, TenGigE, FE.

    predem dekuji za odpoved, nasmerovani.
    TOTAL
    TOTAL --- ---
    MARASAN: Diky za snahu. Jeste se tomu budu venovat, az se budu straslive nudit ... ;)
    MARASAN
    MARASAN --- ---
    TOTAL:
    $ ls -l /dev/sda
    brw-rw---- 1 root disk 8, 0 Oct 12 14:36 /dev/sda
    TOTAL
    TOTAL --- ---
    MARASAN: To uz neni mozny ... mam ted novou masinu a je to to same ... Funguje mi, kdyz priradim smartctl prava roota (suid), coz je taky pekna prasarna ;)

    Jaka mas prava tady ?

    ls -l /dev/sda ?
    MARASAN
    MARASAN --- ---
    TOTAL: mam americky locales ;-)
    MARASAN
    MARASAN --- ---
    # ls -l /usr/sbin/smartctl 
    -rwxr-xr-x 1 root root 679560 Jul 30  2016 /usr/sbin/smartctl

    TOTAL
    TOTAL --- ---
    MARASAN: Jaka mas opravneni pro /usr/sbin/smartctl ? Tady by mohl byt ten problem :)

    -rwxr-xr-x 1 root root 664K čec 30 2016 /usr/sbin/smartctl*
    TOTAL
    TOTAL --- ---
    MARASAN: Super :) To mi svihne, co to muze byt ... Diky za snahu.
    MARASAN
    MARASAN --- ---
    TOTAL: standardni odpoved #64: "Mne to tady funguje.
    # id zabbix
    uid=114(zabbix) gid=121(zabbix) groups=121(zabbix),6(disk)
    # sudo -u zabbix /usr/sbin/smartctl -i /dev/sda
    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-4-amd64] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF INFORMATION SECTION ===
    ...
    


    Debian 9 Stretch, nedelal jsem zadny zmeny v /etc/sudoers.
    TOTAL
    TOTAL --- ---
    MARASAN: Restart ano. Uzivatel zabbix smartctl pusti, ale nedostane info z disku a sudo nepomaha ... Co tohle muze byt.
    --------------------------------------------------------------------------------------------
    sudo -u zabbix /usr/sbin/smartctl -i /dev/sda -d sat
    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-4-amd64] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

    Read Device Identity failed: Operation not permitted

    A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
    ---------------------------------------------------------------------------------------------
    Nevim, jestli je to problem DEBIAN9, nebo to dela i na jinych distribucich ...
    MARASAN
    MARASAN --- ---
    TOTAL: kdyz pridas usera do groupy, musi udelat login, jinak se zmena neprojevi. V pripade daemona restart, tipuju, tos provedl?
    TOTAL
    TOTAL --- ---
    SAMGARR: Zabbix pise u vsech ITEMU neco podobneho ... pod rootem vse jede

    Cannot evaluate expression: "Cannot evaluate function "gw:uHDD[/dev/sda -d sat,Airflow_Temperature].avg(5m)": item is not supported
    TOTAL
    TOTAL --- ---
    MARASAN: Muze vypsat ...
    sudo -u zabbix ls -l /dev/sda
    brw-rw---- 1 root disk 8, 0 pro 19 17:15 /dev/sda

    Musel jsem davat uzivatele zabbix do skupiny disk, aby vubec k diskum mohl pristupovat ...
    uid=112(zabbix) gid=117(zabbix) skupiny=117(zabbix),6(disk)
    MARASAN
    MARASAN --- ---
    TOTAL: "Try an additional '-d ata' or '-d sat' argument."
    No a klasicky vypis
    id zabbix
    ls -l /dev/sda
    ?
    TOTAL
    TOTAL --- ---
    SAMGARR: Omlouvam se za zpozdeni ;)

    sudo -u zabbix /usr/sbin/smartctl
    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-4-amd64] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

    - tohle bezi, ale pokud tam dam .... smartctl uzivatel zabbix pusti, ale pokud chci pristupovat k disku ...

    sudo -u zabbix /usr/sbin/smartctl -i /dev/sda
    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-4-amd64] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

    Probable ATA device behind a SAT layer
    Try an additional '-d ata' or '-d sat' argument.
    Kliknutím sem můžete změnit nastavení reklam