-
Notifications
You must be signed in to change notification settings - Fork 9
/
zapish.1
182 lines (182 loc) · 3.21 KB
/
zapish.1
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
'\" t
.\" Title: zapish
.\" Author: Tomasz Kłoczko <[email protected]>
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 05/06/2020
.\" Manual: Zabbix API SHell command processor
.\" Source: zapish
.\" Language: English
.\"
.TH "ZAPISH" "1" "05/06/2020" "zapish" "Zabbix API SHell command proce"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
zapish \- Zabbix API SHell command processor
.SH "SYNOPSIS"
.HP \w'\ 'u
.PP
zapish
\fBcreate\fR
.PP
zapish
\fBdelete\fR
.PP
zapish
\fBexport\fR
.PP
zapish
\fBget\fR
.PP
zapish
\fBhelp\fR
.PP
zapish
\fBimport\fR
.PP
zapish
\fBupdate\fR
.SH "DESCRIPTION"
.PP
The
\fBzapish\fR
is the SH script which provides easy to use zabbix API CLI interface\&.
.PP
This sctipt uses zapish\&.inc\&. It demostrates how to use zapish\&.inc file in own POSIX SH scripts\&.
.SH "COMMANDS"
.PP
zapish \fBacknowledge\fR
.RS 4
.RE
.PP
zapish \fBcreate\fR
.RS 4
.RE
.PP
zapish \fBdelete\fR
.RS 4
.RE
.PP
zapish \fBexport\fR
.RS 4
.RE
.PP
zapish \fBget\fR
.RS 4
.RE
.PP
zapish \fBhelp\fR
.RS 4
Displays a help message\&.
.RE
.PP
zapish \fBimport\fR
.RS 4
.RE
.PP
zapish \fBupdate\fR
.RS 4
.RE
.SH "CONFIGURATION"
.PP
The
\fBzapish\&.inc\fR
functions uses following configuration variables in
\fB~/\&.zapish\&.rc\fR:
.PP
This scrip use
\fB~/\&.zapish\&.rc\fR
file which is generated on first use zapish\&.
.SH "FILES"
.PP
\fB/usr/libexec/zapish/zapish\&.inc\fR
.RS 4
The default location of the
\fBzapish\&.inc\fR
include file\&.
.RE
.SH "EXIT CODES"
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&1.\ \& Functions defined in zapish\&.inc may exit with the following exit codes:
.TS
allbox tab(:);
cB lB.
T{
Exit code
T}:T{
Description
T}
.T&
c l
c l
c l
c l
c l.
T{
0
T}:T{
Success
T}
T{
1
T}:T{
Zabbix API authentication error
T}
T{
2
T}:T{
First use of zapish\&. Initialization has been done and \fB~/\&.zapish\&.rc\fR file has been created sucessfully
T}
T{
3
T}:T{
The zabbix_api() called without arguments
T}
T{
4
T}:T{
The zabbix_api() call error
T}
.TE
.sp 1
.SH "SEE ALSO"
.PP
\fBzapish.inc\fR(3),
\fBsh\fR(1),
\fBbash\fR(1)\&.
.PP
\m[blue]\fB\%https://github.com/kloczek/zapish/\fR\m[]
.PP
\m[blue]\fB\%https://www.zabbix.com/documentation/3.4/manual/api/\fR\m[]
.SH "AUTHOR"
.PP
\fBTomasz Kłoczko\fR <\&kloczek@fedoraproject\&.org\&>
.RS 4
.RE
.RS 4
Author
.RE
.SH "COPYRIGHT"
.br
Copyright \(co 2018
.br