Setting $NOTIFICATIONCOMMENT$ from shell script, how?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
eltrasimaco
Posts: 75
Joined: Thu Aug 02, 2012 7:15 am

Setting $NOTIFICATIONCOMMENT$ from shell script, how?

Post by eltrasimaco »

My email sender command has a $NOTIFICATIONCOMMENT$ macro after the "Notes:" tag; I would like to fill that macro with extended information when some service fails, i have a shell script that outputs some info (it appears both in the email notification and in the web interface); is there any way add information in the "Notes" field (passing string values to $NOTIFICATIONCOMMENT$ ) without enabling environment variable macros

?
TIA
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Setting $NOTIFICATIONCOMMENT$ from shell script, how?

Post by tmcdonald »

Barring some arcane corner of the Core code I am unfamiliar with, I believe macros are a one-way street from Core to the script.
Former Nagios employee
Locked