[Nagiosplug-help] check_radius problem
Viktor Steinmann
viktor.steinmann at ch.easynet.net
Tue Jul 20 01:34:00 CEST 2004
Maybe this is unusual, but I'll answer my own question after troubleshooting
for 3 more hours...
First of all - stupid mistake - but it can happen to anyone using FreeBSD and
compiling everything from the ports...
The default file permission of the file /usr/local/etc/radiusclient/servers
when installed from the ports is -rw------- and that's the problem. When
testing from the command line, I tested with root, who of course can read
that file and that's why I get the status "auth OK".
Later on I tested with the user 'nagios', who runs the tests - and it created
core dumps and/or errors. After changing the file permission of that file to
-rw-r--r--, it suddenly worked out quit well :-)
Maybe it would be a good idea to put this in the FAQ - because while browing
the sourceforge mails, I saw that someone else had exactly the same problem a
few months ago...
Regards,
Viktor
On Dienstag, 20. Juli 2004 07.28, Viktor Steinmann wrote:
> Hi all
>
> check_radius gives "auth OK" on the command line - but not from Nagios...
> I'm puzzled...
>
> Here's the service definition:
>
> define service{
> use fulltime-warnings
> host_name radius-server
> service_description RADIUS
> check_command
> check_radius!nagiosusertest at dslnet.ch!passwordhere
> }
>
>
> Here's the check command:
>
> # 'check_radius' command definition
> define command{
> command_name check_radius
> command_line $USER1$/check_radius -H $HOSTADDRESS$ -F
> /usr/local/etc/
> radiusclient/radiusclient.conf -u $ARG1$ -p $ARG2$ -P 1812 -t 10
> }
>
> Anyone with an idea?
>
> Thanks,
> Viktor
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> 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