Email: inbox [at] sysadmin.lk
LinkedIn: https://www.linkedin.com/in/prabatht
Facebook: https://www.facebook.com/prabath.hinoize
Related Articles
How to install, setup and configure an OpenVPN Service on CentOS 5
In this tutorial, we will learn how to install, setup and configure an OpenVPN Service on CentOS 5 as well as configuring the firewall to allow vpn traffic. Clients configuration will be done in the linked article, available at the bottom of this tutorial. Topology used in this scenario: 1 Ethernet card (eth0) connected to […]
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{ […]
Creating the SOAP server with NuSOAP
Creating the SOAP server Create a file called food.php and copy the and paste the below code into it. <?php require_once “lib/nusoap.php”; class food { public function getFood($type) { switch ($type) { case ‘starter’: return ‘Soup’; break; case ‘Main’: return ‘Curry’; break; case ‘Desert’: return ‘Ice Cream’; break; default: break; } } } $server = […]