mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 12:02:14 +00:00
Status: report errors on socket creation problems
If the socket couldn't be created (e.g. FQDN not resolvable) we continued witouth any hint, when actualy writing the data we then die'd. The user then does not really know why, so report errors if the socket creation failed. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4caf47e9e2
commit
f014da61c5
@ -72,7 +72,7 @@ sub write_graphite_hash {
|
||||
PeerAddr => $host,
|
||||
PeerPort => $port,
|
||||
Proto => 'udp',
|
||||
);
|
||||
) || die "couldn't create carbon socket [$host]:$port - $@\n";
|
||||
|
||||
write_graphite($carbon_socket, $d, $ctime, $path.".$object");
|
||||
|
||||
|
@ -92,7 +92,7 @@ sub write_influxdb_hash {
|
||||
PeerAddr => $host,
|
||||
PeerPort => $port,
|
||||
Proto => 'udp',
|
||||
);
|
||||
) || die "couldn't create influxdb socket [$host]:$port - $@\n";
|
||||
|
||||
$socket->send($payload->{string});
|
||||
$socket->close() if $socket;
|
||||
|
Loading…
Reference in New Issue
Block a user