how define a diffent port on ssh http service

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
hombrezuelo
Posts: 2
Joined: Fri Apr 25, 2014 6:02 pm
Location: /home/boboashanti/

how define a diffent port on ssh http service

Post by hombrezuelo »

Hi everyone

I'm facing a issue with nagios, I'm running nagios core 4.0.1 over Centos 6.4 32 bits, Nagios already is monitoring by ping some hosts, so far is ok but i got this message:

***** Nagios *****
Notification Type: PROBLEM
Service: HTTP
Host: localhost
Address: 127.0.0.1
State: CRITICAL
Date/Time: Fri Apr 25 12:49:16 CDT 2014
Additional Info:
Connection refused

And the same for ssh, I'm using a diferent port for ssh and http service in the localhost, so how can change the default setting on Nagios and tell to Nagios that it needs to look in other port?

someone throw me a bone here?
Thanks in advance.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: how define a diffent port on ssh http service

Post by tmcdonald »

Did you look at our plugins documentation?

http://nagios-plugins.org/doc/man/check_http.html

The -p option should be what you want.
Former Nagios employee
hombrezuelo
Posts: 2
Joined: Fri Apr 25, 2014 6:02 pm
Location: /home/boboashanti/

Re: how define a diffent port on ssh http service

Post by hombrezuelo »

Hi dear tmcdonald

Thanks for you answer, It works. just added the option -p

I'm getting involve with nagios documentation.

Best regards.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: how define a diffent port on ssh http service

Post by tmcdonald »

Glad I could help. I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked