… | |
… | |
50 | retry_min => $seconds (default: 30) |
50 | retry_min => $seconds (default: 30) |
51 | retry_max => $seconds (default: 300) |
51 | retry_max => $seconds (default: 300) |
52 | The minimum and maximum retry times when the server cannot be |
52 | The minimum and maximum retry times when the server cannot be |
53 | reached. |
53 | reached. |
54 | |
54 | |
55 | on_error => $cb->(\@items, $msg) (default: log and continue) |
55 | on_error => $cb->($zbx, \@items, $msg) (default: log and continue) |
56 | Called on any protocol errors - these generally indicate that |
56 | Called on any protocol errors - these generally indicate that |
57 | something other than a zabbix server is running on a port. The |
57 | something other than a zabbix server is running on a port. The |
58 | given key-value pairs are the lost items. |
58 | given key-value pairs are the lost items. |
59 | |
59 | |
60 | on_loss => $cb->(\@items) (default: not called) |
60 | on_loss => $cb->$zbx, (\@items) (default: log and continue) |
61 | Will be called when some data items are thrown away (this |
61 | Will be called when some data items are thrown away (this |
62 | happens if the server isn't reachable for at least "queue_time" |
62 | happens if the server isn't reachable for at least "queue_time" |
63 | seconds), |
63 | seconds), |
64 | |
64 | |
65 | on_response => $cb->(\@items, \%response) (default: not called) |
65 | on_response => $cb->$zbx, (\@items, \%response) (default: not |
|
|
66 | called) |
66 | Will be called with the (generally rather useless) response form |
67 | Will be called with the (generally rather useless) response form |
67 | the zabbix server. |
68 | the zabbix server. |
68 | |
69 | |
69 | $zbx->submit ($k, $v[, $clock[, $host]]) |
70 | $zbx->submit ($k, $v[, $clock[, $host]]) |
70 | Submits a new key-value pair to the zabbix server. If $clock is |
71 | Submits a new key-value pair to the zabbix server. If $clock is |