-
Notifications
You must be signed in to change notification settings - Fork 46
/
index.html
200 lines (192 loc) · 8.95 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ZAPIX - online Zabbix API tool</title>
<link rel="shortcut icon" href="assets/favicon.ico">
<link rel="icon" href="assets/favicon.png">
<meta content="Zapix - online Zabbix API tool" property="og:title">
<meta content="Zapix - online Zabbix API tool" property="title">
<meta content="Online Zabbix API tool - test your Zabbix API query in your browser" property="description">
<meta content="Online Zabbix API tool - test your Zabbix API query in your browser" property="og:description">
<meta content="appicon.png" property="og:image">
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-75048060-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<span class="brand"><a href="#">ZAPIX</a></span>
<div class="nav-collapse">
<ul class="nav">
<li><a data-toggle="modal" href="#connections">Connect</a></li>
<li><a target="_blank" href="https://www.zabbix.com/documentation/3.4/manual/api" onclick="this.href='https://www.zabbix.com/documentation/'+zabbixVersion+'/manual/api'; return true;">Zabbix API manual</a></li>
<li><a target="_blank" href="https://github.com/monitoringartist/zapix#examples">API examples</a></li>
<li><a target="_blank" href="https://github.com/monitoringartist/zapix">Star and fork me on GitHub</a></li>
<li><a target="_blank" href="http://www.monitoringartist.com">Monitoring Artist</a></li>
<li id="httpsli"><a href="#" id="https" title="Warning: you may not be able to connect to http Zabbix API endpoints"><i class="icon-lock" aria-hidden="true"></i> Switch to https</a></li>
</ul>
<p id="connInfo" class="navbar-text pull-right">Not connected</p>
</div>
</div>
</div>
</div>
<!-- Connection manager modal -->
<div class="modal" id="connections" style="display: none;">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Connection manager</h3>
</div>
<div class="modal-body">
<div class="row">
<div class="span3">
<form>
<label for="host">Host</label>
<input id="host" type="url" name="host" />
<label for="login">Login</label>
<input id="login" type="text" name="login" />
<label for="password">Password</label>
<input id="password" type="password" name="password" />
<label for="xdebugssid">X-DEBUG SID</label>
<input id="xdebugssid" type="text" name="xdebugssid" />
<div class="control-group">
<button class="btn" type="button" id="connAdd">Store</button>
<button class="btn btn-primary" type="button" id="loginButton">
Connect
<i class="icon-share-alt icon-white"></i>
</button>
</div>
</form>
</div>
<div class="span3" style="border-left: 1px solid #CCCCCC; padding-left: 20px;">
<form>
<label for="connList">Stored connections</label>
<select size="12" id="connList" name="connections"></select>
<div class="control-group">
<button class="btn btn-mini" type="button" id="connRemove">Remove</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Save request modal -->
<div class="modal" id="saveRequestModal" style="display: none;">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Save request</h3>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="saveRequestName">Name</label>
<div class="controls">
<input type="text" id="saveRequestName">
</div>
</div>
<div class="control-group">
<label class="control-label" for="saveRequestMethod">Method</label>
<div class="controls">
<input type="text" id="saveRequestMethod">
</div>
</div>
<div class="control-group">
<label class="control-label" for="saveRequestParams">Request</label>
<div class="controls">
<textarea class="saveRequestParams" id="saveRequestParams"></textarea>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<a href="#" id="saveRequestOk" class="btn btn-success">Save <i class="icon-ok icon-white"></i></a>
<a href="#" data-dismiss="modal" class="btn">Cancel</a>
</div>
</div>
<!-- Load request modal -->
<div class="modal" id="loadRequestModal" style="display: none;">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Load request</h3>
</div>
<div class="modal-body">
<form>
<div class="control-group">
<div class="controls">
<select id="savedRequests" size="10" class="span5"></select>
</div>
</div>
<div class="control-group">
<div class="controls">
<button id="removeSavedRequest" class="btn btn-mini" type="button">Remove</button>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<a href="#" id="loadRequestOk" class="btn btn-success">Load</a>
<a href="#" data-dismiss="modal" class="btn">Cancel</a>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid" style="width: 100%;min-width: 1000px;">
<div class="span12">
<div class="row-fluid">
<div class="span6">
<form class="form-inline">
<div class="control-group">
<input id="apimethod" class="span4" type="text" name="apimethod" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="class.method" />
<!--a id="docLink" target="_blank" disabled="true" href="https://www.zabbix.com/documentation/3.0/manual/api/reference/ event/get" class="btn btn-mini" type="button">Doc</a -->
<a id="loadMe" class="btn disabled btn-mini" type="button">Doc</a>
<iframe id="load" src=""></iframe>
<a id="saveRequest" data-toggle="modal" href="#saveRequestModal" class="btn btn-mini" type="button">Save</a>
<a id="loadRequest" data-toggle="modal" href="#loadRequestModal" class="btn btn-mini" type="button">Load</a>
</div>
<div class="control-group">
<div id="apiparams" name="apiparams" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="parameters as JSON object: {"param1": "value1", "param2": "value2", ...}"></div>
</div>
<div class="control-group">
<button id="execute" class="btn btn-primary has-spinner" type="button">
Check & execute
<span class="play"><i class="icon-play icon-white"></i></span>
<span class="spinner"><i class="icon-spin icon-refresh icon-white"></i></span>
</button>
<span id="formatJSON" class="btn">Check & format JSON</span>
<span id="compressJSON" class="btn">Compress JSON</span>
<div id="testResult" class="alert alert-danger" style="display: none"></div>
</div>
</form>
</div>
<div class="span6">
<div id="rsp">Request:</div>
<div id="wrequest">
<a class="btncpy" data-clipboard-target="#request" title="Copy to clipboard"></a>
<pre><code id="request" class="language-js"></code></pre>
</div>
</div>
</div>
Response<span id="responsetime"></span>:
<pre><code id="response" class="language-js"></code></pre>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.11.1/typeahead.bundle.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/jsonrpc.js"></script>
<script type="text/javascript" src="js/jsonlint.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.15/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.8/ace.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>