Search found 5 matches

by bwatsonfc
Thu Jul 08, 2021 12:37 am
Forum: Nagios XI
Topic: Separate notification email for specific service
Replies: 9
Views: 620

Re: Separate notification email for specific service

Thank you. I was able to use the -r option to specify the from address and modified the body of the email to match the default XI notification other than the added statements regarding uptime. I had to modify my variables as well, it appears that $NOTIFICATIONTYPE$ is not passed to the event handler...
by bwatsonfc
Wed Jul 07, 2021 12:56 pm
Forum: Nagios XI
Topic: Separate notification email for specific service
Replies: 9
Views: 620

Re: Separate notification email for specific service

As soon as I hard-coded the email in the script then it worked, so I suspect the script is functioning as expected. Some of the information came through oddly, but I think that may be due to my numbering on the variables. The email however came from a different address then my normal alert emails. I...
by bwatsonfc
Tue Jul 06, 2021 5:37 pm
Forum: Nagios XI
Topic: Separate notification email for specific service
Replies: 9
Views: 620

Re: Separate notification email for specific service

I see no failures in /var/log/maillog only the success message for the standard/generic service warning email so I assume the script isn't processing correctly to call sendmail? mta - status is auto. link currently points to /usr/sbin/sendmail.postfix /usr/sbin/sendmail.postfix - priority 30 slave m...
by bwatsonfc
Tue Jul 06, 2021 12:16 am
Forum: Nagios XI
Topic: Separate notification email for specific service
Replies: 9
Views: 620

Re: Separate notification email for specific service

I've been trying to follow the instructions from the above link. I have created the command "uptime-event-handler" with command line $USER1$/uptime-event-handler.sh $SERVICESTATE$ $SERVICESTATETYPE$ $NOTIFICATIONTYPE$ $SERVICEDESC$ $HOSTALIAS$ $HOSTADDRESS$ $LONGDATETIME$ $SERVICEOUTPUT$ $...
by bwatsonfc
Tue Jun 29, 2021 3:37 pm
Forum: Nagios XI
Topic: Separate notification email for specific service
Replies: 9
Views: 620

Separate notification email for specific service

I'm trying to send a specific email for a specific service rather then the default/global service notification template. I have configured the following check for Uptime check_xi_service_snmp! -o 'sysUpTime.0' -C 'community' -P 2c -l Uptime -w 0:4294607296 -c 25920000:0 The goal here being, when it ...