check localhost with check_http

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
bostjanc
Posts: 17
Joined: Mon Mar 21, 2016 11:12 am

check localhost with check_http

Post by bostjanc »

Hi.
We are using check_http normally, when nagios server checks remote server's url, but I have a scenario where that url is only accessible over localost on a client with nrpe installed.
how could I achieve that kind of check?
with best regards
B
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: check localhost with check_http

Post by gormank »

You can use check_nrpe to run check_http on the client to check localhost.
Just use check_nrpe -H <client> -a 'check_http -H localhost ...'
bostjanc
Posts: 17
Joined: Mon Mar 21, 2016 11:12 am

Re: check localhost with check_http

Post by bostjanc »

Thank you for your response.
Sorry for my lack of knowledge with Nagios, but I have additional question.
We use NagiosQL for configuring checks.
- Should that command you are reffering to be configured over NagiosQl? Or do we need to create a custom check, or add anything on nrpe.cfg on client side?
Would you be please so kind and give some short steps what and where should we change/configure, thanks
Locked