[Nagiosplug-help] check_mailq
Robert Cole
robert.cole at support4linux.com
Wed Aug 29 20:20:57 CEST 2007
Permissions was the problem but I notice that the permissions in
the/var/spool/mqueue directory are 600 with ownership of root:smmsp I
made the nagios user a member of mail and smmsp but I keep having to go
to the mqueue directory and changing the permissions to 640 to make it
work. Is there any way of making the system create new mail queue
directories with 640 permissions?
Thanks,
Robert
Peter Ringe wrote:
> Permission Problems?
>
> Try to run mailq as nagiosuser on yout RHEL 5 host. I have had the same
> 'problem' on RHEL 4.
> If permissions are the problem, you could use sudo
>
> regards,
>
> Peter
>
>
> Robert Cole schrieb:
>> I'm running plugins 1.4.9 and nrpe 2.8.1 on a RHEL 5 64bit host and
>> the check mailq seems to work fine on the local host:
>>
>> [root at mail001 ~]# /usr/local/nagios/libexec/check_mailq -w 20 -c 50
>> OK: mailq (17) is below threshold (20/50)|unsent=17;20;50;0
>> [root at mail001 ~]#
>>
>> But when I try it from nrpe from the nagios server I get this:
>>
>> ms1 ~ # /usr/nagios/libexec/check_nrpe -H mail001 -c check_mailq
>> CRITICAL: Error code 78 returned from /usr/bin/mailq
>> ms1 ~ # nano -w /etc/nagios/commands.cfg
>>
>> I've done some googling but can't seem to come up with anything.
>>
>> The nagios system isn't a 64 bit OS but I don't think that makes a
>> difference sense I'm passing through nrpe. There are other nrpe checks
>> that work just fine on this host.
>>
>> Anyone have any ideas?
>>
>> Thanks,
>> Robert
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Nagiosplug-help mailing list
>> Nagiosplug-help at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>> ::: Please include plugins version (-v) and OS when reporting any
>> issue. ::: Messages without supporting info will risk being sent to
>> /dev/null
>>
>>
>
>
>
More information about the Help
mailing list