wip discovery f3
Former-commit-id: 6b9f5bc3995a16414e1c1a9201983f33eb6908ad
This commit is contained in:
parent
970a10ba50
commit
b9db5fdb6f
|
@ -1468,10 +1468,10 @@ sub db_scan($) {
|
||||||
call('message', 'Cannot connect to target ' . $target, 3);
|
call('message', 'Cannot connect to target ' . $target, 3);
|
||||||
$self->{'summary'}->{'not_alive'} += 1;
|
$self->{'summary'}->{'not_alive'} += 1;
|
||||||
push @modules, {
|
push @modules, {
|
||||||
name => 'mysql_connection',
|
name => $type . ' connection',
|
||||||
type => 'generic_proc',
|
type => 'generic_proc',
|
||||||
data => 0,
|
data => 0,
|
||||||
description => 'MySQL availability'
|
description => $type . ' availability'
|
||||||
};
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -1481,10 +1481,10 @@ sub db_scan($) {
|
||||||
$self->{'summary'}->{'alive'} += 1;
|
$self->{'summary'}->{'alive'} += 1;
|
||||||
|
|
||||||
push @modules, {
|
push @modules, {
|
||||||
name => 'mysql_connection',
|
name => $type . ' connection',
|
||||||
type => 'generic_proc',
|
type => 'generic_proc',
|
||||||
data => 1,
|
data => 1,
|
||||||
description => 'MySQL availability'
|
description => $type . ' availability'
|
||||||
};
|
};
|
||||||
|
|
||||||
# Analyze.
|
# Analyze.
|
||||||
|
@ -1527,11 +1527,12 @@ sub db_scan($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Put engine agent at the beginning of the list.
|
# Put engine agent at the beginning of the list.
|
||||||
|
my $version = $dbObj->get_version();
|
||||||
unshift @data,{
|
unshift @data,{
|
||||||
'agent_data' => {
|
'agent_data' => {
|
||||||
'agent_name' => $dbObj->get_agent_name(),
|
'agent_name' => $dbObj->get_agent_name(),
|
||||||
'os' => $type,
|
'os' => $type,
|
||||||
'os_version' => 'Discovery',
|
'os_version' => (defined($version) ? $version : 'Discovery'),
|
||||||
'interval' => $self->{'task_data'}->{'interval_sweep'},
|
'interval' => $self->{'task_data'}->{'interval_sweep'},
|
||||||
'id_group' => $self->{'task_data'}->{'id_group'},
|
'id_group' => $self->{'task_data'}->{'id_group'},
|
||||||
'address' => $dbObj->get_host(),
|
'address' => $dbObj->get_host(),
|
||||||
|
|
Loading…
Reference in New Issue