

Centos 6
disableAuthorization yes
traphandle default /usr/sbin/snmptt
snmpTrapdAddr udp:10.100.0.2:162
doNotLogTraps yes
snmptt_conf_files = <<END
/etc/snmp/snmptt.conf
END
(more…)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 $4EVENT 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
1.Create new User and add to Guest group.
Example: User_for_API
2.Test
(more…)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’
ip link add link enp9s4f0 name enp9s4f0.100 type vlan id 100
ip link set dev enp9s4f0.100 up
ip addr add 192.168.0.2/24 dev enp9s4f0.100
ip route add default via 192.168.0.1ip a
##Display Statistics of Users Connect Time
# ac
##Display Statistics of Users Day-wise
# ac -d
##Display Time Totals for each User
# ac -p
##Display Individual User Time
# ac tecmint
##Display Day-Wise Logn Time of User
# ac -d tecmint
FreeBSD upgrade from 7.4->8.1 or 8.1->8.2
Freebds freeze on boot.
Boot on single user mode and ADD to /boot/device.hints
hint.usb.0.disabled=”1″
hint.ohci.0.disabled=”1″
hint.ata.0.disabled=”1″
hint.ata.1.disabled=”1″
APIchanges: FFserver, which has been removed from FFmpeg 🙁
Log:
multimedia/ffmpeg: update to 4.0
– FFSERVER support was removed upstream
– libressl now uses libtls backend instead of patching openssl one
(more…)
pg_dumpall > db.out
psql -f db.out postgres
cd /opt
git clone https://github.com/Real-Gecko/virtualmin-nginx-fpm.git
tar -zcf virtualmin-nginx-fpm.tar.gz virtualmin-nginx-fpm
Webmin menu >> Mebmin module >> Install Module >> From local file >> enter /opt/virtualmin-nginx-fpm.tar.gz >> click ‘Install Module’.