Skip to content

Instantly share code, notes, and snippets.

@discreet
Created June 30, 2014 00:02
Show Gist options
  • Save discreet/0629367e3e0fba1d07de to your computer and use it in GitHub Desktop.
Save discreet/0629367e3e0fba1d07de to your computer and use it in GitHub Desktop.
Puppet Fact for Nagios Check_Disk
#Disks to check for Nagios alerting
Facter.add("Check_Disks") do
confine :osfamily => "RedHat"
setcode do
Check_Disks = Facter::Util::Resolution.exec("cat /etc/nagios/check_disk.cfg | cut -c 9-19")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment