Created
May 15, 2014 12:28
-
-
Save discreet/8bf35706758833141ae9 to your computer and use it in GitHub Desktop.
This will pull the NRPE version from RHEL/CentOS Servers. You may need to replace "nrpe" with "nagios-nrpe" depending on your install.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This will pull the package version of the NRPE client | |
Facter.add("NRPE_Version") do | |
confine :osfamily => "RedHat" | |
setcode do | |
NRPE_Version = `/bin/rpm -q --queryformat "%{VERSION}" nrpe` | |
NRPE_Version | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment