We have a XP machine which runs scheduled tasks early in the morning and unfortunately has to be logged into the desktop of a certain user for that to work. Unfortunately, that user sometimes gets logged out—either from an administrator logging in (and forgetting to log back in the correct user), or from it being restarted to apply security updates, etc.
I'd like to have Nagios monitor the currently logged in user, to confirm its the right one. Nagios is running on Linux.
So far, I've looked for an SNMP variable with the current user; I've had no luck. I tried snmpbulkwalk -m all -v2c -c community machine
and grep'd it for the user name, and also did a before login & after login, and checked the diff, and found nothing useful.
I checked the net
command (from Samba), but I don't see anything there—though I admit its possible I missed something. The various session
options seem to only display the net
session (even when I use my domain admin account).