Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bahamas10/node-nagios-view
- Owner: bahamas10
- Created: 2015-07-11T22:41:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-11T23:26:28.000Z (over 9 years ago)
- Last Synced: 2024-10-11T22:14:02.805Z (2 months ago)
- Language: JavaScript
- Size: 1.45 MB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 hostscolor output - defaults to color output if stdout is a TTY
--color force color output
--no-color disable color outputstate 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 anythingLicense
-------MIT License