Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bahamas10/node-nagios-view

a simple CLI doshboard for nagios using the status.dat file
https://github.com/bahamas10/node-nagios-view

Last synced: about 2 months ago
JSON representation

a simple CLI doshboard for nagios using the status.dat file

Awesome Lists containing this project

README

        

Nagios View
===========

a simple CLI dashboard for nagios using the status.dat file

NOTE: as of right now this acts as a "dashboard" - it can only read status.

Examples
--------

Run `nagios-view` with no arguments to get a summary of everything in Nagios

![summary.png](screenshots/summary.png)

Add `-p` to only show hosts and services that are "problems" - anything not in the OK state

![problems.png](screenshots/problems.png)

---

Anything provided as the first operand will be used to filter by service and hostname (case sensitive)

Filter for specific services

![service-filter.png](screenshots/service-filter.png)

Add `--services-only` to remove breaks for different hosts and to prepend the hostname to the service line

![services-only.png](screenshots/services-only.png)

Filter for a specific host

![host-filter.png](screenshots/host-filter.png)

---

Use `--hosts-only` to only report on host status

![hosts-only.png](screenshots/hosts-only.png)

Combine a lot of different arguments to get a custom dashboard

![hosts-only-custom.png](screenshots/hosts-only-custom.png)

Usage
-----

$ nagios-view -h
usage: nagios-view [-hHnpsw] [-f /path/to/status.dat]

a simple CLI dashboard for nagios using the status.dat file

options
-f, --file supply the path to status.dat as , defaults to /var/spool/nagios/status.dat
-h, --help print this message and exit
-u, --updates check for available updates
-v, --version print the version number and exit

-p, --problems only show problem services (not OK status)
-w, --watch update automatically every 10 seconds indefinitely
--hide-acknowledged hide any services that have been acknowledged
--status-only only print the status lines at the bottom with totals
--no-header don't print header line at the top of the output
--no-status don't print status lines at the bottom with totals
--hosts-only only print hosts, not services
--services-only only print services, not hosts

color output - defaults to color output if stdout is a TTY
--color force color output
--no-color disable color output

state change times - printed by default for only problem services or hosts
--times print the time since last state change for all services and hosts
--no-times don't print the time since last state change for anything

License
-------

MIT License