Page 1 of 1

check localhost with check_http

Posted: Tue Sep 14, 2021 2:08 pm
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

Re: check localhost with check_http

Posted: Tue Sep 14, 2021 5:18 pm
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 ...'

Re: check localhost with check_http

Posted: Thu Sep 16, 2021 1:34 am
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