-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME
88 lines (55 loc) · 2.16 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Welcome to Cnagios!
Cnagios is a full-screen terminal interface for viewing Nagios HOST
and SERVICE objects, and the durations of their current states. It's
lightning fast because it's written in C using the curses library.
And it's super flexible because it uses the perl C library to shorten
and alter host, service and plugin output and filter the displayed
HOSTs or SERVICEs.
Download...
https://github.com/dannywarren/cnagios/releases
To use Cnagios, you'll need Unix, nagios, perl and the curses (or
ncurses) libraries.
To configure, build and install Cnagios, do...
./configure
make
make install
If you want to install cnagios and it's man page in /usr/local then
do "make install2".
To run Cnagios, add "/usr/local/nagios/bin" to your PATH (or copy
cnagios into /usr/bin) and do...
cnagios
If you don't like the full-color display, try...
cnagios -b
To launch Cnagios from your window manager, configure it to run
color Cnagios in a wide xterm terminal with no scroll bar... my
favorite invocation is...
xterm +sb -geom 100x35 -rv -e \
/usr/local/nagios/bin/cnagios -s a -A 4h
To modify the default/start-up configuration of cnagios, edit
the /usr/local/nagios/etc/cnagiosrc and/or ~/.cnagiosrc file(s).
You can also create permanent text (grep like) filters or negative
(grep -v like) filters by editing the /usr/local/nagios/etc/cnagiosrc
and/or ~/.cnagiosrc file(s). These filters are perl regular expressions.
For example, the entry...
f3 text =~ /IMAP|SMTP/
and hitting the "F3" key will cause cnagios to only display objects
matching "IMAP" or "SMTP".
To modify host, service and plugin output, edit the perl code in...
/usr/local/nagios/etc/cnagios.pl
Refer to...
https://github.com/dannywarren/cnagios/blob/master/cnagios.pl
for lots of examples.
--
steve
director of computing
physics department
university of wisconsin
--
Steve died in his prime, on May 24, 2013.
http://www.news.wisc.edu/21829
dan bradley
physics department
university of wisconsin
--
Moved source from noc.hep.wisc.edu to github with the permission of Dan Bradley.
https://github.com/dannywarren/cnagios