From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 6 14:40:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB71516A41B for ; Wed, 6 Feb 2008 14:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B18F013C447 for ; Wed, 6 Feb 2008 14:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m16Ee1oV067605 for ; Wed, 6 Feb 2008 14:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m16Ee1Vk067604; Wed, 6 Feb 2008 14:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 6 Feb 2008 14:40:01 GMT Resent-Message-Id: <200802061440.m16Ee1Vk067604@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Piotr Matuszczyk Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB49E16A417 for ; Wed, 6 Feb 2008 14:39:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 902FE13C458 for ; Wed, 6 Feb 2008 14:39:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m16Ebdqn014859 for ; Wed, 6 Feb 2008 14:37:39 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m16Ebdms014858; Wed, 6 Feb 2008 14:37:39 GMT (envelope-from nobody) Message-Id: <200802061437.m16Ebdms014858@www.freebsd.org> Date: Wed, 6 Feb 2008 14:37:39 GMT From: Piotr Matuszczyk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/120320: Mistake in sample config file from nagios port. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 14:40:02 -0000 >Number: 120320 >Category: conf >Synopsis: Mistake in sample config file from nagios port. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 06 14:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Piotr Matuszczyk >Release: FreeBSD 6.2-RELEASE-p7 >Organization: Expro Sp. z o.o. >Environment: FreeBSD cemetery.expro.dmz 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #1: Tue Dec 4 12:26:18 CET 2007 root@cemetery.expro.dmz:/usr/obj/usr/src/sys/CEMETERY amd64 >Description: When I installed the nagios port, there are come from this port some sample config files. In file 'command.conf-sample' thereis 'SAMPLE NOTIFICATION COMMANDS' section. In this section there is sample command to notify by e-mail: ---cut here--- define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 2.10 *****\n\nNotification Type: $NOTIFICATIONTYP E$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATE TIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } ---cut here--- ---cut here--- define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 2.10 *****\n\nNotification Type: $NOTIFICATIONTYP E$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTA LIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } ---cute here--- In this two commands there is mistake "/bin/mail". In FreeBSD 6.2-Release 'mail' command is in /usr/bin/ location. >How-To-Repeat: >Fix: Aplly a patch to correct this wrong path to 'mail' program. >Release-Note: >Audit-Trail: >Unformatted: