projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3cad66
)
insert 0 for vlan if unknown
author
root
<root@localhost.localdomain>
Tue, 23 May 2017 07:31:42 +0000
(09:31 +0200)
committer
root
<root@localhost.localdomain>
Tue, 23 May 2017 07:31:42 +0000
(09:31 +0200)
gnt-monitor
patch
|
blob
|
history
diff --git
a/gnt-monitor
b/gnt-monitor
index
3a1973f
..
368d362
100755
(executable)
--- a/
gnt-monitor
+++ b/
gnt-monitor
@@
-176,6
+176,7
@@
foreach my $instance ( keys %$stat ) {
foreach my $nic ( @{ $stat->{$instance}->{nic} } ) {
my $vlan = delete $nic->{vlan};
+ $vlan = 0 unless defined $vlan;
print $fh qq{ganeti_nic,node=$node,instance=$instance,vlan=${vlan}$location },dump4influx( $nic ), " $t\n";
}