check localhost with check_http

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

check localhost with check_http

Postby bostjanc » Tue Sep 14, 2021 2:08 pm

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

Re: check localhost with check_http

Postby gormank » Tue Sep 14, 2021 5:18 pm

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 ...'
gormank
 
Posts: 901
Joined: Tue Dec 02, 2014 12:00 pm

Re: check localhost with check_http

Postby bostjanc » Thu Sep 16, 2021 1:34 am

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


Return to Community Support

Who is online

Users browsing this forum: No registered users and 27 guests