| Languages: |
English • Deutsch |
Nagios Service Check Acceptor
| ||||||||||||||||||||||||||||||||||||
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 |
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;