Page 1 of 1

how define a diffent port on ssh http service

Posted: Fri Apr 25, 2014 6:25 pm
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.

Re: how define a diffent port on ssh http service

Posted: Mon Apr 28, 2014 9:26 am
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.

Re: how define a diffent port on ssh http service

Posted: Mon Apr 28, 2014 1:28 pm
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.

Re: how define a diffent port on ssh http service

Posted: Mon Apr 28, 2014 1:31 pm
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!