Page 1 of 1

vMA Host port 12489: Connection refused

Posted: Mon Aug 01, 2016 8:00 pm
by kwhogster
I just built VMware VMA Host

vi-admin@localhost:~> uname -a
Linux localhost 3.0.101-0.47.71-default #1 SMP Thu Nov 12 12:22:22 UTC 2015 (b5b212e) x86_64 x86_64 x86_64 GNU/Linux

I added a host and service definition to my cfg file when I reloaded Nagios I got this critical error

connect to address 10.2.8.7 and port 12489: Connection refused

The Hosts view shows this Host as up but the service fails to connect

I also have a Raspberry Pi running Raspbian and I just added that and it works fine same config

Code: Select all

define host{
        use             windows-server
        host_name       RaspberryPi
        alias           Rasbian
        address         10.2.8.70
        }
define host{
        use             windows-server
        host_name       vMA
        alias           VmWare
        address         10.2.8.7
}
define service{
        use                     generic-service
        host_name               RaspberryPi
        service_description     Uptime
        check_command           check_nt!UPTIME
        }
define service{
        use                     generic-service
        host_name               vMA
        service_description     Uptime
        check_command           check_nt!UPTIME
        }
what am I missing here

Thanks

Re: vMA Host port 12489: Connection refused

Posted: Mon Aug 01, 2016 9:10 pm
by Box293
check_nt is how you communicate with the Windows client NSClient++, you cannot use it to connect to a Linux host.

Re: vMA Host port 12489: Connection refused

Posted: Mon Aug 01, 2016 9:15 pm
by kwhogster
Troy

how do I test a Linux host for uptime then?

thanks

Tom

Ps got your email reviewing that now

Re: vMA Host port 12489: Connection refused

Posted: Mon Aug 01, 2016 9:42 pm
by Box293
You would need to install NRPE on it and then install Nagios Plugins as well. HOWEVER I know the vMA is quite frustrating at getting NRPE installed on it as it's an older version of SUSE. That was one of the deciding factors in using check_by_ssh to execute the box293_check_vmware plugin on the vMA.

You are better off using a script that executes via check_by_ssh, just like the box293_check_vmware plugin does.

Check out the Nagios Exchange for an uptime script:

https://exchange.nagios.org/index.php?o ... ord=uptime

Or you could enable SNMP and check for uptime that way:

http://sites.box293.com/nagios/guides/c ... cks/uptime

Re: vMA Host port 12489: Connection refused

Posted: Mon Aug 01, 2016 9:52 pm
by kwhogster
I have nrpe on my Nagios Server

It is strange how the check_nt works on the Raspberry PI Raspbian OS

Re: vMA Host port 12489: Connection refused

Posted: Mon Aug 01, 2016 10:17 pm
by kwhogster
Resolved this

removed the check_nt check

replaced with check_ping and added check_local_disk

Now working

Re: vMA Host port 12489: Connection refused

Posted: Tue Aug 02, 2016 9:23 am
by mcapra
Awesome! Is it alright if we lock this thread and mark the issue as resolved?

Re: vMA Host port 12489: Connection refused

Posted: Tue Aug 02, 2016 9:01 pm
by kwhogster
Yes close this thanks