Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
awit-backstep-traceback
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
awit-backstep-traceback
awit-backstep-traceback
Commits
213e7472
Commit
213e7472
authored
Oct 16, 2018
by
Nigel Kukard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zabbix-retry' into 'master'
Zabbix retry See merge request
!38
parents
7cfe0b89
63e8aff6
Pipeline
#3202
passed with stages
in 1 minute and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
24 deletions
+34
-24
backstep-traceback
backstep-traceback
+34
-24
No files found.
backstep-traceback
View file @
213e7472
#
!/usr/bin/perl
#
backstep
-
traceback
-
Client
software
for
the
AWIT
Backstep
server
#
Copyright
(
c
)
2010
-
201
7
,
AllWorldIT
#
Copyright
(
c
)
2010
-
201
8
,
AllWorldIT
#
#
This
program
is
free
software
:
you
can
redistribute
it
and
/
or
modify
#
it
under
the
terms
of
the
GNU
General
Public
License
as
published
by
...
...
@@ -57,7 +57,7 @@ use Sys::Hostname;
our $VERSION = "1.3.
3
";
our $VERSION = "1.3.
4
";
# Constants
sub LOG_DEBUG { return 5; }
...
...
@@ -2678,7 +2678,9 @@ sub zabbixReport
}
# Check result of close
my ($res,@data) = runCommand(
my $res;
for (my $try = 1; $try < 4; $try++) {
($res,my @data) = runCommand(
"zabbix_sender",
"--config",$globalConfig{'zabbix-config'},
"--with-timestamps",
...
...
@@ -2702,6 +2704,14 @@ sub zabbixReport
if
(
defined
($
data
[
0
])
&&
$
data
[
0
]
ne
""
)
{
printLog
(
LOG_ERROR
,
"ZABBIX: - STDOUT log below
\n
- - - - - - - - - -
\n
%s
\n
- - - - - - - - - -
\n
"
,$
data
[
0
]);
}
#
Retry
printLog
(
LOG_ERROR
,
"ZABBIX: - Retrying... #$try"
);
sleep
(
10
);
#
Success
}
else
{
last
;
}
}
return
$
res
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment