Page 1 of 1

Reporting Java, Chrome + Chromedrivers versions - Core 4.3.4

Posted: Tue Nov 28, 2017 9:06 am
by neworderfac33
Good afternoon,

Just checking if anyone has any suggestions (or even three big fat "It's not possible"s) as to how I could report the versions of:
Chrome
Chromedrivers and
Java

installed on a remote host?

Thanks in advance

Pete

Re: Reporting Java, Chrome + Chromedrivers versions - Core 4

Posted: Tue Nov 28, 2017 9:27 am
by mcapra
Are we talking Windows or Linux?

Here's some plugins that check to see if a newer version of Java is available:
https://github.com/dtiersch/nagios-plugin-versioncheck

Though I can't vouch for their usefulness.

If all you want to do is capture the versions and not check them for anything, simple shell commands should be sufficient. Example for Java on Linux using openjdk:

Code: Select all

java -version 2>&1 | grep version
In action:

Code: Select all

[root@prometheus ~]# java -version 2>&1 | grep version
openjdk version "1.8.0_151"
[root@prometheus ~]# echo $?
0
That little line is your entire "plugin" to capture the Java version. Chuck it in a Bash script and run it via NRPE, or just chuck it into an NRPE command definition as-is. Note that this "plugin" always returns OK.

Re: Reporting Java, Chrome + Chromedrivers versions - Core 4

Posted: Tue Nov 28, 2017 9:32 am
by neworderfac33
Hi, @mcapra - thanks for your prompt response! :-)
All the hosts on question are Windows.

Cheers
Pete

Re: Reporting Java, Chrome + Chromedrivers versions - Core 4

Posted: Wed Nov 29, 2017 4:17 pm
by kyang
Did the version checks for windows from that github link work for you?

Did you get the answer you needed from mcapra already?

Or are there more questions?

Re: Reporting Java, Chrome + Chromedrivers versions - Core 4

Posted: Thu Nov 30, 2017 8:52 am
by neworderfac33
Good afternoon - thank you for following this up.
The plugin looked promising, but in the interests of speeding up my delivery to my customers, I've decided to give them a Powershell script that outputs Java and Chrome versions to an Excel worksheet.
This thread can be closed.
Pete

Re: Reporting Java, Chrome + Chromedrivers versions - Core 4

Posted: Thu Nov 30, 2017 10:06 am
by kyang
Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!