NCPA uptime checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

NCPA uptime checks

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA uptime checks

Post by lmiltchev »

NCPA is using psutil.boot_time() for "uptime".

https://psutil.readthedocs.io/en/latest/
Be sure to check out our Knowledgebase for helpful articles and solutions!
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: NCPA uptime checks

Post by hbouma »

Thank you, that is all I needed.

Feel free to close this topic.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA uptime checks

Post by lmiltchev »

I am glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked