Page 1 of 1

Partially working passive and active hosts.

Posted: Fri Dec 21, 2018 2:41 pm
by GlaucomaPredator
I have setup Nagios Core installed NRDP and setup the tokes on CentOS7.
I have two issues however, one with passive and one with active checks.
On a Windows Machine I installed NCPA agent, latest version.

When I attempt passive checks a couple checks get through but then NCore complains about port being blocked and all the checks fail.
nagios connect to address 192.168.xxx.xxx and port 12489: Connection refused
Nothing lives on that port on the machine and there is no firewall setup.

Then I decided, fine, I will setup active checks, I might prefer that anyways.
I setup all the cfg files and then the checks come through and some get a warning message with...
nagios (No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
However for the active checks the configuration file looks fine, as they sometimes run.
Not sure if this has to do with the check_ncpa.py

Any ideas?

Re: Partially working passive and active hosts.

Posted: Fri Dec 21, 2018 5:57 pm
by lmiltchev
Let's troubleshoot one issue at the time, starting with the active checks.

1. What is the version of Nagios Core that you are currently running and how did you install Core? Is this a repo install, complied from source, etc.?

2. What is the OS/architecture of the machine you install Nagios Core on?

Code: Select all

uname -a
cat /etc/*release
3. Do you see any config errors when you verify configuration?

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Note: If the path to nagios binary and nagios config is different than the one above, modify your command.

4. What kind of agent do you have installed on the remote machine?

5. Show us the actual check that you are running from the command line, along with the output of it.