Page 2 of 4

Re: Agent On Oracle VM server release 3.2.3

Posted: Tue Sep 03, 2013 10:49 am
by abrist
Does it have access to the internet though?
cokj72 wrote:[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
It is failing name resolution to the repo servers. . . .

Re: Agent On Oracle VM server release 3.2.3

Posted: Wed Oct 16, 2013 10:07 am
by cokj72
try again, today I made ​​the 'upgrade to version 2012R2.5 and I have a problem with the Oracle server monitoring

Re: Agent On Oracle VM server release 3.2.3

Posted: Wed Oct 16, 2013 10:31 am
by slansing
The issue you were seeing was with installing the agent on the host oracle VM's correct? So upgrading Nagios XI would have no effect on this.

Re: Agent On Oracle VM server release 3.2.3

Posted: Fri Oct 18, 2013 5:04 am
by cokj72
This output from install.log after linux-nrpe-agent/fullinstall

*** Compile finished ***

If the compile finished without any errors, you should
find client and server binaries in the src/ subdirectory.

Read the README file for more information on installing
the binaries, creating configuration files, and using
the server and client.

Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
NSCA-POST

real 0m9.345s
user 0m3.144s
sys 0m3.888s
INSTALLING EXTRA PLUGINS...

real 0m0.008s
user 0m0.000s
sys 0m0.004s
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'

Re: Agent On Oracle VM server release 3.2.3

Posted: Fri Oct 18, 2013 12:47 pm
by abrist
You are still having massive repo issues. Is this connected to the internet?
The xinetd installation most likely had an issue. What are the permissions on:

Code: Select all

ls -la /etc/xinetd.d/

Re: Agent On Oracle VM server release 3.2.3

Posted: Mon Oct 21, 2013 2:26 am
by cokj72
[root@ovmn ~]# ls -la /etc/xinetd.d/
total 192
drwxr-xr-x 2 root root 4096 Oct 18 05:03 .
drwxr-xr-x 96 root root 12288 Oct 19 04:02 ..
-rw-r--r-- 1 root root 1157 Jun 6 2007 chargen-dgram
-rw-r--r-- 1 root root 1159 Jun 6 2007 chargen-stream
-rw-r--r-- 1 root root 1157 Jun 6 2007 daytime-dgram
-rw-r--r-- 1 root root 1159 Jun 6 2007 daytime-stream
-rw-r--r-- 1 root root 1157 Jun 6 2007 discard-dgram
-rw-r--r-- 1 root root 1159 Jun 6 2007 discard-stream
-rw-r--r-- 1 root root 1148 Jun 6 2007 echo-dgram
-rw-r--r-- 1 root root 1150 Jun 6 2007 echo-stream
-rw-r--r-- 1 root root 323 Jan 12 2010 eklogin
-rw-r--r-- 1 root root 347 Jan 12 2010 ekrb5-telnet
-rw-r--r-- 1 root root 326 Jan 12 2010 gssftp
-rw-r--r-- 1 root root 310 Jan 12 2010 klogin
-rw-r--r-- 1 root root 323 Jan 12 2010 krb5-telnet
-rw-r--r-- 1 root root 308 Jan 12 2010 kshell
-rw------- 1 root root 448 Oct 18 05:03 nsca
-rw-r--r-- 1 root root 722 Feb 11 2010 rmcp
-rw-r--r-- 1 root root 317 Jun 6 2007 rsync
-rw-r--r-- 1 root root 1212 Jun 6 2007 tcpmux-server
-rw-r--r-- 1 root root 510 Jul 28 2009 tftp
-rw-r--r-- 1 root root 1149 Jun 6 2007 time-dgram
-rw-r--r-- 1 root root 1150 Jun 6 2007 time-stream

Re: Agent On Oracle VM server release 3.2.3

Posted: Mon Oct 21, 2013 11:43 am
by abrist
Did you run the ./fullinstall script as root? It looks like the agent did not install the necessary nrpe definition for xinetd.

Re: Agent On Oracle VM server release 3.2.3

Posted: Tue Oct 22, 2013 8:19 am
by cokj72
abrist wrote:Did you run the ./fullinstall script as root? It looks like the agent did not install the necessary nrpe definition for xinetd.
Yes, I use user = "root".

Re: Agent On Oracle VM server release 3.2.3

Posted: Tue Oct 22, 2013 3:10 pm
by abrist
Lets check the services file required by xinetd:

Code: Select all

cat /etc/services | grep 566 | grep -v '#'
If the above command does not output something similar to:

Code: Select all

nrpe         5666/tcp
nsca         5667/tcp
ndo2db    5668/tcp
You will need to add the above entries to the file.
Additionally, the contents of the file:

Code: Select all

cat /etc/xinetd.d/nrpe
Should be:

Code: Select all

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
  port          = 5666
        wait            = no
        user            = nagios
  group         = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
  only_from       = 127.0.0.1 192.168.74.134
}
As that file most likely does not exist, you will need to create it and copy the above text into it.
Afterwards, restart xinetd:

Code: Select all

service xinetd restart

Re: Agent On Oracle VM server release 3.2.3

Posted: Wed Oct 23, 2013 3:34 am
by cokj72
Ok, I' have create the file:
/etc/xinetd.d/nrpe

Start the service:
[root@ovmn xinetd.d]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]

But created agent from GUI "Linux Server" I receive:
Connection refused by host

I followed the procedure "NRPE Troubleshooting and Common Solutions" in step 3, but the problem persists, I have not run the "SSL not compiled in:" because I do not have directory:
/tmp/nrpe-2.14
but:
/tmp/linux-nrpe-agent
--
for the procedure in step 4, I do not have the file:
/usr/local/nagios/libexec/check_nrpe