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
Reporting Java, Chrome + Chromedrivers versions - Core 4.3.4
-
neworderfac33
- Posts: 329
- Joined: Fri Jul 24, 2015 11:04 am
Re: Reporting Java, Chrome + Chromedrivers versions - Core 4
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:
In action:
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.
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 versionCode: Select all
[root@prometheus ~]# java -version 2>&1 | grep version
openjdk version "1.8.0_151"
[root@prometheus ~]# echo $?
0
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
neworderfac33
- Posts: 329
- Joined: Fri Jul 24, 2015 11:04 am
Re: Reporting Java, Chrome + Chromedrivers versions - Core 4
Hi, @mcapra - thanks for your prompt response! 
All the hosts on question are Windows.
Cheers
Pete
All the hosts on question are Windows.
Cheers
Pete
-
kyang
Re: Reporting Java, Chrome + Chromedrivers versions - Core 4
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?
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
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
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
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!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!