FQDN

Having issues? Post them here, and help other users.
Post Reply
jpvonhemel
Junior Member
Posts: 4
Joined: Wed Mar 10, 2021 9:38 am

FQDN

Post by jpvonhemel »

Hello,

I installed the current version of NEMS last week on my Rpi 4. I am starting to add a few hosts to monitor my small home network, mostly with ping.

I would like to monitor a FQDN and it does not seem like DNS is translating it. I cannot seem to get check_ping or Ping to work with a FQDN, ie google.com. I can get 8.8.8.8 to work successfully. I checked my Rpi using ping google.com and it does translate and work. Not sure what I am doing wrong.

Image

The nagios support forum shows:

You can put the FDQN of the host in the address field instead of the IP address. It doesn't have to be an IP address in that field, a host name will work as well.
The Nagios process will do a DNS lookup if there is a host name and the check should work the way you want.


Thank you very much,

Jerold

Here is a paste of the version info.

Processor: BCM2835
Hardware Release: d03114
Distribution: Raspbian GNU/Linux 10 (buster)
NEMS Version: 1.5.2
NEMS Hardware ID: 155685f1dc2ff014a12c9034fbb48332
Kernel version: Linux 4.19.118-v7l+ armv7l
Firmware: #1311
Package(s): 155 upgradable(s)
User avatar
Marshman
Junior Member
Posts: 48
Joined: Fri Feb 02, 2018 5:33 pm
Location: New York, USA
Contact:

Re: FQDN

Post by Marshman »

Hi jpvonhemel,

Have you followed the Getting Started Guide in the docs? https://docs.nemslinux.com/en/latest/index.html
Should help you out.
Best regards,

MarshMan  NY, USA
jpvonhemel
Junior Member
Posts: 4
Joined: Wed Mar 10, 2021 9:38 am

Re: FQDN

Post by jpvonhemel »

Working through this section today and will report back. Thank you very much.

Monitor Your Web Site with check_http
jpvonhemel
Junior Member
Posts: 4
Joined: Wed Mar 10, 2021 9:38 am

Re: FQDN

Post by jpvonhemel »

I read through the check_http lesson and both checks work for nemslinux.com. For a different site, I am getting the host check in the green, but the SSL check returns HTTP WARNING: HTTP/1.1 403 Forbidden - 2648 bytes in 0.139 second response time. Both sites (nemslinux.com and my other site) do not show any paths beyond the FQDN. Not sure if I am allowed to post the url for the site that is giving me 403 Forbidden. is this a path issue or something else?

Thanks,
Jerold
jpvonhemel
Junior Member
Posts: 4
Joined: Wed Mar 10, 2021 9:38 am

Re: FQDN

Post by jpvonhemel »

This must be why it is not working with the advanced service of the check_http exercise.
The reason why you get forbidden is because you don't have any index file and directory listing is disabled. You can create a file nagios.txt (without putting anything in) and let nagios fetch that file instead of a directory which it is not allowed to view.
Post Reply