Monitor Windows Service from Nagios

install nsclient with nrpe
allow port tcp 5666 on firewall

Put check_winservice.exe in Program Files\NSClient++\scripts

Edit nsclient.ini as admin:
[/settings/external scripts/scripts]
check_adss=check_winservice.exe –service ADSelfServicePlus –warning 200 –critical 600

restart nsclient

test from nagios

su – nagios
cd /usr/local/nagios/libexec
./check_nrpe -H -c check_adss
SERVICE OK – 1 service(s).|’services’=1;200;600


NTP sync CentOS 7

install ntpd

yum install ntpdate ntp
systemctl start ntpd
systemctl enable ntpd
timedatectl set-ntp true

force resync ntp

service ntpd stop
ntpd -gq
timedatectl status

service ntpd start

sync status

ntpq -p


Periksa saiz blok HDD 3par

Cari lokasi HDD yang rosak

showpd -s -failed -degraded

Dari info CagePos 0:8:1 = cage 0, magazine 8

Periksa size blok hdd tadi:

showpd -fmt -p -cg 0 -mg 8


Menu Firefox LXDE

cat /home/user/.local/share/applications/firefox.desktop

[Desktop Entry]
Comment[en_US]=Firefox web browser

linux pemasangan perisian

JRE 1.6 pada Debian 9 32-bit

Download JRE 1.6 dari

Pasang JRE 1.6

mkdir /usr/lib/jvm
cp /home/user/jre-6u45-linux-i586.bin .
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1

Download firefox 45.9.0esr dari dan ekstrak ke home folder user

Link plugin jre ke folder plugin firefox
mkdir .mozilla/plugins
ln -s /usr/lib/jvm/jre1.6.0_45/lib/i386/ /home/user/.mozilla/plugins/


Cara Pasang Moodle 3.6 Pada Debian 9

Pasang pakej-pakej yang diperlukan

apt install php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline apache2 apache2-utils mysql-server php7.0-curl php7.0-gd php7.0-intl php7.0-zip php7.0-xml

Sediakan database

Dalam tag [server] /etc/mysql/mariadb.conf.d/50-server.cnf, tambahkan

innodb_large_prefix = ON

Simpan dan restart mariadb

systemctl restart mariadb

mysql -u root -p
create database moodle;
update mysql.user set plugin = 'mysql_native_password' where User='root';
SET GLOBAL innodb_file_format = barracuda;

Pasang moodle

cd /var/www
tar -xvf /home/user1/moodle-latest-36.tgz
chown www-data /var/www/moodle
chown -R root /var/www/moodle
chmod -R 0755 /var/www/moodle
chown www-data /var/www/moodle
cd moodle/admin/cli/
sudo -u www-data /usr/bin/php install.php

Contoh setting apache2

# cat /etc/apache2/sites-available/000-default.conf

# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.

ServerAdmin webmaster@localhost
DocumentRoot /var/www/moodle
Alias /moodle /var/www/moodle

order allow,deny
allow from all

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


GPG error owncloud

Pernah dapat error ni?

All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: Release: The following signatures were invalid: EXPKEYSIG 47AE7F72479BC94B ownCloud build service
W: Failed to fetch The following signatures were invalid: EXPKEYSIG 47AE7F72479BC94B ownCloud build service
W: Some index files failed to download. They have been ignored, or old ones used instead.

Senang je

wget -nv -O Release.key
2019-03-20 00:40:43 URL: [4485/4485] -> "Release.key" [1]

apt-key add - < Release.key OK


Senaraikan member CoS Zimbra

Dapatkan ID CoS

zmprov gac -v | grep -e cn: -e zimbraId

Senaraikan account dengan CoS tersebut

zmprov sa zimbraCOSId=e00428a1-0c00-11d9-836a-000d93afea2a


cPanel vs zPanel/Sentora


cPanel: minimum 15 USD sebulan
Sentora: tiada bayaran bulanan

Sokongan sistem pengoperasian

cPanel: CentOS, CloudLinux, or RHEL 6 & 7, Amazon Linux (semua versi)
Sentora: CentOS 6 & 7, Ubuntu 12.04 & 14.04, Debian 7 & 8

Pilihan sokongan teknikal

Kedua-duanya memberikan sokongan melalui forum tetapi cPanel turut memberikan sokongan melalui email melalui sistem tiket kepada yang melanggan lesen cPanel.


Web Hosting Control Panel

Apakah web hosting control panel?

web hosting control panel adalah aplikasi yang membantu penyedia servis web dan pelanggan servis mereka menjalankan kerja-kerja berkaitan laman web dengan lebih mudah

Siapa yang memerlukan web hosting control panel?

System admin syarikat web hosting dan pelanggan syarikat tersebut.

Bagaimana memasang web hosting control panel?

Secara minimum, anda mestilah mempunyai public IP, server untuk hos servis web dan panel web hosting. Kemudian, bergantung kepada fitur panel tersebut, proses pemasangan dari semudah menjalankan baris arahan hinggalah ke agak kompleks.

Berapakah kos web hosting control panel?

Kos adalah bergantung kepada pengeluar perisian berkenaan. Ada yang mengecas 10 USD sebulan dan ada yang boleh didapatkan tanpa kos.