nrpe: add startup plist
Closes Homebrew/homebrew#25148. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
838737eec2
commit
6ba9ae9e0e
1 changed files with 25 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue