I'm trying to set up a Distributed system and having huge problems with getting the checks through.
On the master server - I'm running the nsca daemon through inet and its starting the daemon correctly as I can se using netstat .
From the secondary machine I can telnet to the NSCA daemon and can also manually send the package succesfully like this:
/usr/local/nagios/libexec/eventhandlers/submit_check_result atlantis simap UP OK
1 data packet(s) sent to host successfully.
and telnet looks like this:
# telnet nagios.insatech.com 5667
Connected to nagios.insatech.com.
Escape character is '^]'.
Incorrect command line arguments supplied
NSCA - Nagios Service Check Acceptor
Copyright (c) 2000-2007 Ethan Galstad (www.nagios.org)
Last Modified: 07-03-2007
License: GPL v2
Encryption Routines: AVAILABLE
Usage: -c -c <config_file> [mode]
<config_file> = Name of config file to use
[mode] = Determines how NSCA should run. Valid modes:
--inetd = Run as a service under inetd or xinetd
--daemon = Run as a standalone multi-process daemon
--single = Run as a standalone single-process daemon (default)
This program is designed to accept passive check results from
remote hosts that use the send_nsca utility. Can run as a service
under inetd or xinetd (read the docs for info on this), or as a
Connection closed by foreign host.
So what can be the problem here. I've double checked the send_nsca.cfg and nsca.cfg several times and checked for passwd.
On the masterserver - The host just keep showing depending - but check results looks like it's only checking active - and for that reason sure the servers are down.
But the configuration on the masterserver for those hosts are:
Hostdefination over the monitoring servers outside
# check_command check-host-alive
And the check for services:
But in /usr/local/nagios/var/nagios.log or -/rw/nagios.cmd aren't there any clue for these connections. So what Am I doing wrong here ? Since It's showing its working and aren't at all