rate-limit для QoS’а на Cisco

rate-limit output 15360000 2880000 5760000 conform-action transmit exceed-action drop

rate-limit output ‘rate’ ‘burst_norm’ ‘burst_max’ conform-action transmit exceed-action drop


burst_norm = rate * 0,125 * 1,5 (seconds)
burst_max = burst_norm * 2

0,125 = 1(byte)/8(bits)

LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable

после обновления появились

[root@s24 cron.daily]# ./freshclam
LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable


ставим

[root@s24 cron.daily]# yum install clamav-devel
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                   |  24 kB     00:00
 * base: centos-mirror.rbc.ru
 * epel: mirror.logol.ru
 * extras: centos-mirror.rbc.ru
 * rpmforge: mirror.awanti.com
 * updates: centos-mirror.rbc.ru
CentALT                                                                                                         |  951 B     00:00
base                                                                                                            | 3.7 kB     00:00
endpoint                                                                                                        |  951 B     00:00
extras                                                                                                          | 3.4 kB     00:00
rpmforge                                                                                                        | 1.9 kB     00:00
updates                                                                                                         | 3.4 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package clamav-devel.x86_64 0:0.98.1-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
 Package                           Arch                        Version                              Repository                    Size
=======================================================================================================================================
Installing:
 clamav-devel                      x86_64                      0.98.1-1.el6                         CentALT                       46 k

Transaction Summary
=======================================================================================================================================
Install       1 Package(s)

Total download size: 46 k
Installed size: 76 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 46 k
clamav-devel-0.98.1-1.el6.x86_64.rpm                                                                            |  46 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : clamav-devel-0.98.1-1.el6.x86_64                                                                                    1/1
  Verifying  : clamav-devel-0.98.1-1.el6.x86_64                                                                                    1/1

Installed:
  clamav-devel.x86_64 0:0.98.1-1.el6

Complete!
[root@s24 cron.daily]# ./freshclam
[root@s24 cron.daily]#


ошибка ушла.
так же проверяем пути базы и права на файлы.

не забывая поправить файл /etc/logrotate.d/clamav

ipmi supermicro

создадим ipmi для серверов supermicro шаблон в zabbix
ipmitool
apt-get install ipmitool
ipmitool -h
ipmitool -H IP_ipmi_SuperMicro -L User -U Login -P PasSwoRd sdr

в итоге будет таблица

CPU1 Temp        | 0x00              | ok
CPU2 Temp        | 0x00              | ok
System Temp      | 18 degrees C      | ok
CPU1 Vcore       | 1.19 Volts        | ok
CPU2 Vcore       | 1.18 Volts        | ok
+1.5V            | 1.51 Volts        | ok
+5V              | 5.22 Volts        | ok
+5VSB            | 5.18 Volts        | ok
+12V             | 12.19 Volts       | ok
-12V             | -12.00 Volts      | ok
+3.3V            | 3.26 Volts        | ok
+3.3VSB          | 3.24 Volts        | ok
VBAT             | 3.19 Volts        | ok
Fan1             | 8370 RPM          | ok
Fan2             | 8370 RPM          | ok
Fan3             | 8370 RPM          | ok
Fan4             | 8370 RPM          | ok
Fan5             | 14040 RPM         | ok
Fan6             | 14040 RPM         | ok
Fan7             | no reading        | ns
Fan8             | no reading        | ns
P1-DIMM1A Temp   | 17 degrees C      | ok
P1-DIMM1B Temp   | no reading        | ns
P1-DIMM2A Temp   | 19 degrees C      | ok
P1-DIMM2B Temp   | no reading        | ns
P1-DIMM3A Temp   | 19 degrees C      | ok
P1-DIMM3B Temp   | no reading        | ns
P2-DIMM1A Temp   | 18 degrees C      | ok
P2-DIMM1B Temp   | no reading        | ns
P2-DIMM2A Temp   | 17 degrees C      | ok
P2-DIMM2B Temp   | no reading        | ns
P2-DIMM3A Temp   | 18 degrees C      | ok
P2-DIMM3B Temp   | no reading        | ns
Intrusion        | 0x00              | ok
PS Status        | 0x00              | ok


их и заводим в заббикс Template IPMI SurepMicro

freebsd

быстро, без логов

проц.
sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'
hw.machine: amd64
hw.model: Intel® Core(TM)2 Duo CPU     E4500  @ 2.20GHz
hw.ncpu: 2
hw.machine_arch: amd64


сетевые
pciconf -lv | grep -A4 em
em0@pci0:13:0:0:        class=0x020000 card=0x108c15d9 chip=0x108c8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (82573E)'
    class      = network
    subclass   = ethernet
em1@pci0:14:0:0:        class=0x020000 card=0x109a15d9 chip=0x109a8086 rev=0x00 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel PRO/1000 PL Network Adaptor (82573L)'
    class      = network
    subclass   = ethernet

Работаем с реестром запрещенных ресурсов

обобщенный мануал. в инете много примеров. кривых и рабочих. тут краткий ход действий.

и так получен етокен с новым ключом.
качаем утилиту P12FromGostCSP с оф.сайта. которая на данный момент уже платная и стоит 1200р.

Читать дальше →

apache FreeBSD Couldn't initialize cross-process lock in child

WWW
баг апача в FreeBSD, который проявляется при graceful-рестарте (при ротации логов)
[Mon Dec 02 22:35:03 2013] [emerg] (2)No such file or directory: Couldn't initialize cross-process lock in child (/var/log/accept.lock.81836)(5)
[Mon Dec 02 22:35:04 2013] [alert] Child 41776 returned a Fatal error... Apache is exiting!


должно помочь
AcceptMutex fcntl

mtr

[root@conf]# mtr -r -c50 host.ru
HOST: *****************.ru        Loss%   Snt   Last   Avg  Best  Wrst StDev
  1. 1.ru                          0.0%    50   10.7  11.5   6.2  50.5   6.8
  2. 172.18.8.5                    0.0%    50   11.6  15.6   7.5  57.0   9.2
  3. 172.18.8.9                    0.0%    50   25.5  24.8   7.0 302.9  57.1
  4. 8*.***.***.**2                2.0%    50   10.9  15.2   7.9  55.3   8.1
  5. comfortel.****.net            0.0%    50   45.6  50.0  39.6 112.8  16.2
  6. ???                          100.0    50    0.0   0.0   0.0   0.0   0.0
  7. ***********2.*****.ru         0.0%    50   41.8  45.6  40.1  62.5   4.5
  8. ************2.*****.ru        0.0%    50   44.3  45.5  39.5  69.0   5.2
  9.     host  .ru                 0.0%    50   48.1  47.2  39.5  77.7   6.4
[root@conf]#

vnstat

(linux)

vnstat -l -i p4p1


root@suri:/var/# vnstat -l -i p4p1
Monitoring p4p1...    (press CTRL-C to stop)

   rx:    13.24 Mbit/s  7162 p/s          tx:        0 kbit/s     0 p/s^C


 p4p1  /  traffic statistics

                           rx         |       tx
--------------------------------------+------------------
  bytes                   242.14 MiB  |           0 KiB
--------------------------------------+------------------
          max           23.23 Mbit/s  |        0 kbit/s
      average           14.59 Mbit/s  |     0.00 kbit/s
          min           10.83 Mbit/s  |        0 kbit/s
--------------------------------------+------------------
  packets                     898049  |               0
--------------------------------------+------------------
          max               8056 p/s  |           0 p/s
      average               6603 p/s  |           0 p/s
          min               4798 p/s  |           0 p/s
--------------------------------------+------------------
  time                  2.27 minutes

root@suri:/var/#


freebsd
systat -if
netstat -w1

dlink smtp cpu utilization zabbix

оригинал документа тут
http://webdev.dlink.ru/technical/pdf/hub_switch/SNMP_CPU_Utilization.pdf


т.е. из шелла можно получить так

root@backup:~/MRTG# cat snmt.sh
#!/bin/sh

#
snmpget -v2c -c public 19*.4 1.3.6.1.4.1.171.12.1.1.6.1.0
snmpget -v2c -c public 19*.4 1.3.6.1.4.1.171.12.1.1.6.2.0
snmpget -v2c -c public 19*.4 1.3.6.1.4.1.171.12.1.1.6.3.0
#




Читать дальше →