Skip to content
Menu
vernon.wenberg.net
vernon.wenberg.net
June 24, 2024June 24, 2024

Service check / Port check in LibreNMS

LibreNMS offers a way to check for services and/or ports. In this example, we will check for HTTPS/SSL.

First we need to enable services.

root@nms:/etc/nginx/conf.d# cat /opt/librenms/config.php | grep show_services
$config['show_services']           = 1;
$config['show_services']           = 1;
root@nms:/etc/nginx/conf.d# 

Make sure the value for show_services is “1”. If not, change it to “1”.

We then need to install the nagios-plugins.

apt install nagios-plugins

Let’s add a dummy device. In this case, we will add a device for this web server, vernon.wenberg.net.

Make sure to de-select “SNMP” and select “Force add”.

Next, edit the device and head to the “Services” tab. In the Services tab, select “Add service”.

Name your device any name. For check type, use “http”. Remote host has to be the IP or valid DNS hostname for the device. For an HTTPS check, use the following parameters:

-E -S -p 443 --sni

If you are checking for a service that uses SSL, you need to make sure you include the “–sni” switch.

That’s it. You should see get checks and alerting on the HTTPS service. Go to the device and on the “Services” tab, you should see the following:

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to print (Opens in new window) Print
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Like this:

Like Loading...

Related

Disclaimer

These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.

Recent Posts

  • Docker Reference
  • Useful Commands for Windows Subsystem for Linux
  • FortiManager Local-In Policy
  • Mount Google Drive in Linux using rclone
  • Restore original Explorer context menus in Windows 11

Mastodon

  1. Loading Mastodon feed...

©2025 vernon.wenberg.net | Powered by WordPress and Superb Themes!
%d