check_mailq compilation errors

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
robotto
Posts: 10
Joined: Sun Sep 22, 2013 12:08 am

check_mailq compilation errors

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: check_mailq compilation errors

Post 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.
robotto
Posts: 10
Joined: Sun Sep 22, 2013 12:08 am

Re: check_mailq compilation errors

Post by robotto »

Perfect.

old code line 38:

Code: Select all

my ($sudo)
new code:

Code: Select all

my ($sudo);
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_mailq compilation errors

Post by tmcdonald »

Gonna close 'er up!
Former Nagios employee
Locked