Wednesday, 31 March 2010

Monarch on Ubuntu 9.10 Server

Found this nice page

http://www.question-defense.com/2008/10/24/monarch-configuration-tips-and-tricks-to-manage-nagios-configuration-files

1[root@server ~]# perl -MCPAN -e shell

cpan> install CGI::Session
cpan> install Class::Accessor
cpan> install XML::LibXML::Common
cpan> install XML::NamespaceSupport
cpan> install XML::SAX
cpan> install P/PH/PHISH/XML-LibXML-1.58.tar.gz
cpan> install CGI
cpan> install DBI
cpan> install DBD::mysql
cpan> install File::Copy
cpan> install CGI::Ajax
cpan> install Data::FormValidator
cpan> install JavaScript::DataFormValidator
cpan> install Carp
cpan> install IO::Socket
cpan> install Time::Local
cpan> install URI::Escape

Ubuntu - enable universe and multiverse repositories

o enable the Universe and Multiverse repositories, edit the /etc/apt/sources.list file and uncomment the appropriate lines:

# We want Multiverse and Universe repositories, please deb http://archive.ubuntu.com/ubuntu dapper universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse

Tuesday, 30 March 2010

RT installation

cpan Apache::Session (tried to fix perl errors)

Setting up NSClient++ on Windows 2003 Server

yAdd Server to Nagios configuration

1. Download NSClient++
2. Unzip into c:\nsclient++
3. From command prompt:

nsclient++ /install
nsclient++ -noboot SysTray
and monitor!

Friday, 26 March 2010

Resetting mysql root password in Ubuntu

sudo apt-get autoremove rt3.8-apache2 rt3.8-db-mysql


Set / change / reset the MySQL root password on Ubuntu Linux. Enter the following lines in your terminal.    

1. Stop the MySQL Server.        sudo /etc/init.d/mysql stop     

2. Start the mysqld configuration.       

sudo mysqld --skip-grant-tables &     

3. Login to MySQL as root.       
mysql -u root mysql     

4. Replace YOURNEWPASSWORD with your new password!       
UPDATE user SET Password=PASSWORD('fuck') WHERE User='root'; FLUSH PRIVILEGES; exit;  

Tuesday, 23 March 2010

Restoring a Database from .bak file using MS SQL Server Management Studio

Open MS SQL Server Man Studio
- Right click on database
- Select Tasks - Restore Database
- Select From "Device"
- Tick the Restore Box

- Your settings should include:



Monday, 22 March 2010

Export-Mailbox: a parameter cannot be found that matches parameter name 'PSTFolderPath'

Export-mailbox -Identity alias -PSTFolderPath \\unc\path\aliast.pst

-This should be run on a 32-bit client with the Exchange Management Tools installed.

Is SP1 installed?
http://www.microsoft.com/downloads/details.aspx?FamilyID=44c66ad6-f185-4a1d-a9ab-473c1188954c&displaylang=en

FIX: Installed SP1

Results