From owner-freebsd-questions@FreeBSD.ORG Thu Feb 2 22:17:29 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7455C16A420 for ; Thu, 2 Feb 2006 22:17:29 +0000 (GMT) (envelope-from lists@webtent.net) Received: from columbus.webtent.org (static-70-110-70-43.tampfl.fios.verizon.net [70.110.70.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30BA543D45 for ; Thu, 2 Feb 2006 22:17:28 +0000 (GMT) (envelope-from lists@webtent.net) Received: from localhost (localhost [127.0.0.1]) by linux.local (Postfix) with ESMTP id B97A5CFAB7 for ; Thu, 2 Feb 2006 16:51:38 -0500 (EST) From: Robert Fitzpatrick To: FreeBSD Content-Type: text/plain Date: Thu, 02 Feb 2006 16:51:38 -0500 Message-Id: <1138917098.25158.53.camel@columbus> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1 Content-Transfer-Encoding: 7bit Subject: Running custom command via Nagios X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: robert@webtent.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2006 22:17:29 -0000 I have the Nagios port installed on my FreeBSD 5.4 server and trying to use a custom command. I can run from the command line with no problem, but when Nagios is configured to use the command, which is a sendmail script, I get this error in /var/log/messages: Feb 2 16:39:03 esmtp kernel: pid 40443 (nagios), uid 2004: exited on signal 10 I am trying a sendmail script to allow me to send messages via an off-the-box SMTP server while monitoring Amavisd-new. So if Amavis does go down, I'll still get the message. I even made a simple little shell script that writes to a file and that doesn't work either. How can I run this script in the same context as Nagios to test from the commandline? -- Robert