NSCA - Nagios push service
The home page of NSCA is here
Compile from source.
current version
untar, configure and make all
nsca is the server
send_nsca is the client
nsca.cfg is the config file for both server and client
Install the server:
copy nsca from compile directory to /usr/bin/
install yum install xinetd
enable and start the xinetd service
in the syslog you should see: xinetd[...] Started working: 0 available services
add this to the /etc/services
nsca 5667/tcp # NSCA
add the xinetd configuration file:
/etc/xinetd.d/nsca-server
#
# description: NSCA server
#
service nsca
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = nagios
group = nagios
server = /usr/bin/nsca
server_args = -c /etc/nagios/nsca.cgf --inetd
log_on_failure += USERID
#only_from = <ipaddress1> <ipaddress2> ... <<<--- white listing !!!
}
chmod 600 /etc/xinetd.d/nsca-server
create the nsca configuration file:
log_facility=daemon
pid_file=/var/run/nsca.pid
server_port=5667
server_address=188.40.84.214
nsca_user=nagios
nsca_group=nagios
debug=1
command_file=/var/spool/nagios/cmd/nagios.cmd
alternate_dump_file=/var/spool/nagios/cmd/nsca.dump
aggregate_writes=0
append_to_file=0
max_packet_age=30
password=BLA BLA BLA
decryption_method=3
chown nagios:nagios /etc/nagios/nsca.cfg
restart the service
in the syslog you should see: xinetd[...] Started working: 1 available services
The NSCA server is ready to accept push notifications from the client.
Next configure a Nagios Server config and install the NSCA client.
No comments:
Post a Comment