Zabbix не бичить процесси
Zabbix-agent не бичить процесси, але вони запущені.
/usr/local/bin/zabbix_get -s 127.0.0.1 -p 10050 -k “proc.num[sshd].last(0)”
0
# ps -ax| grep sshd
637 ?? Is 0:13.32 /usr/sbin/sshd
Проблема в цьому….
sysctl -a | grep security.bsd.see_other
security.bsd.see_other_gids: 0
security.bsd.see_other_uids: 0
Якшо на сервері не критично поміняти то міняємо.
Якщо критично то..
To fix this simply change the user name in the following files after you run ./configure [options]
configure:
int
main ()
{
char *user = "flzabbix"; < --- change this to your new runtime user
initgroups(user, 0);
;
return 0;
}
configure.in:
[
char *user = "flzabbix"; <--- change this to your new runtime user
initgroups(user, 0);
],
src/libs/zbxnix/daemon.c
char user[9] = "flzabbix"; <--- change this to your new runtime user
*** Remember this is C and you must appropriately size the char array based on the length of your new runtime user.
Now make install and Zabbix will run as the proper user.
yum -y update missing dependency libcares.so.1
При trixbox оновлені вискочило …
yum -y update missing dependency libcares.so.1 is needed by package sipsak-0.9.6.1.el5.i386
Не біда. Робимо наступне…
wget http://download.fedora.redhat.com/pub/epel/5/i386/sipsak-0.9.6-8.el5.i386.rpm
wget http://download.fedora.redhat.com/pub/epel/5/i386/c-ares-1.6.0-2.el5.i386.rpm
rpm -Uhv sipsak-0.9.6-8.el5.i386.rpm c-ares-1.6.0-2.el5.i386.rpm
yum update
Скрипт auto vpn and route
Деколи потрібно приєднятись до ВПН сервера і прописати маршрут тільки на деяку мережу.
ВПН видає різні ацпі адреси…
Створюемо ВПН зэдняння з назвою VPN_name
auto_vpn.bat
rasdial /disconnect
rasdial "VPN_name" vpn_login vpn_pass
ipconfig |find "IP-"|find /v "You'r local IP" > IP.txt
for /f "eol=; tokens=15 " %%i in (IP.txt) DO IF NOT %%i=="" (route add < some net > mask < mask > %%i)
del IP.txt
Якщо в когось є більш красивіше рішення, Велком.
zyxel auto backup config
#!/bin/sh
(sleep 2 ; echo “LOGIN” ; sleep 2 ;echo “PASSWORD” ; sleep 2; echo “ENABLE_PASSWORD” ;echo “sh run” ; sleep 5; quit) | telnet 192.168.1.1
Trixbox, not working export statistics to cvs…
export trixbox statistics to cvs.
Ищем в файле cdr.php
(строка 828)
foreach($this->getrowsfromdbihatelongfunctionnames($this->input->post(‘startdate’), $this->input->post(‘enddate’), $this->input->post(‘source’), $this->input->post(‘srctype’), $this->input->post(‘destination’), $this->input->post(‘desttype’), $this->input->post(‘channel’), $this->input->post(‘duration’), $this->input->post(‘durationend’), $this->input->post(‘durstarttype’), $this->input->post(‘durendtype’), 0, 0, $this->input->post(‘datasort’), $this->input->post(‘datadir’)) as $row) {
Меняем 0 на 999999
foreach($this->getrowsfromdbihatelongfunctionnames($this->input->post(‘startdate’), $this->input->post(‘enddate’), $this->input->post(‘source’), $this->input->post(‘srctype’), $this->input->post(‘destination’), $this->input->post(‘desttype’), $this->input->post(‘channel’), $this->input->post(‘duration’), $this->input->post(‘durationend’), $this->input->post(‘durstarttype’), $this->input->post(‘durendtype’), 0, 999999, $this->input->post(‘datasort’), $this->input->post(‘datadir’)) as $row) {
Гімн Hyundai Club Полтава (Garri Trans Former)
Кобелячанин Ігор Богословський написав гімн для Всеукраїнського клубу «Hyundai» та виконав його разом з відомим полтавським рок-гуртом «Транс-Формер»
Коли чуєш новостворений гімн — заряджаєшся енергією та оптимізмом. Виявляється, ще є люди, які об’єднуються за інтересами, товаришують, виручають одне одного та просто насолоджуються життям.
Флаги, флаги, колонны, дороги.
И годы идут — нас уже много.
Подружил нас клуб и теперь зовет
По дорогам катать, жечь резину — вперед!
Припев:
Собирайся в путь, другу руку дай,
Нас в дорогу зовет клуб родной «Хюндай».
Время не жалей и тоску продай.
Нас в дорогу зовет клуб родной «Хюндай».
Нас свела судьба жить одной мечтою,
Рассветы встречать с путеводной звездою.
Предаваться солнцу, с ветром целоваться,
Слушать звон струны, жизнью наслаждаться!
Если, не дай Бог, вдруг случиться беда,
Ты не унывай, клуб поможет всегда,
Будем жить веселей, наливай — не жалей.
Отдохнем и вперед, к новой встрече скорей.
8 Березня.
Поздравить я тебя спешу в Международный Женский День!!!
Цвети и пахни словно роза шипы пусть защитят от разных бед,
пусть строной пройдёт угроза,
неси в сей мир лишь красоту, любовь и свет!!


