Skip to content

Instantly share code, notes, and snippets.

View deivisonmoraes's full-sized avatar

Deivison Moraes deivisonmoraes

View GitHub Profile
@seungjin
seungjin / gist:1546284
Created January 1, 2012 04:51
zabbix api connection
#curl -i -X POST -H 'Content-Type: application/json' -d '{"params": {"password": "mypassword", "user": "myuser"}, "jsonrpc": "2.0", "method": "user.authenticate"}' http://0.0.0.0/zabbix/api_jsonrpc.php
require 'net/http'
require 'json'
def post
host = '0.0.0.0'
port = '80'