capistrano2-zabbix 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,108 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":3374,"jsonrpc":"2.0"}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Content-Type:
17
+ - application/json-rpc
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Thu, 14 May 2015 04:42:50 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Linux/SUSE)
27
+ X-Powered-By:
28
+ - PHP/5.3.17
29
+ Content-Length:
30
+ - '71'
31
+ Content-Type:
32
+ - application/json
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"jsonrpc":"2.0","result":"0e77b2d8af92d863adf4a492fabaec5f","id":3374}'
36
+ http_version:
37
+ recorded_at: Thu, 14 May 2015 12:14:09 GMT
38
+ - request:
39
+ method: post
40
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"method":"apiinfo.version","params":{},"auth":"0e77b2d8af92d863adf4a492fabaec5f","id":34489,"jsonrpc":"2.0"}'
44
+ headers:
45
+ Accept-Encoding:
46
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
47
+ Accept:
48
+ - "*/*"
49
+ User-Agent:
50
+ - Ruby
51
+ Content-Type:
52
+ - application/json-rpc
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Date:
59
+ - Thu, 14 May 2015 04:42:50 GMT
60
+ Server:
61
+ - Apache/2.2.22 (Linux/SUSE)
62
+ X-Powered-By:
63
+ - PHP/5.3.17
64
+ Content-Length:
65
+ - '45'
66
+ Content-Type:
67
+ - application/json
68
+ body:
69
+ encoding: UTF-8
70
+ string: '{"jsonrpc":"2.0","result":"2.2.2","id":34489}'
71
+ http_version:
72
+ recorded_at: Thu, 14 May 2015 12:14:10 GMT
73
+ - request:
74
+ method: post
75
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
76
+ body:
77
+ encoding: UTF-8
78
+ string: '{"method":"maintenance.exists","params":{"name":"capistrano auto maintenance"},"auth":"0e77b2d8af92d863adf4a492fabaec5f","id":11786,"jsonrpc":"2.0"}'
79
+ headers:
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ Accept:
83
+ - "*/*"
84
+ User-Agent:
85
+ - Ruby
86
+ Content-Type:
87
+ - application/json-rpc
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: OK
92
+ headers:
93
+ Date:
94
+ - Thu, 14 May 2015 04:42:50 GMT
95
+ Server:
96
+ - Apache/2.2.22 (Linux/SUSE)
97
+ X-Powered-By:
98
+ - PHP/5.3.17
99
+ Content-Length:
100
+ - '43'
101
+ Content-Type:
102
+ - application/json
103
+ body:
104
+ encoding: UTF-8
105
+ string: '{"jsonrpc":"2.0","result":false,"id":11786}'
106
+ http_version:
107
+ recorded_at: Thu, 14 May 2015 12:14:10 GMT
108
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,143 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":64158,"jsonrpc":"2.0"}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Content-Type:
17
+ - application/json-rpc
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Thu, 14 May 2015 04:42:50 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Linux/SUSE)
27
+ X-Powered-By:
28
+ - PHP/5.3.17
29
+ Content-Length:
30
+ - '72'
31
+ Content-Type:
32
+ - application/json
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"jsonrpc":"2.0","result":"fbba76cc74de902d341f6304f440d589","id":64158}'
36
+ http_version:
37
+ recorded_at: Thu, 14 May 2015 12:14:10 GMT
38
+ - request:
39
+ method: post
40
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"method":"apiinfo.version","params":{},"auth":"fbba76cc74de902d341f6304f440d589","id":41977,"jsonrpc":"2.0"}'
44
+ headers:
45
+ Accept-Encoding:
46
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
47
+ Accept:
48
+ - "*/*"
49
+ User-Agent:
50
+ - Ruby
51
+ Content-Type:
52
+ - application/json-rpc
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Date:
59
+ - Thu, 14 May 2015 04:42:50 GMT
60
+ Server:
61
+ - Apache/2.2.22 (Linux/SUSE)
62
+ X-Powered-By:
63
+ - PHP/5.3.17
64
+ Content-Length:
65
+ - '45'
66
+ Content-Type:
67
+ - application/json
68
+ body:
69
+ encoding: UTF-8
70
+ string: '{"jsonrpc":"2.0","result":"2.2.2","id":41977}'
71
+ http_version:
72
+ recorded_at: Thu, 14 May 2015 12:14:10 GMT
73
+ - request:
74
+ method: post
75
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
76
+ body:
77
+ encoding: UTF-8
78
+ string: '{"method":"maintenance.create","params":{"name":"capistrano auto maintenance","active_since":1431605450,"active_till":1431692250,"groupids":[2],"timeperiods":[{"period":3600}]},"auth":"fbba76cc74de902d341f6304f440d589","id":39041,"jsonrpc":"2.0"}'
79
+ headers:
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ Accept:
83
+ - "*/*"
84
+ User-Agent:
85
+ - Ruby
86
+ Content-Type:
87
+ - application/json-rpc
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: OK
92
+ headers:
93
+ Date:
94
+ - Thu, 14 May 2015 04:42:50 GMT
95
+ Server:
96
+ - Apache/2.2.22 (Linux/SUSE)
97
+ X-Powered-By:
98
+ - PHP/5.3.17
99
+ Content-Length:
100
+ - '63'
101
+ Content-Type:
102
+ - application/json
103
+ body:
104
+ encoding: UTF-8
105
+ string: '{"jsonrpc":"2.0","result":{"maintenanceids":["15"]},"id":39041}'
106
+ http_version:
107
+ recorded_at: Thu, 14 May 2015 12:14:10 GMT
108
+ - request:
109
+ method: post
110
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
111
+ body:
112
+ encoding: UTF-8
113
+ string: '{"method":"maintenance.exists","params":{"name":"capistrano auto maintenance"},"auth":"fbba76cc74de902d341f6304f440d589","id":83293,"jsonrpc":"2.0"}'
114
+ headers:
115
+ Accept-Encoding:
116
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
117
+ Accept:
118
+ - "*/*"
119
+ User-Agent:
120
+ - Ruby
121
+ Content-Type:
122
+ - application/json-rpc
123
+ response:
124
+ status:
125
+ code: 200
126
+ message: OK
127
+ headers:
128
+ Date:
129
+ - Thu, 14 May 2015 04:42:51 GMT
130
+ Server:
131
+ - Apache/2.2.22 (Linux/SUSE)
132
+ X-Powered-By:
133
+ - PHP/5.3.17
134
+ Content-Length:
135
+ - '42'
136
+ Content-Type:
137
+ - application/json
138
+ body:
139
+ encoding: UTF-8
140
+ string: '{"jsonrpc":"2.0","result":true,"id":83293}'
141
+ http_version:
142
+ recorded_at: Thu, 14 May 2015 12:14:10 GMT
143
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,179 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":82510,"jsonrpc":"2.0"}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Content-Type:
17
+ - application/json-rpc
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Thu, 14 May 2015 05:58:43 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Linux/SUSE)
27
+ X-Powered-By:
28
+ - PHP/5.3.17
29
+ Content-Length:
30
+ - '72'
31
+ Content-Type:
32
+ - application/json
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"jsonrpc":"2.0","result":"758c5132a40395da60544bf2a6c47ad0","id":82510}'
36
+ http_version:
37
+ recorded_at: Thu, 14 May 2015 13:30:02 GMT
38
+ - request:
39
+ method: post
40
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"method":"apiinfo.version","params":{},"auth":"758c5132a40395da60544bf2a6c47ad0","id":60370,"jsonrpc":"2.0"}'
44
+ headers:
45
+ Accept-Encoding:
46
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
47
+ Accept:
48
+ - "*/*"
49
+ User-Agent:
50
+ - Ruby
51
+ Content-Type:
52
+ - application/json-rpc
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Date:
59
+ - Thu, 14 May 2015 05:58:43 GMT
60
+ Server:
61
+ - Apache/2.2.22 (Linux/SUSE)
62
+ X-Powered-By:
63
+ - PHP/5.3.17
64
+ Content-Length:
65
+ - '45'
66
+ Content-Type:
67
+ - application/json
68
+ body:
69
+ encoding: UTF-8
70
+ string: '{"jsonrpc":"2.0","result":"2.2.2","id":60370}'
71
+ http_version:
72
+ recorded_at: Thu, 14 May 2015 13:30:02 GMT
73
+ - request:
74
+ method: post
75
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
76
+ body:
77
+ encoding: UTF-8
78
+ string: '{"method":"maintenance.create","params":{"name":"capistrano auto maintenance","active_since":1431610002,"active_till":1431696802,"groupids":[2],"timeperiods":[{"period":3600}]},"auth":"758c5132a40395da60544bf2a6c47ad0","id":23900,"jsonrpc":"2.0"}'
79
+ headers:
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ Accept:
83
+ - "*/*"
84
+ User-Agent:
85
+ - Ruby
86
+ Content-Type:
87
+ - application/json-rpc
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: OK
92
+ headers:
93
+ Date:
94
+ - Thu, 14 May 2015 05:58:43 GMT
95
+ Server:
96
+ - Apache/2.2.22 (Linux/SUSE)
97
+ X-Powered-By:
98
+ - PHP/5.3.17
99
+ Content-Length:
100
+ - '63'
101
+ Content-Type:
102
+ - application/json
103
+ body:
104
+ encoding: UTF-8
105
+ string: '{"jsonrpc":"2.0","result":{"maintenanceids":["19"]},"id":23900}'
106
+ http_version:
107
+ recorded_at: Thu, 14 May 2015 13:30:02 GMT
108
+ - request:
109
+ method: post
110
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
111
+ body:
112
+ encoding: UTF-8
113
+ string: '{"method":"maintenance.get","params":{"search":{"name":"capistrano
114
+ auto maintenance"}},"auth":"758c5132a40395da60544bf2a6c47ad0","id":66985,"jsonrpc":"2.0"}'
115
+ headers:
116
+ Accept-Encoding:
117
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
118
+ Accept:
119
+ - "*/*"
120
+ User-Agent:
121
+ - Ruby
122
+ Content-Type:
123
+ - application/json-rpc
124
+ response:
125
+ status:
126
+ code: 200
127
+ message: OK
128
+ headers:
129
+ Date:
130
+ - Thu, 14 May 2015 05:58:43 GMT
131
+ Server:
132
+ - Apache/2.2.22 (Linux/SUSE)
133
+ X-Powered-By:
134
+ - PHP/5.3.17
135
+ Content-Length:
136
+ - '62'
137
+ Content-Type:
138
+ - application/json
139
+ body:
140
+ encoding: UTF-8
141
+ string: '{"jsonrpc":"2.0","result":[{"maintenanceid":"19"}],"id":66985}'
142
+ http_version:
143
+ recorded_at: Thu, 14 May 2015 13:30:02 GMT
144
+ - request:
145
+ method: post
146
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
147
+ body:
148
+ encoding: UTF-8
149
+ string: '{"method":"maintenance.delete","params":[19],"auth":"758c5132a40395da60544bf2a6c47ad0","id":96698,"jsonrpc":"2.0"}'
150
+ headers:
151
+ Accept-Encoding:
152
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
153
+ Accept:
154
+ - "*/*"
155
+ User-Agent:
156
+ - Ruby
157
+ Content-Type:
158
+ - application/json-rpc
159
+ response:
160
+ status:
161
+ code: 200
162
+ message: OK
163
+ headers:
164
+ Date:
165
+ - Thu, 14 May 2015 05:58:43 GMT
166
+ Server:
167
+ - Apache/2.2.22 (Linux/SUSE)
168
+ X-Powered-By:
169
+ - PHP/5.3.17
170
+ Content-Length:
171
+ - '61'
172
+ Content-Type:
173
+ - application/json
174
+ body:
175
+ encoding: UTF-8
176
+ string: '{"jsonrpc":"2.0","result":{"maintenanceids":[19]},"id":96698}'
177
+ http_version:
178
+ recorded_at: Thu, 14 May 2015 13:30:02 GMT
179
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,108 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":41380,"jsonrpc":"2.0"}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Content-Type:
17
+ - application/json-rpc
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Thu, 14 May 2015 03:52:12 GMT
25
+ Server:
26
+ - Apache/2.2.22 (Linux/SUSE)
27
+ X-Powered-By:
28
+ - PHP/5.3.17
29
+ Content-Length:
30
+ - '72'
31
+ Content-Type:
32
+ - application/json
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"jsonrpc":"2.0","result":"8760338ef8f6aeed1d347a5d28a6766d","id":41380}'
36
+ http_version:
37
+ recorded_at: Thu, 14 May 2015 11:23:32 GMT
38
+ - request:
39
+ method: post
40
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"method":"apiinfo.version","params":{},"auth":"8760338ef8f6aeed1d347a5d28a6766d","id":28070,"jsonrpc":"2.0"}'
44
+ headers:
45
+ Accept-Encoding:
46
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
47
+ Accept:
48
+ - "*/*"
49
+ User-Agent:
50
+ - Ruby
51
+ Content-Type:
52
+ - application/json-rpc
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Date:
59
+ - Thu, 14 May 2015 03:52:12 GMT
60
+ Server:
61
+ - Apache/2.2.22 (Linux/SUSE)
62
+ X-Powered-By:
63
+ - PHP/5.3.17
64
+ Content-Length:
65
+ - '45'
66
+ Content-Type:
67
+ - application/json
68
+ body:
69
+ encoding: UTF-8
70
+ string: '{"jsonrpc":"2.0","result":"2.2.2","id":28070}'
71
+ http_version:
72
+ recorded_at: Thu, 14 May 2015 11:23:32 GMT
73
+ - request:
74
+ method: post
75
+ uri: http://192.168.56.2/zabbix/api_jsonrpc.php
76
+ body:
77
+ encoding: UTF-8
78
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":"8760338ef8f6aeed1d347a5d28a6766d","id":59523,"jsonrpc":"2.0"}'
79
+ headers:
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ Accept:
83
+ - "*/*"
84
+ User-Agent:
85
+ - Ruby
86
+ Content-Type:
87
+ - application/json-rpc
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: OK
92
+ headers:
93
+ Date:
94
+ - Thu, 14 May 2015 03:52:12 GMT
95
+ Server:
96
+ - Apache/2.2.22 (Linux/SUSE)
97
+ X-Powered-By:
98
+ - PHP/5.3.17
99
+ Content-Length:
100
+ - '72'
101
+ Content-Type:
102
+ - application/json
103
+ body:
104
+ encoding: UTF-8
105
+ string: '{"jsonrpc":"2.0","result":"746ef047a43d32dffc6b5e42fdb87ff8","id":59523}'
106
+ http_version:
107
+ recorded_at: Thu, 14 May 2015 11:23:32 GMT
108
+ recorded_with: VCR 2.9.3