Tuesday 16 February 2010

Nagios - NRPE Install

Become root
sudo -s

mkdir ~/downloads
cd ~/downloads

wget nrpe from sourceforge
tar zxf nrpe...
cd nrpe...

./configure 

(when running into ssl header errors)
apt-get install libssl-dev
Then run the folloowing
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib

My NRPE General Options
NRPE Port:            5666
NRPE User:            nagios
NRPE Group:         nagios
Nagios user:            nagios
Nagios Group:        nagios

http://www.linuxquestions.org/questions/linux-security-4/nagiosnrpe-ssl-issues-214284/
http://beginlinux.com/blog/2009/01/enable-the-nagios-nrpe-server/
 http://people.virginia.edu/~rtg2t/samba/nrpe.install.html
make all

Nagios Error: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!

Fix:

chmod 777 /usr/local/nagios/var/rw/nagios.cmd

Tuesday 9 February 2010

Exchange - mailbox size

Get-MailboxStatistics | Sort-Object TotalItemSize –Descending | ft DisplayName,@{ expression={$_.TotalItemSize.Value.ToKB()}},ItemCount > c:\mailboxbla.csv



To display in KB =
TotalItemSize.Value.ToKB
To display in MB = TotalItemSize.Value.ToMB
To display in GB = TotalItemSize.Value.ToGB

 

Friday 5 February 2010

Exchange 2007 - certificate expiry

Open a shell

Get-ExchangeCertificate | List


Expiry date: NOTAFTER

Smart Device Monitor - How to

To install a printer using the freeware "Smart Device Monitor"

Create the port:

1. Open Printers
2. Right Click - Add Printer
3. Select Local Printer
4. Click on Create a port
5. Select Smart Device Monitor
6. From the screen select the right printer using IP Address and click OK

Select the port:

7. Go back to Local Printers and select the port you've just created.

Install the drivers

Tuesday 2 February 2010

FRX - login/setup

TechKnowledge Content

Steps to Set Up a User in FRx so the Network ID can be Used as the FRx Login
1. In the FRX.ini file on the workstation check the line SuppressNetName= and make sure it is set to TRUE. SuppressNetName=TRUE

2. Within FRx, go to Admin | Organization and click on the FRx Security tab. Mark the option to Use FRx Security and also mark the option Use Network ID. Close this window.

3. Go to Admin|- Users and click new. Create a User ID that is the same as the Network login that is used. You will not be able to enter a password at this point. Save and close.

4. Exit FRx.

5. Launch Back into FRx. You will receive the message Invalid FRx UserID. Click OK to this error message. The reason for the message is FRx is trying to use the Network login to enter FRx but a password for that user has not been set up yet.

6. Enter the login that was created in Step 3, but do not enter a password, then click OK. You will get prompted to change the password. Enter a password for this user, which should be the same password that is used for the Network login, if you do not want FRx to ask for a User login when entering FRx.

7. Then if using SQL, enter the Database login and password.

8. Now that the password is set for the User, exit FRx.

9. Change the FRX.INI line to SuppressNetName=FALSE.

10. Launch into FRx.

11. If everything was done correctly, you should be brought directly to the Database login without getting prompted for a User login.

*Note - If these steps are not followed correctly, when using a Network ID for FRx security tree security will not work properly. The FRx User must be assigned a password the first time logging in as that User. If the user does not have a password set up when trying to use FRx security, you will get an Invalid FRx UserID message when trying to enter the login and drilling into levels of the tree. If the SuppressNetName line in the FRX.ini is set to FALSE the first time logging in as that User you will not get prompted to change the password and then a password is not assigned to the User.