Skip to content

jeffdesc/nri-nagios

 
 

Repository files navigation

New Relic Infrastructure Integration for Nagios

Reports the output of service checks

See our documentation web site for more details.

Requirements

All desired service checks must be pre-installed and be executable by the root user.

Installation

  • Download an archive file for the Nagios Integration
  • Extract nagios-definition.yml and the bin directory into /var/db/newrelic-infra/newrelic-integrations
  • Add execute permissions for the binary file nri-nagios (if required)
  • Extract nagios-config.yml.sample and service_check_config.yml.sample into /etc/newrelic-infra/integrations.d

Usage

To run the Nagios integration, you must have the agent installed (see agent installation).

To use the Nagios integration, first rename nagios-config.yml.sample to nagios-config.yml, then configure the integration by editing the fields in the file.

You can view your data in Insights by creating your own NRQL queries. To do so, use the NagiosServiceCheckSample event type.

Compatibility

  • Supported OS: No restrictions

Integration Development usage

Assuming you have the source code, you can build and run the Nagios integration locally

  • Go to the directory of the Nagios Integration and build it
$ make
  • The command above will execute tests for the Nagios integration and build an executable file called nri-nagios in the bin directory
$ ./bin/nri-nagios --help

For managing external dependencies, the govendor tool is used. It is required to lock all external dependencies to a specific version (if possible) in the vendor directory.

About

New Relic Infrastructure Nagios Integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 53.2%
  • Makefile 24.4%
  • PowerShell 20.1%
  • Dockerfile 2.1%
  • Shell 0.2%