nagios init script error

Horvath Tamas zsitfa at axelero.hu
Thu Aug 12 20:14:56 CEST 2004


Hi!

I use Nagios 1.2 on Debian Woody 3.1. Sometimes I use

When I use /etc/init.d/nagios script with start or restart option the 
script does what I told it, but I get the following error message:

"Starting network monitor: nagios

su: invalid option -- l
Usage: su [OPTS] [-] [username [ARGS]]
	-	make this a login shell
	-c, --command=<command>
		pass command to the invoked shell using its -c
		option
       -m, -p, --preserve-environment
		do not reset environment variables, and keep the
		same shell
       -s, --shell=<shell>
		use shell instead of the default in /etc/passwd
  PID TTY          TIME CMD
 2659 ?        00:00:00 nagios"


This message apper becase of that line in init script:

su -l $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav"

As I see in su manpage there is no "l" option. As I guess this tell the user for the su command, but how can I solve this issue?

Thanks in advance, Tamas!





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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