Hello Thomas,
If I understand the question correctly, I may have a workable solution for you. There is a issue in SystemEDGE where the 'Keep sending notReady Traps' flag is not working when monitoring a NT service. You could monitor the executable used by the Service. The problem with BITS is that it (and many other services) uses svchost.exe. As a workaround to the known issue, we can use two entries like this:
1 - Monitor NT Service using this entry:
watch ntservice 'Background Intelligent Transfer Service' 11000 0x8002 30 'BITS Service' ''
The flags I've applied are:
Monitor NT-service
No Traps
This is just a dummy entry to extend the MIB. In turn, it gives us a pmonCurrState OID for index 11000. Because it's a dummy entry, we don't need it to do anything other that extend the MIB.
Here's a description of that OID:
pmonCurrState OBJECT-TYPE
SYNTAX INTEGER {
unknown(1),
ok(2),
warning(3),
minor(4),
major(5),
critical(6),
fatal(7),
up(11),
down(12)
}
Any value in the MIB for index 11000 other than 11 means the agent is down. We can now build a self/threshold monitor to watch the pmonCurrState OID value.
2 - Create self/threshold monitor:
monitor oid pmonCurrState.11000 11001 0x600310 30 absolute != '11' 'BITS Service Down' ''
The flags I've applied are:
Send Traps after X Events
Send clearTraps
Keep sending notReady Traps
X=6
Now, the self/threshold monitor is going to trap when the pmonCurrState.11000 OID is something other than 11. A trap will only be sent after the 6th event. I have the interval set to 30 seconds so the Service would be down for 3 Minutes before the first trap is sent. You should receive a NotReady trap every 30 seconds after that.
I hope this helps,
Kevin