We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

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

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
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 ...'
Posts: 992
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
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 15 guests