Page 1 of 1

NCPA uptime checks

Posted: Thu May 02, 2019 10:24 am
by hbouma
I have some teams asking me what does NCPA use to pull in the current uptime of a Windows server? Is it querying the WMI, or pulling in some other method.

Any help with this question would be helpful.

Re: NCPA uptime checks

Posted: Thu May 02, 2019 11:58 am
by lmiltchev
NCPA is using psutil.boot_time() for "uptime".

https://psutil.readthedocs.io/en/latest/

Re: NCPA uptime checks

Posted: Thu May 02, 2019 12:07 pm
by hbouma
Thank you, that is all I needed.

Feel free to close this topic.

Re: NCPA uptime checks

Posted: Thu May 02, 2019 12:13 pm
by lmiltchev
I am glad I could help!