mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
smart-v1: send useSN value along in the data (#480)
* send useSN along in the data * remove a extra ,
This commit is contained in:
committed by
GitHub
parent
6af12e74b8
commit
4778070b90
@@ -187,13 +187,6 @@ if ( !$opts{g} ) {
|
||||
}
|
||||
}
|
||||
|
||||
my $to_return = {
|
||||
data => { disks => {}, exit_nonzero => 0, unhealthy => 0, },
|
||||
version => 1,
|
||||
error => 0,
|
||||
errorString => '',
|
||||
};
|
||||
|
||||
#
|
||||
#
|
||||
# guess if asked
|
||||
@@ -550,6 +543,12 @@ if ( !defined( $opts{u} ) ) {
|
||||
# Process each disk
|
||||
#
|
||||
#
|
||||
my $to_return = {
|
||||
data => { disks => {}, exit_nonzero => 0, unhealthy => 0, useSN => $useSN },
|
||||
version => 1,
|
||||
error => 0,
|
||||
errorString => '',
|
||||
};
|
||||
foreach my $line (@disks) {
|
||||
my $disk;
|
||||
my $name;
|
||||
|
||||
Reference in New Issue
Block a user