Device Notification Options: Subject editing with tags (<NOTES>)

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
zs31s
Posts: 3
Joined: Mon Nov 14, 2022 1:51 pm
Location: Canada

Device Notification Options: Subject editing with tags (<NOTES>)

Post by zs31s »

Hi all,

I got some issues with the tags (<NOTES>) when using on Email subject. I try to use the tag:<NOTES> for showing the site of the devices.
However, the tag works on the Message body not for the Subject. (Please refer to the setting & the captured)

I would like to showing the Site on Email Subject. Right now I just using the NOTES tag for showing the information on Email Subject ad Message.

Please find my captured and setting as below.

Device Notification Options: Subject editing with tags (<NOTES>)
Setting:
Setting on CACTI
Setting on CACTI
setting_subject_message_CACTI.jpg (114.98 KiB) Viewed 997 times
Down Subject:
Device Error: Site- <NOTES> - <DESCRIPTION> (<HOSTNAME>) is DOWN

Down Message:
System Error: Site- <NOTES> - <DESCRIPTION> (<HOSTNAME>) is <DOWN/UP><br>Reason: <MESSAGE><br><br>Average system response: <AVG_TIME> ms<br>System availability: <AVAILABILITY><br>Total Checks Since Clear: <TOT_POLL><br>Total Failed Checks: <FAIL_POLL><br>Last Date Checked DOWN : <LAST_FAIL><br>Device Previously UP for: <DOWNTIME>

Logs:
Logs for sent Email
Logs for sent Email
logs_CACTI.jpg (258.88 KiB) Viewed 997 times
2023-01-03 10:16:17 - MAILER INFO: Mail successfully sent via SMTP from 'Cacti <REMOVED>', to 'REMOVED', cc '', and took 0.14 seconds, Subject 'Device Notice: Site- - cs-960quayside-swtemp (REMOVED) returned from DOWN state'
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Device Notification Options: Subject editing with tags (<NOTES>)

Post by TheWitness »

You might want to log this in GitHub under the Thold plugin. It's literally a one line change pretty sure.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
zs31s
Posts: 3
Joined: Mon Nov 14, 2022 1:51 pm
Location: Canada

Re: Device Notification Options: Subject editing with tags (<NOTES>)

Post by zs31s »

TheWitness wrote: Tue Jan 03, 2023 4:23 pm You might want to log this in GitHub under the Thold plugin. It's literally a one line change pretty sure.
Thanks TheWitness,
I will try log this on GitHub
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Device Notification Options: Subject editing with tags (<NOTES>)

Post by TheWitness »

It's fixed
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
zs31s
Posts: 3
Joined: Mon Nov 14, 2022 1:51 pm
Location: Canada

Re: Device Notification Options: Subject editing with tags (<NOTES>)

Post by zs31s »

TheWitness wrote: Tue Jan 03, 2023 8:24 pmIt's fixed
Thanks TheWitness
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests