Basic Server Load Balancing Concept

1) User enters www.example.com in their browser. Hostname sent to DNS for resolution

2) DNS resolves www.example.com to the Virtual IP address (VIP) of 10.10.10.10.

3) Client sends request to VIP.

4) Array proxies request to selected real service.

5) Further requests from the client may be sent to the same or a different real service, depending on persistency configuration.

Continue reading

NagiosXI – How to reset nagiosadmin password

I have a NagiosXI server which i already 2 year never login. Recently one of the System Admin leaving the company and i have to take over back the NagiosXI server management. But i already forgot what is nagiosadmin password.

Lucky NagiosXI come with a lot of useful scripts which located at /usr/local/nagiosxi/scripts/

Here i going to show your guys how i reset the nagiosadmin password using NagiosXI script.

To do that, you have to ssh in to NagiosXI server and execute following command to reset nagiosadmin password

/usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php --password=newpassword

If you wish to use any special  characters in your password, you should escape them with “\”. For example, if you want to set your new password to be “p@ssw0rd#”, then you can run:

/usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php --password=p\@ssw0rd\#

After reset, you should able to login to your NagiosXI with your new password.

How to recover lost worksheet protection password in Excel with VBA code

I download excel template from internet. I noticed that excel sheet is password protected and i unable to do any modification. When i try google it, i found one very useful VBA code which will help to cancel or break the lost worksheet protection password.

1. Open your worksheet which has been protected before.

2. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

3. Click Insert > Module

4. Paste the following code in the Module Window.

Continue reading