Virtualmin mass disable-feature

DOMAINS=” domain1 domain2 domain3″

for i in ${DOMAINS}

do

virtualmin disable-feature –domain $i –webalizer

done

(more…)

Centos 7 install zabbix from source

#yum install -y libevent-devel golang gcc mysql-devel libxml2-devel net-snmp-devel curl-devel OpenIPMI-devel libssh2-devel iksemel-devel

#wget https://cdn.zabbix.com/zabbix/sources/stable/6.4/zabbix-6.4.8.tar.gz

#groupadd –system zabbix
#useradd –system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c “Zabbix Monitoring System” zabbix


#mkdir -m u=rwx,g=rwx,o= -p /usr/lib/zabbix
(more…)

Centos 8 Steam PHP upgrade

#dnf module list php
#dnf module reset php
#dnf module enable php:7.4
#dnf update

VM Centos6 Xen migrate to Proxmox.

VM Centos6 Xen migrate to Proxmox.

After start – Emty on console.
* Edit /boot/grub/grub.conf , delete
rd_NO_LUKS rd_NO_DM rhgb quiet

Shell Array of Arrays

#!/bin/sh
array="aaa bbb ccc"
array2="aaa1 bbb1 ccc1"
test="\$array \$array2"

for i in ${test}
do
        for j in `eval echo  "$i"`
        do
                echo $j (more…)

З Новим Роком та Різдвом Христовим!

 30r

Вітаєм з Різдвом, з Новим роком вітаєм!
Бажаєм вам щастя, здоровя бажаєм!
Хай серце радіє, душа хай співає,

А настрій святковий весь рік не зникає!

 

Від щирого серця, вітаю всіх відвідувачів з Різдвом Христовим.
Fallback or ‘alternate’ content goes here. This content will only be visible if the SWF fails to load. (more…)

Happy Sysadmin Day !

SnamTrap and Zabbix

Centos 6

  • edit /etc/snmp/snmptrapd.conf

disableAuthorization yes

traphandle default /usr/sbin/snmptt

snmpTrapdAddr udp:10.100.0.2:162

doNotLogTraps yes

  • /etc/snmp/snmptt.ini

snmptt_conf_files = <<END
/etc/snmp/snmptt.conf
END

  • Add MIB in /etc/snmp/snmptt.conf

EVENT linkDown .1.3.6.1.6.3.1.1.5.3 “Status Events” Normal
FORMAT ZBXTRAP $aA Link down on interface $1. Admin state: $2. Operational state: $4
EXEC /usr/lib/zabbix/externalscripts/zabbix_trapper.sh $aA $1 $4

EVENT linkUp .1.3.6.1.6.3.1.1.5.4 “Status Events” Normal
FORMAT ZBXTRAP $aA Link up on interface $1. Admin state: $2. Operational state: $4
EXEC /usr/lib/zabbix/externalscripts/zabbix_trapper.sh $aA $1 $4

(more…)

Zabbix Tellegram graph

1.Create new User and add to Guest group.

Example: User_for_API

2.Test

curl -s -i -X POST -H ‘Content-Type: application/json-rpc’ -d ‘{ “params”: { “user”: “User_for_API “, “password”: “” }, “jsonrpc”: “2.0”, “method”: “user.login”, “id”: 0 }’ ‘http://127.0.0.1/zabbix/api_jsonrpc.php’

(more…)

nginx selinux php-fpm error Permission denied

[crit] 24496#24496: *2747 connect() to 127.0.0.1:8000 failed (13: Permission denied) while connecting to upstream, client: , server: , request: “GET /test.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:8000”

[error] 24496#24496: *2731 open() index.html failed (13: Permission denied), client: , server: request: “GET /index.html HTTP/1.1”, host:

(more…)