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

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
#




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

gzip/zip apache

WWW
включаем. по умолчанию сжатие уже встроенное в apache2
создать файл

cat /usr/local/etc/apache22/Includes/gzip-output.conf
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html


проверка
cat gzip-test.sh
wget -S --spider http://a1.ru/1.txt -o /dev/stdout | grep -i content
echo
wget -S --spider http://a1.ru/1.txt --header "Accept-Encoding: gzip,deflate" -o /dev/stdout | grep -i content


вывод

  Content-Type: text/plain
  Content-Length: 143881

  Content-Type: text/plain
  Content-Encoding: gzip
  Content-Length: 13602


так же можно проверить тут
http://www.gidnetwork.com/tools/gzip-test.php


или любой другой известный вам сервис

падает barnyard2

смотрим логи… видим…

root@suricata:~# cat syslog

Aug 23 10:35:17 suricata barnyard2: #012#012+[ Signature Suppress list ]+#012----------------------------
Aug 23 10:35:17 suricata barnyard2: +[No entry in Signature Suppress List]+
Aug 23 10:35:17 suricata barnyard2: ----------------------------#012+[ Signature Suppress list ]+#012
Aug 23 10:35:19 suricata barnyard2: Barnyard2 spooler: Event cache size set to [2048]
Aug 23 10:35:19 suricata barnyard2: Log directory = /var/log/suricata
Aug 23 10:35:19 suricata barnyard2: INFO database: Defaulting Reconnect/Transaction Error limit to 10
Aug 23 10:35:19 suricata barnyard2: INFO database: Defaulting Reconnect sleep time to 5 second
Aug 23 10:35:19 suricata barnyard2: DEBUG => [Alert_FWsam](AlertFWsamSetup) Using alternative file: /usr/local/etc/sid-fwsam.map
Aug 23 10:35:19 suricata barnyard2: INFO => [Alert_FWsam](AlertFWsamSetup) Using sid-map file: /usr/local/etc/sid-fwsam.map
Aug 23 10:35:19 suricata barnyard2: INFO => [Alert_FWsam](FWsamCheckIn) Connected to host .
Aug 23 10:35:19 suricata barnyard2: Initializing daemon mode
Aug 23 10:35:19 suricata barnyard2: Daemon initialized, signaled parent pid: 5471
Aug 23 10:35:19 suricata barnyard2: PID path stat checked out ok, PID path set to /var/run/
Aug 23 10:35:19 suricata barnyard2: Daemon parent exiting
Aug 23 10:35:19 suricata barnyard2: Writing PID "5481" to file "/var/run//barnyard2_p4p1.pid"
............ skip ..........
Aug 23 10:35:25 suricata barnyard2: Node unique name is: suricata:p4p1#012
Aug 23 10:35:36 suricata barnyard2: FATAL ERROR: database mysql_error: Duplicate entry '3927-1' for key 'PRIMARY'#012#011SQL=[INSERT INTO sig_reference (ref_id,sig_id,ref_seq) VALUES ('2626','3927','1');]


вырос дубль… при этом barnyard2 уходит в down
бежим на оф.сайт и забираем последнию версию.
чистим таблицу с sig_reference
DELETE FROM sig_reference;


заново включаем/если выключали
output database: log, mysql, user=snorby password=pwd dbname=snorby host=localhost

VPN Windows 7 autostart

материала в инете достаточно. мы обобщим

способ 1 — через скрипт запуска.

@echo off
set connection=<название_vpn_соединения>
set pause=30
 
:LOOP
set connected=0
for /f "delims=" %%i in ('rasdial') do (
    if "%%i"=="%connection:"=%" set connected=1
)
if %connected%==0 (
    echo %date% %time%   "%connection%" connection not detected. Dialing...
    rasdial "%connection:"=%" <логин> <пароль>
) else (
    echo %date% %time%   "%connection%" connection is active.
)
ping -n %pause% 127.0.0.1>nul 2>&1
goto LOOP


где:
<название_vpn_соединения> — название вашего vpn-соединения
<логин> — ваш логин от vpn-соединения
<пароль> — ваш пароль от vpn-соединения

способ 2 — rasdial.exe
1. Первым делом запускаем «планировщик заданий».
2. Далее создаём «простую задачу» и придумываем ей имя.
3. Выбираем триггер «при входе в windows».
4. Выполняем действие «запустить программу».
5. Указываем пусть к самой программе «с:\windows\system32\rasdial.exe»
6. В поле «аргументы» через пробел пишем имя вашего VPN соединения, логин и пароль.

p.s. для способа 1 задачу так же подключаем в планировщик