Exception processing request in Nagios


I deployed a new server, after that installed NSClient++ 0.4.3 The process was simple, nothing new, install NSClient and copy nsclient.ini from other server where work that, and copy extra (not included in template) config in windows.cfg file from working server. I was little embrassed when see this message: Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option). NSClient_ErrorM_001 I tried version of 0.4.1 NSClient, but same symptomes.


In the nsclient.ini the part of this, can change “true” to “1”

#allow arguments = true (original part)
allow arguments = 1


Rename virtual disk filename

I tried rename a vmdk file, but i get information message, like this



You can solve this, when you are going to login to esxi by SSH, and follow this steps below.

1 – Remove disk from VM, but be carefull, you must only remove, don’t delete!!!


2 – Login to ESXi with Putty

3 – cd vmfs/volumes/

4 – ls -l

Rename vmdk

5 –  cd “DS-ARCHIVE” (case sensitive!!)

6 – ls -l

Rename vmware vmdk

7 – cd vm-FILE

8 – ls -lah


9 – vmkfstools -E OldFileName.vmdk NewFileName.vmdk

10 – Add new named virtual disk file to VM

Source and more details: http://www.blackforce.co.uk/2014/03/03/how-to-rename-a-vmdk-in-vmware-esxi

vSphere Data Protection 6 – Restore SQL data

I tried SQL backup and restore options in vSphere Data Protection 6, becouse this is a free backup solution from vmware, up from Essentials licence. I writed a post how can you install this application. You can see below.

Now i’m going to show you how be able to create a backup job, and how be able to restore your DB.

In my eximple, i created a db in my MS SQL server, and created one table.
After that i create a backup job, and made a backup from my db.
I deleted my table from SQL DB, and i restored that.

Backup part

Create a new backup job
Select Application option

You can choose Full and Selected DB. The diferent between two options are:
Full – This option is going to save your all DB on server
Selected DB – You will be able to select one or more specific DB on server

Select DataBase

If you didn’t see your db under server, please scroll down legal of this page!




Restore part








!!! When you don’t see your database under the server, you can fix it, when you add right to SYSTEM user.


NFS Datastore mount error in vSphere6 with Synolgy NAS

In my home lab I would have tried to measure what is different between iSCSI and NFS datastore. (I/O Analyzer)
I use esxi vSphere6 and Windows base vCenter 6. My storage is Synology ds414j (DSM 5.2-5565).

I have crated new NFS shared folder, but before i did this i had switched on NFS service on my NAS.
When i added new NFS Datatstore to ESXi host, i got error message, you can see below.



I loged into directly to ESXi host by vSphere Client and I added NFS Datastore, it worked fine.



Yes I know, this is just only a “workaround” solution, and it’s workin in lab environment.
I share my experience with you becose, I would like help to somebady who have same problem, and looking for any solution.

Set Up Apache Virtual Host on Ubuntu 14.04 LTS

We have to install apache2 for own server

# sudo apt-get update
# sudo apt-get install apache2

Create new folder for site

# sudo mkdir -p /var/www/example.com/public_html

If you would like change permission you do that

# sudo chown -R $USER:$USER /var/www/example.com/public_html

 Add read access www folder

# sudo chmod -R 755 /var/www

Create a page

# sudo nano /var/www/example.com/public_html/index.html

Insert this text into index.html file:

<title>Welcome to
<h1>Success! The
example.com virtual host is working!</h1>

You need create a Virtual Host file (in older version 000-default.conf was simple default file, but in the new version we have to use the new, and *.conf extension)

# sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf

Edit config file

# sudo nano /etc/apache2/sites-available/example.com.conf

In the simple config file we can see like this


Apache2 default config file

Add new lines to config file, and if you want, delete comments.
“ServerName” is usually your domain name like in IIS hostheader
“ServerAlies” this is a alternative name, this help matching for example www a record
“DocumentRoot” is a place where you going to store your website (in this example index.html)

<VirtualHost *:80>

ServerAdmin admin@example.com
ServerName example.com
ServerAlias http://www.example.com
DocumentRoot /var/www/example.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined


We have to enable site

# sudo a2ensite example.com.conf

Restart service

# sudo service apache2 restart

After restart you will see something like this

* Restarting web server apache2
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using Set the ‘ServerName’ directive globally to suppress this message

Don’t worry, this is OK.

I checked my site on server

Edit host file, add you server’s ip address into host file

# sudo nano /etc/hosts

YOURIP example.com

Check: ping example.com, and if you getting answer, your host file settings are ready

# w3m example.com (w3m is a command line browser, i checked my site by this tool)

press “q” to quit from w3m browser

HTTPs check in Nagios error Invalid option – SSL is not available

When you want check https site with “./check_http –ssl google.com” command in Nagios, you may get this error “Invalid option – SSL is not available”

You will able to solve this problem, when you follow this instructions below:

# sudo apt-get install libssl-dev

(navigate to the directory that you have your nagios plugins extracted, Eximple: /home/install-username/nagios-plugins-2.0.3/)

# sudo ./configure –with-openssl=/usr/bin/openssl
# sudo make
# sudo make install
# sudo service nagios restart

Check plugin: go nagios libex folder (maybe there: cd /usr/local/nagios/libexec$)

# sudo ./check_http –ssl google.com
# HTTP OK: HTTP/1.0 302 Found – 524 bytes in 0.132 second response time |time=0.132414s;;;0.000000 size=524B;;;0

Add new Read Only User to Nagios Core

!!! Don’t forget make Snapshot or Backup from Your system !!!

I have used Ubuntu 14.04 and Nagios Core 4.0.8, and this steps worked, I tried!

# sudo htpasswd /usr/local/nagios/etc/htpasswd.users newusername
# /etc/init.d/apache2 reload

edit nagios cgi.cfg file, which located maybe here

# sudo nano /usr/local/nagios/etc/cgi.cfg

you will found this part in the cgi.cfg, and add next to it with comma


You have to restart nagios

# sudo service nagios reload

after reload you can able to login into nagios web page by newuser, and you have read only rights.