03 Sep

my very first Google Chrome extension

Just released the first public version of my Icinga Chrome Extension (ICE).
In the beginning I developed it for my own needs. Now it can work with any icinga & chrome installation.


You can test it with official icinga demo page: https://www.icinga.com/demo/authentication/login
user: demo
pass: demo

Feel free to test it and report bugs #icinga #nagios

29 Dec

Bubble sorting with Perl

27 Dec

Listing windows services statuses with Powershell

03 Aug

Listing IIS Application Pool Memory usage in PowerShell

Open Powershell as an Administrator on the web server, then run:

You should see something like:

If you get Get-WmiObject : Could not get objects from namespace root/WebAdministration. Invalid namespace then you need to enable the IIS Management Scripts and Tools feature using:

13 Jul

CredSSP authentication problem in Powershell Remote Queries

If you receive the following error while running remote .exe files from in powershell.

UNKNOWN: WEB SERVICE STATUS [vmserver01] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. CredSSP authentication is currently disabled in the client configuration. Change the client configuration and try the request again. CredSSP authentication must also be enabled in the server configuration. Also, Group Policy must be edited to allow credential delegation to the target computer. Use gpedit.msc and look at the following policy: Computer Configuration -> Administrative Templates -> System -> Credentials Delegation -> Allow Delegating Fresh Credentials.  Verify that it is enabled and configured with an SPN appropriate for the target computer. For example, for a target computer name “myserver.domain.com”, the SPN can be one of the following: WSMAN/myserver.domain.com or WSMAN/*.domain.com For more information, see the about_Remote_Troubleshooting Help topic.


Use below cmdlet enable CredSSP on the server by specifying Server in Role

Enable-WSManCredSSP -Role “Server”



for more info: https://technet.microsoft.com/en-us/library/hh849872.aspx

07 Jan

How to troubleshoot memory issues when executing remote Powershell queries

If you are receiving “Processing data for a remote command failed with the following error message: The WSMan provider” message from the PS Queries (e.g. on the Nagios)

All you have to do is log on the target computer, and run powershell with Administrator Rights. Then you can increase Powershell memory with below commands

You can get current memory size with get-item:


And here is the command for change the value:


winrm set winrm/config/winrs @{MaxMemoryPerShellMB=”512″}




In some cases, you need to restart the WinRM service on target system:

14 Dec

How to resize linux logical volume (lvm) in a virtualbox vm

I was installed Fedora VM in to 8 GB Virtual Disk (vdi) but now I need to resize disk to 16 GB

VBoxManage modifyhd “D:\VirtualBox VMs\Fedora\Fedora.vdi” –resize 16384


Now the linux part.

You’d have to unmount it to shrink it (which requires a LiveCD / Rescue Mode.)

  1. pvresize /dev/sda2 (assuming your LVM partition is sda2. Replace as required.)
  2. lvextend /dev/mapper/root -l+100%FREE  (or, whatever your root logical volume is called.)
  3. resize2fs /dev/mapper/root (assuming ext2/3/4)