Exemplo n.º 1
0
 public ZabbixAPI(string url, string user, string pass)
 {
     serializer.MaxJsonLength = 16777216;
     _url       = url;
     _username  = user;
     _password  = pass;
     triggers   = new Triggers(this);
     hosts      = new Hosts(this);
     hostgroups = new HostGroups(this);
     mainThread = new Thread(getInfo);
 }
Exemplo n.º 2
0
 public ZabbixConnection(string api_url, string user, string password)
 {
     _user       = user;
     _password   = password;
     ServerRoot  = api_url;
     url         = ServerRoot + @"/api_jsonrpc.php";
     hostgroups  = new HostGroups(this);
     maps        = new Maps(this);
     triggers    = new Triggers(this);
     events      = new Events(this);
     firstThread = new Thread(getFirstInfo);
     longThread  = new Thread(getInfo);
 }