Posts

Showing posts with the label Monitoring

How to create a Ping monitoring tool with Microsoft Excel

Image
Ref: https://www.youtube.com/watch?v=JxueKaNJ89s

Smokeping: Password Protecting

In this post, we will be looking at how to password protect Smokeping. As you may know, Smokeping pages are usually not password protected and can be viewed by anyone by defauly. Limit the view to a limited number of users, either of the following ways are possible- Using the web server configuration file to set passwords Using htaccess to set passwords According to Apache, using .htaccess should be avoided whenever possible, as .htaccess may hamper the web server performance ( Source ). Apache recommends using the web server configuration files for setting up passwords. Here's how it's done. (I am using an Ubuntu Server) Phase 1:  Creating the password file. mkdir /etc/apache2/passwd htpasswd -c /etc/apache2/passwd/passwords username The  -c  is used to create a new user. This parameter can be omitted to change the password of an existing user. Phase 2:  Modifying Smokeping Directives vim /etc/apache2/conf.d/smokeping ### Modify th...

Smokeping Installation in UBUNTU 16.04.4 LTS

Installation Environment  Virtual Machine (VM Virtualbox / VMWARE) HDD - 20 GB RAM - 4 GB Network Mode - Bridge UBUNTU - 16.04.4 LTS IP address - Static / Dynamic Hostname - www.example.com Smokeping Installation Steps: Install a fresh Ubuntu OS (16.04.4) in the VM. Set hostname as per convenience. (I used www.example.com) Update and upgrade existing packages. Install packages and dependencies for smokeping packages  as shown below: root@www:/home/bolcorp# apt install smokeping -y We need to modify some configuration as shown below: root@www:/home/bolcorp# vim /etc/smokeping/config.d/pathnames #sendmail = /usr/sbin/sendmail imgcache = /var/cache/smokeping/images imgurl   = ../smokeping/images datadir  = /var/lib/smokeping piddir  = /var/run/smokeping smokemail = /etc/smokeping/smokemail tmail = /etc/smokeping/tmail root@www:/home/bolcorp# vim /etc/smokeping/config.d/General *** General *** owner = Sharif contact...

Zabbix Server in Ubuntu 16.04

Installation Environment Virtual Machine (VM Virtualbox / VMWARE) HDD - 30 GB RAM - 4 GB Network Mode - Bridge UBUNTU - 16.04.4 IP address - Static / Dynamic Hostname - www.example.com Observium Installation Steps: Install a fresh Ubuntu OS (16.04.4) in the VM. Set hostname as per convenience. (I used www.example.com) Update and upgrade existing packages. Install packages and dependencies for Zabbix as shown below: root@www:/home/bolcorp# apt-get install apache2 root@www:/home/bolcorp# apt-get install mysql-server root@www:/home/bolcorp# apt-get install php php7.0-cli php7.0-common php7.0-mysql php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php *** During the installation of mysql server, we will be prompted by mysql server for a root password. We will set it accordingly and later we will use that password to access the mysql server. Restart apache2 service root@www:/home/bolcorp# service apache2 restart Download Zabbix file and install it as fol...