MonitoringExchange
NagiosForge
NagiosWiki
Nagios Community Platform powered by NETWAYS

Addon:NSCA

Search  
From MonEx Wiki
Jump to: navigation, search

NSCA


Nagios Service Check Acceptor

Addon:NSCA
Cover
Description: NSCA allows you to send passive service check results
Author: Ethan Galstad
Developer:
Released: 07/03/2007
Latest release version: 2.7.2
OS: Unix/Linux
Genre: {{{Genre}}}
Licence: GPL2
Licence: {{{licence}}}
Website: Nagios.org


The NSCA addon (Nagios Service Check Acceptor) allows you to send passive service check results from remote hosts to a central monitoring host that runs Nagios. The client can be used as a standalone program or can be integrated with remote Nagios servers that run an ocsp command to setup a distributed monitoring environment.


Contents


How it works

The NSCA server listens on a configured port for packets from across the network. It takes any nagios results it sees and passes them to the command pipe of the local nagios server.

The client calls the send_nsca program, and passes it the check result. e.g.

echo -e "${NAGIOS_HOSTNAME}\t${NAGIOS_SERVICEDESC}\t${NAGIOS_SERVICESTATEID}\t${NAGIOS_SERVICEOUTPUT}\n" | \
send_nsca ${NAGIOSSERVER} -c /etc/send_nsca.cfg

where $NAGIOS_SERVICESTATEID can be the usual value;

  • 0 OK
  • 1 WARNING
  • 2 CRITICAL
  • 3 UNKNOWN


Features

  • Simple: The NSCA protocol is simple to use.
  • Standardized: There are hardware devices on the market that can speak it.

Disadvantages

  • Timestamp Problem: The timestamp passed to nagios is the time that the check was RECEIVED by the NSCA Server, not the time that it was actually made. This can cause major problems with distributed setups when there is a network outage
  • Inefficient: The NSCA doesn't make use of the new (nagios3) feature to allow bulk checks.


See also


External Links