diff --git a/check_postgres.pl b/check_postgres.pl index 9c8a3d2f..3ae717c4 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -749,8 +749,9 @@ sub ndie { eval { File::Temp::cleanup(); }; my $msg = shift; chomp $msg; - print "ERROR: $msg\n"; - exit 3; + add_critical("ERROR: $msg"); + finishup(); + exit 2; } sub msg { ## no critic
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: