Report this

What is the reason for this report?

How to install Nagios herald.

Posted on December 25, 2014

Is some one know How to install Nagios herald on ubuntu , i know how to install Nagios but not able to install Nagios herald. So please provide steps on how to install that… Here is link for Nagios herald https://github.com/etsy/nagios-herald . Thank you



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Nagios Herald can most simply be installed as a Ruby gem. Assuming you already have Ruby installed, just run:

gem install nagios-herald

When configuring Nagios, you’ll need to reference the full path to the nagios-herald command. This may differ based on how you’ve installed Ruby. You can find it by running:

which nagios-herald

In my case, that returns:

/usr/local/rvm/gems/ruby-2.2.1/bin/nagios-herald

So, my Nagios configuration looks like:

define command {
    command_name    notify-host-by-email
    command_line    /usr/local/rvm/gems/ruby-2.2.1/bin/nagios-herald --message-type email --formatter=$_HOSTMESSAGE_FORMATTER_NAME$ --nagios-cgi-url=http://nagios.example.com/nagios/cgi-bin/cmd.cgi --reply-to=nagios@example.com
}

To find more information on configuring nagios-herald see here.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.