vMA Host port 12489: Connection refused

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

vMA Host port 12489: Connection refused

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: vMA Host port 12489: Connection refused

Post by Box293 »

check_nt is how you communicate with the Windows client NSClient++, you cannot use it to connect to a Linux host.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: vMA Host port 12489: Connection refused

Post by kwhogster »

Troy

how do I test a Linux host for uptime then?

thanks

Tom

Ps got your email reviewing that now
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: vMA Host port 12489: Connection refused

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: vMA Host port 12489: Connection refused

Post by kwhogster »

I have nrpe on my Nagios Server

It is strange how the check_nt works on the Raspberry PI Raspbian OS
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: vMA Host port 12489: Connection refused

Post by kwhogster »

Resolved this

removed the check_nt check

replaced with check_ping and added check_local_disk

Now working
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: vMA Host port 12489: Connection refused

Post by mcapra »

Awesome! Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: vMA Host port 12489: Connection refused

Post by kwhogster »

Yes close this thanks
Locked