nag

command module
v0.0.0-...-d7dc65d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 1 Imported by: 0

README

Nag

WORK IN PROGRESS

build status on master

Nag yourself to fix anything broken, by running Nagios plugins for you:

go install github.com/garthk/nag
nag list
nag run

You'll love it so much, you'll run it every time you open a terminal:

echo "$(which nag) check" >> ~/.profile

Or, you'll just leave it running:

watch nag check

CHECK ALL THE THINGS!

Allie Brosh preparing for her new life as an adult

Allie Brosh at her best: This is Why I'll Never be an Adult. If you like it, buy her book.

Demo

Try Nag out in Docker:

  • docker run -t -i ubuntu:trusty bash
  • apt-get update
  • apt-get install nagios-nrpe-server
  • Ok, you got me. I need to get Travis working with GitHub releases first.

If you prefer precise, apt-get install dialog nagios-nrpe-server to avoid spam during installation.

Audience

I designed Nag for:

  • Operators who need to know if they fixed it now, not when Nagios next decides to poll

  • Anyone developing or maintaining Nagios plugins, especially if they are learning Nagios

Why the name?

nag, v: harrass someone to do something

Think of your operators as frustrated Parent Shaped Objects trying to get you through your morning routine:

  • /usr/local/lib/nagios/plugins/check_brushed_teeth
  • /usr/local/lib/nagios/plugins/check_cleaned_shoes
  • /usr/local/lib/nagios/plugins/check_made_bed
  • /usr/local/lib/nagios/plugins/check_put_away_toys

Besides, Ubuntu's automatic package finder couldn't find anything:

No command 'nag' found, did you mean:
... 8 items, none called nag ...
nag: command not found

Roadmap

  • nag run executables
  • nag run commands
  • nag run in one or all containers via docker exec
  • nag run on another host via ssh
  • automatic production of NRPE configuration
  • automatic production of Nagios configuration

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
user-info-shim
Package userinfo provides a shim to, and mock of, user information methods in the os and os/user packages.
Package userinfo provides a shim to, and mock of, user information methods in the os and os/user packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL