Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
2d583b7b
Verified
Commit
2d583b7b
authored
Apr 07, 2018
by
Florian Pritz
Browse files
nginx-zabbix: Add debug output for die()
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
9c27c789
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/zabbix-agent/files/nginx-zabbix.pl
View file @
2d583b7b
...
...
@@ -18,6 +18,10 @@ my @nginx_log_file_paths = glob("/var/log/nginx/*-access.log /var/log/nginx/*/ac
@nginx_log_file_paths
=
("
./test-access.log
")
if
$devmode
;
#$SIG{PIPE} = 'IGNORE';
$SIG
{
DIE
}
=
sub
{
print
STDERR
"
Should be dying now
\n
";
exit
(
2
);
};
sub
trim
{
my
$str
=
shift
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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