Email: inbox [at] sysadmin.lk
LinkedIn: https://www.linkedin.com/in/prabatht
Facebook: https://www.facebook.com/prabath.hinoize
Related Articles
secure your web site with SSL (letsencrypt) in Sinhala (සිංහල)
අද මම කියල දෙන්නේ apache වල virtual host එකක් හදල free SSL certificate එකක් දාන විදිය ssl දන්නා කලින් ඔයාල mod ssl install කරගන්න ඕන මේ විදියට. [root@test]# yum install mod_ssl අපි free SSL දාන්නේ letsencrypt වලින්. එකට අපි GIT install කරගෙන එකේ clone එකක් හදාගමු අපේ host එකේ [root@test]# yum install git [root@test]# sudo […]
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{ […]
Color text output on bash scripts
Users who have been using Linux for awhile often learn that creating a basic script is a good way to run multiple, often-repeated commands. Adding a little color to scripts can additionally provide nice feedback. This can be done in a fairly straight-forward way by using the tput command. A common way of doing this […]