Skip to content

Instantly share code, notes, and snippets.

@discreet
Created May 15, 2014 12:28
Show Gist options
  • Save discreet/8bf35706758833141ae9 to your computer and use it in GitHub Desktop.
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 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