More efficient way of doing thing

More efficient way of doing thing

Hi,
i am thinking of a more efficient way of doing this. Maybe you can lend me a hand in this. I have this scenario.
When i try to disconnect my notebook from my network. I noticed my SNMP-Variable becomes unavailable and i get a small red dot on the top right hand corner of the Numerical Box.

Is there anyway to see the SNMP-Variable which has already lost connection with its remote device?
What i currently did was :
1) check the pingstate of this SNMP address ( 1 x pingstate)
2) check SNMP-Variable for this device (1 x SNMP-Variable)
3) another local maths variable to "sum" up the status the 2 variables in 1) and 2)
4) Check the maths variable to determine whether it is the lost of connection OR real state of the SNMP-Variable.
Is there a more efficient way? like there is actually status bit in the SNMP-Variable where i can check its connection with its connection device.
Warmest Regards
Whitetaru

This is a migrated post! Originally posted on 14.07.2011 by user whitetaru. Please be aware that information can be outdated.