-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubagent-shell.8
68 lines (66 loc) · 2.27 KB
/
subagent-shell.8
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
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2013 Serge <[email protected]>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH SUBAGENT-SHELL 8 "September 25, 2015"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
subagent-shell is a complete implementation of net-snmp subagent written on perl
.SH SYNOPSIS
.B subagent-shell
.RI [ options ]
.br
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBsubagent-shell\fP is net-snmp agent provides a simple interface to extend snmpd functionality via perl functions and provide it's results via SNMP. Comes whith predefined functions library which allows to execute arbitry command, check http results , etc ...
.SH OPTIONS
.TP
.B \-h, \-\-help
Show summary of options
.TP
.B \-v, \-\-verbose
Output varios debug information. 3 levels defined to increase verbosity
.TP
.B \-d, \-\-daemon
Start in daemon mode
.TP
.B \-p, \-\-pid\-file=FILE
Set path to pid file (for daemon mode only)
.TP
.B \-b, \-\-base\-dir=DIR
Path to installation root (default /etc/snmp/subagent-shell)
.TP
.B \-m, \-\-mib-dir=DIR
Path to mib_dir (default /etc/snmp/subagent-shell/mibs)
.TP
.B \-\-agentx-socket=FILE
Path to agentx socket
.TP
.B \-l, \-\-log\-file=FILE
Additionally log to a file
.TP
.B \-e, \-\-exit\-on-error
Test configuration at the initial run and stop if errors detected, 2 levels defined:
.br
\-e exit on a configuration error
.br
\-ee exit on function failed
.SH CONFIGURATION AND FUNCTIONS FILES
subagent-shell-conf.xml, subagent-shell-conf.xml, subagent-shell-base.functions in default configuration directory /etc/snmp/subagent-shell
.SH SEE ALSO
snmpd(8)