Email: inbox [at] sysadmin.lk
LinkedIn: https://www.linkedin.com/in/prabatht
Facebook: https://www.facebook.com/prabath.hinoize
Related Articles
Deploy a Docker registry server with Authentication
Before you can deploy a registry, you need to install Docker on the host. A registry is an instance of the registry image, and runs within Docker. Install docker service with bellow commands. dnf config-manager –add-repo=https://download.docker.com/linux/centos/docker-ce.repo dnf install -y docker-ce –nobest systemctl enable –now docker dockerstatus=`systemctl status docker | grep “active (running)”` echo “Docker Service […]
Install LAMP on Redhat / Centos 6
LAMP කියන්නේ open-source software කිහිපයක එකතුවක්. ඒ කියන්නේ Linux, Apache HTTP Server, MySQL database, and PHP/Perl/Python). මේ tutorial එකේදි මම ඔයාලට කියලා දෙන්නේ කොහොමද RHEL/CentOS 6.X වල LAMP install කරන්නේ කියලා. මේකෙදි මගේ server එකේ hostname එක test.ideus.lk. server IP එක වෙන්නේ 192.168.1.101/24. මුලින්ම කරන්න පොඩි දෙයක් තියෙනවා.EPEL Repository එක අපේ server එකට configure කරගන්න ඕන. Repository ගැන මම […]
Send SNMP Traps from Nagios to Remote Management Host
1. Add ‘send snmp trap’ command to nagios vim /usr/local/nagios/etc/objects/commands.cfg define command{ command_name send_snmptrap command_line /usr/bin/snmptrap -v 2c -c public 10.50.24.34 ” NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s “$HOSTNAME$” nSvcDesc s “$SERVICEDESC$” nSvcStateID i $SERVICESTATEID$ nSvcOutput s “$SERVICEOUTPUT$” } 2. Add this event and enable the event to services which needed to send traps vim /usr/local/nagios/etc/objects/localhost.cfg define service{ […]