Hello,
What you’d want to do is set up a startd cron job. The ClassAd output from this is pulled into the Machine ClassAd and this becomes queriable by condor_status.
I do something similar with a job that calls ipmitool to check the power and cooling status of the machine and set a PowerOrCoolingFault Boolean attribute, allowing it to reject jobs if a PSU or fan fault is flagged.
You can set the interval for startd cron jobs in the configuration. Bear in mind that the collector is only updated periodically so a higher frequency doesn’t gain you anything. I think it’s possible to push updates immediately from startd cron,
but you’d want to keep an eye on the collector load in that case if you have a lot of machines.
-Michael Pelletier.