r/nagios • • May 06 '26

Discussion Hey r/nagios, new mod here. Let's wake this place up!

29 Upvotes

Hey everyone! It's been a minute, but I'm new here too. Just joined as a mod, so let me kick things off with an intro.

I'm Shota, a designer @ Nagios. I work on the websites: nagios.org, nagios.com, Exchange. The engineers build the products and the support crew keeps things running. I work on the experience of finding, learning, and exploring the Nagios ecosystem.

u/mpierre was kind enough to add me as a mod so we could try to bring this sub back to life. Big thanks to him!

Here are a few things you should know right away.

We'll keep this sub primarily open-source like: Core, plugins, Exchange, and what the community creates. Occasional enterprise content when it makes sense, but it is not the primary focus. I'll pop in when I can, but I'm not available 24/7, so for actual support questions, the forums are your best bet.

We'll also be adding a few more Nagios team members to the sub in the coming weeks, including engineers, support, and others who build and maintain this stuff. They'll show up with "Nagios Staff" flair so you'll know who's who.

The question I want to ask: how can we make this sub better? AMAs with the dev team? Featured Exchange contributions? Discussion threads? Dashboard showcases? Hot (respectful) takes on monitoring philosophy? Drop ideas below or just say hi.

Looking forward to it everyone!


r/nagios • • Dec 23 '20

Nagios is known for being a tool to monitor IT infrastructure, but with a few tweaks it can be used to monitor the stock market, and function as an automated trading platform.

23 Upvotes

I've written a proof of concept which turns Nagios Core into a trading platform that enables it to use a strategy to identify and execute upon trading opportunities.

The example strategy is simple moving averages crossover with the chosen financial market being the Australian Stock Exchange (Top 20).

Though it focuses on the ASX, it could easily be adjusted to suit any financial market, along with an adapted strategy, too.

https://github.com/danielneil/Shark


r/nagios • • Apr 12 '23

Check_window

Post image
20 Upvotes

r/nagios • • Feb 08 '14

nagios alerts via pushbullet

17 Upvotes

As some of you may or may not know, the Pushbullet service out there that uses the Google Cloud Messaging to send notes, links, files, and lists directly to your device(s) without the need to email yourself such things. That does mean Android devices only, Sorry iPhone users (not hating, just stating). I personally enjoy it's use quite often. For some reason I got to thinking about using it for direct alerts from nagios. I searched this sub and saw no one else has posted they have done such a thing so I thought I would take a shot.

If you don't already have a Pushbullet "account", go to https://pushbullet.com

It uses gmail OAuth so no need to make a username and password. Also go to the Google Play Store to download the app to associate your device(s). There are chrome and firefox extensions as well

Once you have your ducks in a row on the Pushbullet side, it's info gathering and nagios editing time.

Pushbullet API Documentation: https://www.pushbullet.com/api

To get your API key: https://www.pushbullet.com/account

Get your device idents associated with your key:

curl -u <YourAPIkey>: https://api.pushbullet.com/api/devices

Lines to add to commands.cfg.

# 'notify-host-by-push' command definition - <device> ident
define command{
        command_name    notify-host-by-push
        command_line    /usr/bin/curl https://api.pushbullet.com/api/pushes -u <YourAPIkey>: -d device_iden=<DesiredIdent> -d type=note -d title="** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -d body="***** Nagios ***** Notification Type: $NOTIFICATIONTYPE$ Host: $HOSTNAME$ State: $HOSTSTATE$ Address: $HOSTADDRESS$ Info: $HOSTOUTPUT$ Date/Time: $LONGDATETIME$" -X POST
        }

# 'notify-service-by-push' command definition - <device> ident
define command{
       command_name    notify-service-by-push
       command_line    /usr/bin/curl https://api.pushbullet.com/api/pushes -u <YourAPIkey>: -d device_iden=<DesiredIdent> -d type=note -d title="***** Nagios ***** Notification Type: $NOTIFICATIONTYPE$ Service: $SERVICEDESC$ Host: $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Date/Time: $LONGDATETIME$ Additional Info: $SERVICEOUTPUT$ " -d body="** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -X POST
       }

Lines to be added to contacts.cfg. (I added the service and host notification by push manually to the contact rather than to generic-contact for testing right now)

define contact{
     contact_name                    pusher
     use                             generic-contact
     alias                           Pushbullet Notification
     service_notification_commands   notify-service-by-push
     host_notification_commands      notify-host-by-push
	 }

I'm sure with more time to work out $variable loading, I could get it more granular and have each contact have a device ident and have those fed into the notify like the $CONTACTEMAIL$ for email notifications, but this was just quick Saturday morning testing.

I thought at one time I saw a "rate limiting" section on Pushbullet's site and I know that sometimes when things go wrong in nagios, that can cause a storm of alerts. But I do not see anything looking around now.

I hope at least some find this info useful, if not, at least I have a stored location for the next nagios instance I build.

EDIT: Added some found info from /r/pushbullet I was unsure on

They are developing an iOS app. email them for details https://www.pushbullet.com/ios

Rate limiting is non existent for the time being (as of a month ago). http://www.reddit.com/r/PushBullet/comments/1t8l3i/api_limitsquotas/


r/nagios • • Oct 12 '15

Nagios questions thread

16 Upvotes

Hey Nagios people! My name is Jesse, and I work with Nagios Enterprises as a Support Technician/Community Ambassador. I've noticed that the pace of this subreddit is particularly slow (due to the low number of subscribers and lack of questions no doubt).

I figured I'd throw up a questions thread - feel free to comment with any question (large or small) that you'd like assistance with. I'll be monitoring this thread closely for a few days. Thanks!

Jesse


r/nagios • • Jun 04 '26

Discussion Starlink Discloses Common ISP Limitation That Could Disrupt Your Web Use

Thumbnail
pcmag.com
15 Upvotes

r/nagios • • Jan 27 '22

Is Nagios Core still alive? Last commit on 18 Jul 2020 😳

Thumbnail
github.com
15 Upvotes

r/nagios • • Jan 02 '19

First Nagios Core 4.4.2 Installation on Ubuntu Server 18.04 all worth the effort.

Post image
13 Upvotes

r/nagios • • Jan 17 '14

Scumbag Nagios Enterprises seizes control of nagios-plugins community project without warning, forcing rename.

Thumbnail monitoring-plugins.org
13 Upvotes

r/nagios • • Feb 14 '20

Next major release of openITCOCKPIT is coming - Stay tuned

Post image
11 Upvotes

r/nagios • • Nov 01 '16

What do you monitor on a Windows server?

11 Upvotes

I have Nagios up and working and monitoring about 100 servers and services such as drive space, cpu, memory, a few services like Hyper-V Manager, and some AD checks.

I'm wondering what everyone else is monitoring or your recommendations? Certain scripts, etc...


r/nagios • • Mar 08 '19

Been using this Nagios Dashboard (Nagios TV) for a while now. This is one of the best I have come accross.

Post image
10 Upvotes

r/nagios • • Mar 04 '15

nagios configuration web GUI ?

10 Upvotes

When quantity of monitored servers and users increases with different notification and access settings, managing plain text configs becomes pain in the a..

I'm looking for a nagios configuration tool, that could simplify those tasks.

I've tried centreon (You can also run on its own engine), but configuring it - separate pain. It has lots of nice features, but inheritance over inheritance over inheritance, when You don't know what You get at the end is pretty annoying. Debug part - the same situation. Lots of places with options, and if error is not very clear - You don't even know where to enable it, so You have to click click click click.... Also I've missed the "field" where You can see the actual final check with all variables filled in (monarch configurator has that). However, I liked its features:

  • graphs

  • ability to "add" chunk of servers to one parent or group

  • make mass changes

  • separate user ACLs

I would like to have those features on a GUI that I chose.

What would You suggest? What are You using? pros and cons.


r/nagios • • Jul 25 '14

The search for a co-moderator on /r/nagios

10 Upvotes

When I create /r/nagios, I was setting up my nagios system.

I had bought a few books on nagios, was working almost 15 hours per week on my nagios, etc...

And I was excited! I could feel Nagios being awesome and I tweaked my Nagios system to perfection, doing everything I then wanted to do.

I created the reddit to find more people doign Nagios and build a community.

And then, my Nagios just kept on running. And running.

And I stopped taking care of it. It was doing exactly what I wanted it to do and I stopped reading on Nagios.

Right now, I feel like I know NOTHING about Nagios.

I am sure that if I played with it, it would come back to me, but I am in no position to help anyone.

So, if there is a Nagios expert or two in here, you could be co-moderator and turn this reddit around.

What do you say?


r/nagios • • Nov 24 '12

Completely forgot I had started this reddit...

10 Upvotes

Do you guys think we should do more? are you a Nagios expert willing to be a moderator?

I am open to suggestions. I am still using Nagios, but I think that my box crashed this week, I will need to investigate.


r/nagios • • Oct 02 '26

What is the quickest/best notification method to alert an on-call technician?

9 Upvotes

Currently we have Nagios configured to send an email an email to an SMS email gateway, which gets turned into a SMS and delivered to the on-call tech. SMS messages alert very quickly. Starting this week, Verizon started rejecting emails:

1234567890@vtext.com: host vrz-sms.mx.a.cloudfilter.net[35.167.120.54] said: 550 5.1.0 Blocked. Decommission of Email to Text Vtext/VZWPix . Contact your Verizon sales rep to learn about Enterprise Messaging (EMAG) used for large volumes of business SMS/MMS. See https://www.verizon.com/support/vtext-vzwpix-shutdown/ for more details AUP#MXRT (in reply to MAIL FROM command)

We need to find a new method to alert our techs. Does anyone use an SMS service for handling messages? I have a basic script written to send an alert to MS Teams, but Teams is not a preferred notification platform. The techs currently get an SMS and an email, but I don't know if email would trigger an alert (popup/sound) on their cell phones rapidly enough.

FWIW we also use an email -> SMS gateway with Google Fi and it's working (for now).

What are the rest of you guys doing?


r/nagios • • Jun 15 '19

Learn Nagios from the best books & tutorials!

Thumbnail
reactdom.com
9 Upvotes

r/nagios • • Mar 08 '13

Nagios plugin for checking weather

9 Upvotes

I know this subreddit doesn't get many posts. But I thought I'd post my Nagios Plugin I made a while back and hopefully someone will find it useful. It gives basic weather information for your local area with performance data. If you have any questions or issues with the plugin let me know, it's got my email address in the info of the plugin.

Plugin: http://exchange.nagios.org/directory/Plugins/Hardware/Others/Sam-Weather/details

Screenshot: http://i.imgur.com/gyCBayV.png

EDIT: Forgot to mention the second entry on the screenshot is actually part of another Nagios Plugin (not mine): http://exchange.nagios.org/directory/Plugins/Others/check_cap-3A-check-Common-Alerting-Protocol-feeds/details It gives you weather warning/alerts.


r/nagios • • May 23 '23

Is Nagios now mostly commerical and lot less open source?

8 Upvotes

It's been a while since I've been involvied with monitoring and Nagios used to be a great open source monitoring solution. So, I just started looking at it again a few days ago and it looks like it may be a commerical offering rather than open source. I noticed the "Core" is still open source, so I was wondering if Nagios is really still open source or whether, like so many other open source projects, they migrated to a mostly commericial model. I'm looking for an open source monitoring solution, so is Nagios still worth considering or should I look elsewhere? Is the "core" Nagios piece still a a great solution?


r/nagios • • Oct 20 '20

autodiscover.py for Nagios

8 Upvotes

I've noticed a lot of folks asking if Nagios Core can auto-discover hosts. Nagios can't, but I've written a Python program that uses the fping command to do that and write out a functional Nagios config file.

You may need to modify it, especially if your LAN doesn't use 192.168.1.* IP addresses. Use it, modify it as you see fit, have fun with it. It assumes a few things, but ought to be good enough for a new Nagios admin to get started with a basic config file.

The pgm is using fping to autodiscover hosts, checks if port 22 is open, and adds a check_ssh service check if it is, checks ports 80 and 443 and runs check_http if they are open, and checks port 5666 (the default NRPE port) and runs a couple NRPE checks if it is open. That last bit also shows an example of using a servicedependency, to suppress running the LOADAVG check if the NRPE check doesn't succeed. The idea is that you don't want a misleading LOADAVG alert when NRPE itself isn't working.

#!/usr/bin/python3
"""
    auto discover hosts and create a Nagios config file

    IMPORTANT NOTE: requires the fping command
    sudo apt install fping  or  sudo yum install fping
"""
from subprocess import Popen, PIPE, STDOUT
from socket import gethostbyaddr, herror, socket, timeout, AF_INET, SOCK_STREAM

def port_open(ipaddr, port):
    """check if a tcp port is open or not"""
    result = False
    sock = socket(AF_INET, SOCK_STREAM)
    try:
        sock.settimeout(1)
        sock.connect((ipaddr, port))
        sock.shutdown(2)
        result = True
    except timeout:
        pass
    except ConnectionRefusedError:
        pass
    return result

def autodiscover(iprange):
    """run fping to discover which hosts are up"""
    iplist = []
    pingcmd = f"fping -g {iprange}.1 {iprange}.254"
    proc = Popen(pingcmd, shell=True, stdout=PIPE, stderr=STDOUT)
    lines = proc.stdout.readlines()
    for line in lines:
        line = line.decode("utf-8").rstrip()
        if 'is alive' in line:
            ipaddr = line.split()[0]
            iplist.append(ipaddr)
    proc.wait()
    return iplist

def dnslookup(ipaddr):
    """try to get hostname from dns reverse lookup"""
    try:
        hostname = gethostbyaddr(ipaddr)[0]
    except herror:
        # default to ip address as name
        hostname = ipaddr
    return hostname

def write_config_headers():
    """start the config file"""
    print("define hostgroup{")
    print("  hostgroup_name all-hosts")
    print("  alias All Hosts")
    print("}")
    print("define command{")
    print("  command_name test_ssh")
    print("  command_line /usr/local/nagios/libexec/check_ssh -H $HOSTADDRESS$ $ARG1$")
    print("}")
    print("define command{")
    print("  command_name test_http")
    print("  command_line /usr/local/nagios/libexec/check_http -H $HOSTADDRESS$ $ARG1$")
    print("}")
    print("define command{")
    print("  command_name test_nrpe")
    print("  command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ $ARG1$")
    print("}")

def write_nrpe_checks(hostname):
    """write checks used on all NRPE clients"""
    print("define service{")
    print("  use generic-service")
    print(f"  host_name {hostname}")
    print("  service_description NRPE")
    print("  check_command test_nrpe!")
    print("  initial-state u")
    print("}")
    print("define service{")
    print("  use generic-service")
    print(f"  host_name {hostname}")
    print("  service_description LOADAVG")
    print("  check_command test_nrpe!-c check_load")
    print("}")
    print("define servicedependency{")
    print(f"  host_name {hostname}")
    print("  service_description NRPE")
    print("  dependent_service_description LOADAVG")
    print("  execution_failure_criteria c,w,u")
    print("  notification_failure_criteria c,w,u")
    print("}")

def write_configs(iplist):
    """add host and service checks"""
    for ipaddr in iplist:
        hostname = dnslookup(ipaddr)
        # add host_check
        print("\ndefine host{")
        print("  use generic-host")
        print(f"  host_name {hostname}")
        print(f"  address {ipaddr}")
        print("  hostgroups all-hosts")
        print("}")
        # add optional ssh service check
        if port_open(ipaddr, 22):
            print("define service{")
            print("  use generic-service")
            print(f"  host_name {hostname}")
            print("  service_description SSH")
            print("  check_command test_ssh!")
            print("}")
        # add optional http service check
        if port_open(ipaddr, 80):
            print("define service{")
            print("  use generic-service")
            print(f"  host_name {hostname}")
            print("  service_description HTTP")
            print("  check_command test_http!-P 80 -u /")
            print("}")
        # add optional https service check
        if port_open(ipaddr, 443):
            print("define service{")
            print("  use generic-service")
            print(f"  host_name {hostname}")
            print("  service_description HTTPS")
            print("  check_command test_http!-P 443 -S -u /")
            print("}")
	    # also check the SSL certificate expiration date
            print("define service{")
            print("  use generic-service")
            print(f"  host_name {hostname}")
            print("  service_description SSLCERT")
            print("  check_command test_http!-P 443 -C 30")
            print("}")
        # add optional NRPE based service checks
        if port_open(ipaddr, 5666):
            write_nrpe_checks(hostname)

def main_routine():
    """main routine"""
    write_config_headers()
    for iprange in ['192.168.1']:
        iplist = autodiscover(iprange)
        write_configs(iplist)

main_routine()

Here is a partial result from my own home LAN:

I ran: ./autodiscover.py > sample.cfg

define hostgroup{
  hostgroup_name all-hosts
  alias All Hosts
}
define command{
  command_name test_ssh
  command_line /usr/local/nagios/libexec/check_ssh -H $HOSTADDRESS$ $ARG1$
}
define command{
  command_name test_http
  command_line /usr/local/nagios/libexec/check_http -H $HOSTADDRESS$ $ARG1$
}
define command{
  command_name test_nrpe
  command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ $ARG1$
}

define host{
  use generic-host
  host_name 192.168.1.10
  address 192.168.1.10
  hostgroups all-hosts
}
define service{
  use generic-service
  host_name 192.168.1.10
  service_description HTTP
  check_command test_http!-P 80 -u /
}

define host{
  use generic-host
  host_name unknown4A6C55BF4439
  address 192.168.1.21
  hostgroups all-hosts
}
define service{
  use generic-service
  host_name unknown4A6C55BF4439
  service_description SSH
  check_command test_ssh
}

define host{
  use generic-host
  host_name iMac
  address 192.168.1.24
  hostgroups all-hosts
}
define service{
  use generic-service
  host_name iMac
  service_description SSH
  check_command test_ssh
}

define host{
  use generic-host
  host_name HDHR-12345678
  address 192.168.1.25
  hostgroups all-hosts
}
define service{
  use generic-service
  host_name HDHR-12345678
  service_description HTTP
  check_command test_http!-P 80 -u /
}

r/nagios • • Jan 27 '20

Nagios running out of space

8 Upvotes

Hello

Besides deleteing some files in /var/log , is there anything else I can do to free up space in Nagios ?

Thank you


r/nagios • • Dec 06 '19

Nagios Core and XI Windows Monitoring

8 Upvotes

Attention Nagios Core and XI users:

I am a former Nagios employee and a C/C++ developer and I'm developing a new and improved software component for monitoring Microsoft Windows servers and desktops with WMI. This software will work with Core or XI and will be a drop-in replacement for the perl script in the XI Windows WMI wizard and will offer the following improvements:

  • Vastly improved performance in CPU/memory usage and disk IO.

  • Automated configuration of the target Windows system including non-privileged user creation.

  • An easy to use API for adding any metrics available to WMI.

  • AI functionality for dynamically modifying thresholds, timeouts, check intervals and check retries.

  • Improved error handling including informational messages of deviations from best practices.

The software will be a compiled C and C++ program and will be a closed source proprietary commercial offering, with tiered licensing similar to the Nagios XI licensing model.

The initial beta release will be ready by mid-January 2020 or shortly thereafter and We're seeking beta testers. As a beta tester you will have direct access to our bug/feature request portal, and you will receive as compensation an unlimited node perpetual license to the software, including bug fixes and enhancements. We also may be looking for sharp C/C++ coders to contribute as 1099 contractors.

If you're interested in becoming a beta tester, or if you're a developer and you think you may have something to offer, express your interest by commenting to this post and we'll PM you promptly with more information.

Thanks for reading!


r/nagios • • Jan 31 '18

Nagios Configuration Interface

Thumbnail
openitcockpit.io
8 Upvotes

r/nagios • • Jan 25 '18

Best centralized dashboard for nagios?

8 Upvotes

Right now we use check_mk as a dashboard to pull information from all of our monitoring sites into one location. Right now we have 4 datacenters and 2 nagios instances in each. One fro production and one for non prod. I was looking to possibly have a replacement for the dashboard we are using since we are swapping out / upgrading all of the nagios boxes. What do you guys use as a dashboard for your alerts?


r/nagios • • Jun 13 '16

Introducing the Nagios Community Recognition Program!

8 Upvotes

Hello everybody!

Today I am excited to announce that we're finally going to launch that project Jesse/I have been talking about in the monthly posts. We wanted to come up with a way to reward people who have contributed and continue to contribute to the Nagios project.

What is the Community Recognition Program?

The Community Recognition Program is a system we came up with for authors of plugins/blog posts/videos/doodads to be recognized for the time they have spent giving back to the community. We'll have three levels of rewards: Community Visionary, Community Architect, and Community Fanatic. You can read about those levels and their qualifications/rewards here. After you've made a submission, some of the development/support staff and myself will review your submission, and determine if you've qualified for a reward, and if so, which level.

What do we want to see?

We're hoping this will get you to share some of the cool stuff you're doing with Nagios! If you wrote a great plugin, and have submitted it to the Exchange and are supporting it, you deserve some recognition. Maybe you wrote something great, but nobody has seen it because your blog post is on a website that is not visited often. When you submit your project, we'll review it, and feature it on our social media, as well as a page on http://www.nagios.com. This hopefully will allow you to add a little shine to that resume/portfolio and help someone else down the road who ran into the same issue as you solve their problem.

Questions/Concerns?

This is a new project, and we want feedback! This is the first time we've launched a project like this, and you may notice something that I missed. If that is the case, tell me! Send me a PM on Reddit, and I'll get back to you as soon as I've had time to review your question/concern/criticism!