Tag Archives: Hounddog

Microsoft Exchange 2007 and 2010 – Messages Queued For Delivery Powershell Script

I’ve been getting into Powershell in a big way the past few months and have put together a script to display the number of queued messages on a Microsoft Exchange 2007 or Microsoft Exchange 2010 Server.  Under normal conditions your mail queue should really be empty most of the time so lots of queued messages is indicative of a problem.

 

$GETMQFD = Get-Counter ‘\MSExchangeTransport Queues(*)\Messages Queued For Delivery’

$MQFD = $GETMQFD.CounterSamples |Select-Object CookedValue

If ($MQFD.CookedValue | Where {$_ -eq 0})

{

Write-Host $MQFD.CookedValue Messages Queued for Delivery

}

Else

{

Write-Host “No Messages Queued For Delivery”

}

 

If you are using a Server Monitoring package such as GFI Max Remote Management then you can insert Exit Codes (i.e. Exit 1 or Exit 0).  This is placed after the output (i.e. Write-Host “No Messages Queued For Delivery”) to generate an onscreen error or success if one of the two conditions is met.

HP ProLiant ML Tower and DL RackMount Server – SNMP RAID and Health Checks

My second post is going to be about SNMP checks that apply to the HP ProLaint ML Tower or DL Rack Server, you need to install/configure the Windows SNMP Service, HP Insight Management Agents and the HP ProLiant Array Configuration Utility before these OIDs will work.

Drive Array Health Status = 1.3.6.1.4.1.232.3.1.3.0
1 = other, 2= ok, 3 = degraded, 4 = failed

CPU Fans = .1.3.6.1.4.1.232.6.2.6.5.0 (Usually only appliacble to ML350 G5 as the ML350 G6 Variant does not have CPU Fans)
1 = other, 2= ok, 3 = degraded, 4 = failed

ECC Memory Errors Reported = .1.3.6.1.4.1.232.6.2.3.3.0
0 = No Errors, 1 = 1 Error, etc

Power Supply Status = .1.3.6.1.4.1.232.6.2.9.1.0
1 = other, 2= ok, 3 = degraded, 4 = failed

System Fans = .1.3.6.1.4.1.232.6.2.6.4.0
1 = other, 2= ok, 3 = degraded, 4 = failed

System Temperature = .1.3.6.1.4.1.232.6.2.6.1.0
1 = other, 2= ok, 3 = degraded, 4 = failed

HP ML110 G5 – SNMP RAID Checks

My first post is going to be about SNMP for the HP ML110 G5 Server, you need to install/configure the Windows SNMP Service and the HP Storage Manager before these OIDs will work.

ML110 G5 – Controller Status = 1.3.6.1.4.1.795.14.1.201.1.1.15.1

Status Codes: 1 = other, 2 = unknown, 3 = ok, 4 = non-critical, 5 = critical, 6 = nonrecoverable

ML110 G5 – Logical Drive Status (Array 1) = 1.3.6.1.4.1.795.14.1.400.1.1.11.1

Status Codes: 1 = other, 2 = unknown, 3 = ok, 4 = non-critical, 5 = critical, 6 = nonrecoverable

ML110 G5 – Logical Drive Status (Array 2) = 1.3.6.1.4.1.795.14.1.400.1.1.11.2

Status Codes: 1 = other, 2 = unknown, 3 = ok, 4 = non-critical, 5 = critical, 6 = nonrecoverable

ML110 G5 – Array Type (Array 1) = 1.3.6.1.4.1.795.14.1.1000.1.1.4.1

Status Codes: 1 = unknown, 2 = other, 3 = raid 0, 4 = raid 1, 10 = raid 10

ML110 G5 – Array Type (Array 2) = 1.3.6.1.4.1.795.14.1.1000.1.1.4.2

Status Codes: 1 = unknown, 2 = other, 3 = raid 0, 4 = raid 1, 10 = raid 10

Hope you find my first post helpful.