Wednesday, October 24, 2012

Delete a wireless profile in Windows 8

Sometimes you're in the need to manually delete a wireless network profile, for example when your settings have changed and you can no longer connect to the wireless network.

Apparently, Windows 8 has removed this functionality from the GUI.

You have the following options left:


  • NETSH command


C:\Users\levente.rog> netsh wlan delete profile name="Chihuahua"
Profile "Chihuahua" is deleted from interface "Wi-Fi".

As a side-note, it's worth exploring the other options of netsh wlan.


  • 3rd Party Tool
WiFi Profile Manager 8 is a nice little tool written by Lee Whittington. Nice GUI, lightweight and easy to use. Get the tool from here.



  • Registry

Find the profile under the following registry path and delete the key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles


  • Windows Explorer

Navigate to C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces to find and delete your profile (it's an xml file).



The hack explorer.exe shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87} no longer seems to work, at least with build 6.2.9200.

Monday, October 1, 2012

Graph icons not showing up in Centreon

Ubuntu Server 12.04 x64
Nagois 3.4.1
Centreon 2.3.9
Nagios-Plugins 1.4.16
NDOUtils-1.5.2

I followed this excellent guide to install Nagios + Centreon from the ground.

After completing all steps and adding some Windows hosts to Centreon, the graph icons did not show up although I configured graphing at the service properties (except for ping).



Checking the logs revealed that in fact my db username was incorrect (it was Centreon instead of ndouser).

tail -n 5 /usr/local/centreon/log/centstorage.log

2012-10-01 16:37:49 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2012-10-01 16:37:51 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2012-10-01 16:37:53 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2012-10-01 16:37:55 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2012-10-01 16:37:57 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


so I opened up ndo2db.cfg to correct the credentials then restarted Centreon.

sudo vim /usr/local/nagios/etc/ndo2db.cfg