diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/nrpe.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/nrpe.rb b/Library/Formula/nrpe.rb index df1888099..b07f4eec8 100644 --- a/Library/Formula/nrpe.rb +++ b/Library/Formula/nrpe.rb @@ -28,6 +28,31 @@ class Nrpe < Formula (var+'run').mkpath end + def plist; <<-EOS.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>Label</key> + <string>org.nrpe.agent</string> + <key>ProgramArguments</key> + <array> + <string>#{HOMEBREW_PREFIX}/bin/nrpe</string> + <string>-c</string> + <string>#{etc}/nrpe.cfg</string> + <string>-d</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>ServiceDescription</key> + <string>Homebrew NRPE Agent</string> + <key>Debug</key> + <true/> + </dict> + </plist> + EOS + end + def caveats <<-EOS.undent The nagios plugin check_nrpe has been installed in: |
