From owner-freebsd-questions@FreeBSD.ORG Tue Apr 10 15:20:48 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0388C16A400 for ; Tue, 10 Apr 2007 15:20:48 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id D3D7213C46E for ; Tue, 10 Apr 2007 15:20:47 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 24627 invoked from network); 10 Apr 2007 15:20:47 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Apr 2007 15:20:47 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id D0FB828434; Tue, 10 Apr 2007 11:20:45 -0400 (EDT) To: Alireza Iranbodi References: <374683.74337.qm@web53012.mail.re2.yahoo.com> From: Lowell Gilbert Date: Tue, 10 Apr 2007 11:20:45 -0400 In-Reply-To: <374683.74337.qm@web53012.mail.re2.yahoo.com> (Alireza Iranbodi's message of "Mon\, 9 Apr 2007 00\:45\:41 -0700 \(PDT\)") Message-ID: <44veg4ntma.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Freebsd Shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 15:20:48 -0000 Alireza Iranbodi writes: > I'm using Argus-Monitroing port to monitor servers on > my network, > Argus can run custom command when server went down > with using something like this in config file : > > Method "sendim" { > command: /bin/echo %M | /usr/local/bin/sendxmpp -u AAA > -p BBB -j A.B.C.D %R > } > > A.B.C.D is my jabber server > > as you can see argus sends %M for message and %R for > recip. > > Evrytime i run manually in shell it's ok,but when > argus itself running = nothing . > I setup linux box (FC6) and use same config everything > running fine. > I got same problem with Cacti monitoring on freebsd to > ! > > I want to know is there any different between linux > shell and bsd ? > or any suggestion? > > My OS = Freebsd 6.2 There are significant differences between shells, but that command should be fine under any shell I can think of. You could try adding some debugging information to the script you run from argus, to see if the command is getting called at all.