Skip to content

Commit d812058

Browse files
committed
agents: use critical exit code for parent check
1 parent 9557357 commit d812058

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugins/plugins-available/agents/lib/Thruk/Agents/SNClient.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ sub _extract_checks {
436436
}
437437
my $proto = "https";
438438
$proto = "http" if($mode && $mode eq 'http');
439-
my $command = sprintf("check_snclient!%s -p '%s' -u '%s://%s:%s' '%s'",
439+
my $command = sprintf("check_snclient!%s %s -p '%s' -u '%s://%s:%s' '%s'",
440440
_check_nsc_web_extra_options($c, $mode),
441+
($chk->{'nscweb'} // ''),
441442
$svc_password,
442443
$proto,
443444
'$HOSTADDRESS$',

plugins/plugins-available/agents/lib/Thruk/Agents/SNClient/Checks/Base.pm

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ sub get_checks {
3939
'id' => 'version',
4040
'name' => 'agent version',
4141
'check' => 'check_snclient_version',
42+
'nscweb' => '-e CRITICAL',
4243
};
4344

4445
if($inventory->{'uptime'}) {

0 commit comments

Comments
 (0)