Reporting Java, Chrome + Chromedrivers versions - Core 4.3.4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Reporting Java, Chrome + Chromedrivers versions - Core 4.3.4

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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.
Former Nagios employee
https://www.mcapra.com/
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

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

Post by neworderfac33 »

Hi, @mcapra - thanks for your prompt response! :-)
All the hosts on question are Windows.

Cheers
Pete
kyang

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

Post 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?
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

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

Post 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
kyang

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

Post 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!
Locked