nrpe and check_mailq

Sean McAfee smcafee at collaborativefusion.com
Tue Aug 26 14:25:16 CEST 2008


Kevin Freels wrote:
> *AND* I can run check_mailq on the FreeBSD box as a mortal user (me),
> but not on the Linux box. I did notice that version of Perl on the Linux
> box is 5.8.0, while the working FreeBSD is 5.005. Perl on the FreeBSD is
> also chgrp'd to wheel, not root.

Typically on a FreeBSD system, a non-privledged user exec'ing mailq only 
gives that individual users' queue:


[smcafee at xxxxxxxx ~]$ sudo -H -u nagios mailq
Size             Queue ID                                            Date
User             From
Status           Recipient
---------------- ---------------------------------------------------------
   0 messages.

[smcafee at xxxxxxxx ~]$ sudo mailq
Size             Queue ID                                            Date
User             From
Status           Recipient
---------------- ---------------------------------------------------------
864              00056403.0000000048B2CA20.000132DD                  Aug 
25 11:05
courier          foo at example.com
                 foo at example.com

1.1K             0005641E.0000000048B3AD31.0000B6F7                  Aug 
26 03:13
courier          foo at example.com
                 foo at example.com

1.1K             0005641B.0000000048B3AD26.0000B6F1                  Aug 
26 03:13
courier          foo at example.com
                 foo at example.com

1.1K             00056428.0000000048B3AD31.0000B6FA                  Aug 
26 03:13
courier          foo at example.com
                 foo at example.com

3.1K             000564D8.0000000048B2B6F6.0000EFA8                  Aug 
25 09:43
courier          foo at example.com
                 foo at example.com

3.1K             000564BB.0000000048B2B6F3.0000EF54                  Aug 
25 09:43
courier          foo at example.com
                 foo at example.com

   6 messages.


Sean McAfee
System Engineer

Collaborative Fusion, Inc.
 smcafee at collaborativefusion.com
 412-422-3463 x 4025

5849 Forbes Avenue
Pittsburgh, PA 15217

****************************************************************
IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.
****************************************************************





IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list