I’m writing some Powershell scripts so we can monitor our SQLServer instances through Nagios, I need to get the DTC Active Transaction count in PS so I can output it to Nagios. Is this possible? If so how do I do it?
I’m very much a Windows/Powershell n00b so sorry if this is a basic question. Most of the params I need seem to be avaliable with ‘Get-Counter’ but this one doesn’t seem to be
You could query the performance counters directly from Nagios using
check_nrpeinstead:This assumes that
$USER1$points to your Nagioslibexecfolder.You’d need to set
MaxWarnandMaxCritto thresholds that meet your own alerting requirements.