[Nagiosplug-devel] [ nagiosplug-New Plugins-1245831 ] check_postfix
SourceForge.net
noreply at sourceforge.net
Wed Aug 3 11:31:01 CEST 2005
New Plugins item #1245831, was opened at 2005-07-27 03:23
Message generated for change (Comment added) made by cinosan
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1245831&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: C plugin
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nicolas Vigot (nicopc)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_postfix
Initial Comment:
This plugin check the size of the mail queue and the age of the
messages. Contrary to the others plugins of monitoring for Postfix,
this one is written in C. It can parse 5 000 mails in one second.
This plugin has two new options :
-W (age limit warning)
-C (age limit critical)
When one or more mails are older than an age limit, an alarm is set
off.
----------------------------------------------------------------------
Comment By: cinosan (cinosan)
Date: 2005-08-03 12:30
Message:
Logged In: YES
user_id=1313358
I added this plug in to the nagios-plugin configure script
and it doesn't compile
make[2]: Entering directory
`/home/alexg/nagios/nagios-plugins-1.4.1/plugins'
gcc -g -O2 -L. -L/usr/lib check_postfix.c -o check_postfix
In file included from check_postfix.c:24:
common.h:35:20: config.h: No such file or directory
In file included from check_postfix.c:24:
common.h:146: error: parse error before "va_list"
common.h:187:21: gettext.h: No such file or directory
In file included from check_postfix.c:25:
popen.h:9: error: parse error before
"popen_timeout_alarm_handler"
popen.h:9: warning: data definition has no type or storage class
In file included from check_postfix.c:26:
utils.h:30: error: parse error before "timeout_alarm_handler"
utils.h:30: warning: data definition has no type or storage
class
utils.h:53: error: redefinition of `struct timeval'
utils.h:60: warning: "struct timezone" declared inside
parameter list
utils.h:60: warning: its scope is only this definition or
declaration, which is probably not what you want
check_postfix.c: In function `main':
check_postfix.c:59: error: `LC_ALL' undeclared (first use in
this function)
check_postfix.c:59: error: (Each undeclared identifier is
reported only once
check_postfix.c:59: error: for each function it appears in.)
check_postfix.c:60: error: `PACKAGE' undeclared (first use
in this function)
check_postfix.c:60: error: `LOCALEDIR' undeclared (first use
in this function)
check_postfix.c:73: error: `SIGALRM' undeclared (first use
in this function)
make[2]: *** [check_postfix] Error 1
make[2]: Leaving directory
`/home/alexg/nagios/nagios-plugins-1.4.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/alexg/nagios/nagios-plugins-1.4.1'
make: *** [all] Error 2
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1245831&group_id=29880
More information about the Devel
mailing list