opserver / Opserver

Stack Exchange's Monitoring System
https://opserver.github.io/Opserver/
MIT License
4.5k stars 827 forks source link

With WMI no error when server is lost #324

Closed Sacha-K closed 5 years ago

Sacha-K commented 5 years ago

I'm using a very simple configuration with just WMI as a source for the dashboard.

When a server goes down there is no error or warning. If you put your mouse over the server name it says Last Updated: 2 hours ago or if you go in the server details page the As of 2 hours ago text in the top right is red, but that's all.

Am I missing something?

Sacha-K commented 5 years ago

This is because in WmiNode.PollNodeInfoAsync() and WmiNode.PollStats() the catch (COMException e) can't work as WmiQuery.Result throws an Exception with COMException as the inner exception.