Senin, 18 Juli 2022

Mengaktifkan SNMP Client di Ubuntu Server


         Setelah install cacti yang sudah sangat lama itu haha, akhirnya gw coba oprek ulang cacti nya. Alhamdulillah sudah mulai dapat apa yang gw inginkan. Kali ini dimulai, gimana caranya salah satu server di kantor ingin gw graph datanya di cacti.

Langkah pertama,

  • goog_2123956466Install SNMP nya, sudo apt install snmpd snmp snmp-mibs-downloader
  • lalu edit file yang berada di :
            /etc/snmp/snmp.conf & /etc/snmp/snmpd.conf
            Beri tanda pagar (#) dibagian "mibs :"
            


            Beri tanda pagar (#) pada "agentaddress 127.0.0.1,[::1]
            
  • restart service snmp nya, sudo service snmpd restart
  • untuk memastikan apakah snmp sudah berjalan, test di server nms cacti dengan perintah
            snmpwalk -v 2c -c public ip_server system
  • harusnya akan muncul seperti ini            


Kamis, 15 April 2021

Error Instalasi Cacti with Mysql Server 8


Yang harus di Install :

- apt install rrdtool -y

- apt install snmpd snmp snmp-mibs-downloader libsnmp-dev

- php dan apache2 mysql-server


buat database :

create database rrdtooldb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
flush privileges;
quit


edit file : sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

tambahkan :

default-time-zone = "Asia/Jakarta"

collation-server      = utf8mb4_unicode_ci

max_heap_table_size=128M

tmp_table_size=128M

join_buffer_size=256M

innodb_buffer_pool_size=2048M

innodb_flush_log_at_timeout=3

innodb_read_io_threads=32

innodb_write_io_threads=16

innodb_buffer_pool_instances=17

innodb_io_capacity=5000

innodb_io_capacity_max=10000

sisanya ikuti disini :

https://kifarunix.com/easily-install-and-setup-cacti-on-ubuntu-20-04/




Kamis, 08 April 2021

ERROR create.sql.gz: No such file or directory.


 Solusi pada saat installasi ZABBIX ketika membuat file databased

d

dimana beberapa tutorial menyarankan perintah seperti ini :

$ cd /usr/share/doc/zabbix-server-mysql
$ zcat create.sql.gz | mysql -u zabbix_user -p zabbix_db

dan ternyata perintah tersebut salah.
Yang benar adalah :

d

$ cd /usr/share/zabbix-server-mysql
zcat schema.sql.gz | mysql -u zabbix_user -p zabbix_db


Membuat Super User didatabase

mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'root';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

Membuat  User didatabase

mysql> CREATE USER 'nama-user'@'localhost' IDENTIFIED BY 'password-user';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'nama-user'@'%' WITH GRANT OPTION;

d

dd




Rabu, 02 Desember 2020

Cara Install Nextcloud Server di Ubuntu 16.04


 



Hari ini gw lagi coba install nextcloud server di PC Ubuntu 16.04 punya gw. So, langsung saja kita mulai.

Install dependenci yang di perlukan 
sudo apt install apache2 mariadb-server -y

sudo apt install libapache2-mod-php php7.2 php7.2-xml php7.2-curl php7.2-gd php7.2 php7.2-cgi php7.2-cli php7.2-zip php7.2-mysql php7.2-mbstring wget unzip -y

enable service apache dan mariadb
systemctl start apache2
systemctl enable apache2
systemctl start mariadb
systemctl enable mariadb

Download Nextcloud
wget -c https://download.nextcloud.com/server/releases/nextcloud-20.0.2.zip

Extract file yang sudah di download
sudo unzip nextcloud-20.0.2.zip -d /var/www/html/
sudo chown -R www-data:www-data /var/www/html/nextcloud

Konfig file php, agar dapat upload file dalam size yang besar
sudo nano /etc/php/7.2/apache2/php.ini

Sesuaikan isi file seperti bawah ini
memory_limit = 512M
upload_max_filesize = 200M
max_execution_time = 360
post_max_size = 200M

Bikin database khusus nextcloud
sudo mysql -u root -p

CREATE DATABASE nextcloud;
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'rahasia';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost';
FLUSH PRIVILEGES;

Membuat Firtual host
nano /etc/apache2/sites-available/nextcloud.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot "/var/www/nextcloud"
ServerName example.com
<Directory "/var/www/nextcloud/">
Options MultiViews FollowSymlinks
AllowOverride All Order allow,deny Allow from all </Directory> TransferLog /var/log/apache2/nextcloud_access.log ErrorLog /var/log/apache2/nextcloud_error.log </VirtualHost>


Sudah kelar. Waktunya akses nextcloud yang sudah di konfigurasi, karena dilokal bisa di buka di http://ip-address-pc/nextcloud atau dns yang dibuat tadi.

Buat user dan password untuk admin

Scroll di bawahnya, dan isikan informasi database yang dibuat sebelumnya


 dan Finish.