Forum Discussion

MaddyM's avatar
2 years ago

Monitor version of Java

Is there a way to monitor the version of Java currently installed on a server? There is a group of Windows servers that host software that requires a certain version of Java to be installed. Java getting updated has caused issues, I was curious if there was a way for LogicMonitor to see what version is installed and to notify if that changes. 

  • The Powershell command you need is:

    (Get-Command java | Select-Object -ExpandProperty Version).toString()

    If you set that up in a PropertySource, then you could write a datasource against that property with a datapoint that checks the version string against your required value.

13 Replies