Date: Wed, 6 Feb 2008 14:37:39 GMT From: Piotr Matuszczyk <piotr@mll.pl> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/120320: Mistake in sample config file from nagios port. Message-ID: <200802061437.m16Ebdms014858@www.freebsd.org> Resent-Message-ID: <200802061440.m16Ee1Vk067604@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802061437.m16Ebdms014858>