-
Notifications
You must be signed in to change notification settings - Fork 9
/
zapish.1.xml
222 lines (221 loc) · 6.31 KB
/
zapish.1.xml
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2017-2018 Tomasz Kłoczko <[email protected]>
This program is free software, distributed under the terms of
the GNU General Public License Version 2.
-->
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*-->
<refentry>
<refentryinfo>
<title>zapish - Zabbix API SHell command processor</title>
<productname>zapish</productname>
<copyright>
<year>2018</year>
</copyright>
<authorgroup>
<author>
<personname>
<firstname>Tomasz</firstname>
<surname>Kłoczko</surname>
<affiliation>
<address>
<email>[email protected]</email>
</address>
</affiliation>
</personname>
<personblurb>
kloczek
</personblurb>
<contrib>
Author
</contrib>
</author>
</authorgroup>
</refentryinfo>
<refmeta>
<refentrytitle>zapish</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="sectdesc">Zabbix API SHell command processor</refmiscinfo>
<refmiscinfo class="source">zapish</refmiscinfo>
</refmeta>
<refnamediv id="name">
<refname>zapish</refname>
<refpurpose>Zabbix API SHell command processor</refpurpose>
</refnamediv>
<refsynopsisdiv id="synopsis">
<cmdsynopsis>
<para>zapish <command>create</command></para>
<para>zapish <command>delete</command></para>
<para>zapish <command>export</command></para>
<para>zapish <command>get</command></para>
<para>zapish <command>help</command></para>
<para>zapish <command>import</command></para>
<para>zapish <command>update</command></para>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="description">
<title>DESCRIPTION</title>
<para>
The <command>zapish</command> is the SH script which provides easy to use zabbix API CLI interface.
</para>
<para>
This sctipt uses zapish.inc. It demostrates how to use zapish.inc file in own POSIX SH scripts.
</para>
</refsect1>
<refsect1 id="options">
<title>COMMANDS</title>
<variablelist remap="IP">
<varlistentry>
<term>
zapish <command>acknowledge</command>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
zapish <command>create</command>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
zapish <command>delete</command>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
zapish <command>export</command> <option/>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
zapish <command>get</command> <option/>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
zapish <command>help</command> <option/>
</term>
<listitem>
<para>Displays a help message.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
zapish <command>import</command> <option/>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
zapish <command>update</command> <option/>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 id="configuration">
<title>CONFIGURATION</title>
<para>
The <command>zapish.inc</command> functions uses following
configuration variables in <command>~/.zapish.rc</command>:
</para>
<para>
This scrip use <command>~/.zapish.rc</command> file which is generated on first use zapish.
</para>
</refsect1>
<refsect1 id="files">
<title>FILES</title>
<variablelist>
<varlistentry>
<term>
<command>/usr/libexec/zapish/zapish.inc</command>
</term>
<listitem>
<para>The default location of the <command>zapish.inc</command> include file.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 id="exit_codes">
<title>EXIT CODES</title>
<table>
<title>
Functions defined in <command>zapish.inc</command> may exit with the following exit codes:
</title>
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<colspec align="center"/>
<colspec align="left"/>
<thead>
<row>
<entry>Exit code</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>0</entry>
<entry>Success</entry>
</row>
<row>
<entry>1</entry>
<entry>Zabbix API authentication error</entry>
</row>
<row>
<entry>2</entry>
<entry>
First use of zapish. Initialization has been done and <command>~/.zapish.rc</command> file has been created sucessfully
</entry>
</row>
<row>
<entry>3</entry>
<entry>The zabbix_api() called without arguments</entry>
</row>
<row>
<entry>4</entry>
<entry>The zabbix_api() call error</entry>
</row>
</tbody>
</tgroup>
</table>
</refsect1>
<refsect1 id="see_also">
<title>SEE ALSO</title>
<para><citerefentry><refentrytitle>zapish.inc</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
<citerefentry><refentrytitle>sh</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>bash</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
</para>
<para>
<ulink url="https://github.com/kloczek/zapish/"/>
</para>
<para>
<ulink url="https://www.zabbix.com/documentation/3.4/manual/api/"/>
</para>
</refsect1>
</refentry>