Page 1 of 1

check_mailq compilation errors

Posted: Sat Aug 22, 2015 11:42 am
by robotto
Hello,

after Installation nagios-plugins version 2.1.1 I get the following error message at check_mailq.

Code: Select all

root@server:/usr/local/nagios/libexec# ./check_mailq
syntax error at ./check_mailq line 40, near ")

sub print_help ()"
Execution of ./check_mailq aborted due to compilation errors.
OS: Debian 7.8

Re: check_mailq compilation errors

Posted: Mon Aug 24, 2015 10:04 am
by jdalrymple
Using this code?

https://github.com/nagios-plugins/nagio ... k_mailq.pl

Looks to me like line 38 is missing a semicolon. I'll put an issue on github.

Re: check_mailq compilation errors

Posted: Mon Aug 24, 2015 1:17 pm
by robotto
Perfect.

old code line 38:

Code: Select all

my ($sudo)
new code:

Code: Select all

my ($sudo);

Re: check_mailq compilation errors

Posted: Mon Aug 24, 2015 1:22 pm
by tmcdonald
Gonna close 'er up!