Am Montag, 20. Juli 2009 16:36:56 schrieb Marc Powell: > On Jul 20, 2009, at 8:03 AM, Michael Schwartzkopff wrote: > > my command definition is: > > > > define command{ > > command_name notify-netappvol-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > > $SERVICEDESC$\nHost: $HOSTNAME$ ($HOSTALIAS$)\nAddress: > > $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nWebsite: > > http://cpwa-nagios05-t/nagios/nagvis/nagvis/index.php?map=$HOSTNAME$ > > \n\n > > Is escalated: $NOTIFICATIONISESCALATED$\n\nService > > ChecksNotification number: > > $SERVICENOTIFICATIONNUMBER$" | /bin/mail -r "Nagios > > 05 test <nagios-nore...@xxx.de>" -s "** $NOTIFICATIONTYPE$ Service > > Alert: $HOSTNAME$ ($HOSTALIAS$)/$SERVICEDESC$ is $SERVICESTATE$ **" > > $CONTACTEMAIL$ > > } > > Looks good. > > > nagios version 3.0.6 > > And replicated with nagios-HEAD. Try the attached patch. It adds one > line to initialize the macro. I _think_ that's what it is; at least > the macro populates now but I can't test the escalated part of it > without jumping through a lot of hoops. I've submitted it to > tracker.nagios.org for you just in case there's more to it. > > http://tracker.nagios.org/view.php?id=61 > > -- > Marc > > > --------------------------------------------------------------------------- >--- Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Nagios-users mailing list > Nagios-users@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
Thanks for your fast reaction. I am sorry that I will be able to test your patch since I am just doing the monitoring on some preconfigured machine in a bis environment. So no chance to comile my own nagios. Greetings, -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: mi...@multinet.de web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht München HRB 114375 Geschäftsführer: Günter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Nagios-users mailing list Nagios-users@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