Device notification options (Down/Up email) - add Device Site Association

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
enrikio
Posts: 14
Joined: Wed Jan 10, 2024 8:32 am

Device notification options (Down/Up email) - add Device Site Association

Post by enrikio »

I would like to add "Device Site Association" in preconfigured Down/Up messages in Alerting tab in settings. I tried some combinations of tags in both Down subject and down message but nothing shows up in e-mail:
<SITE>
<DEVICE_SITE_ASSOCIATION>
<DEVICE SITE ASSOCIATION>
<SITE_ASSOCIATION>
<SITE ASSOCIATION>

Any suggestions how I can define Device Site or find how this variable is stored in Cacti?
Attachments
DeviceSite.png
DeviceSite.png (95.59 KiB) Viewed 1060 times
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Device notification options (Down/Up email) - add Device Site Association

Post by macan »

I see In thold code <SITENAME> and <SITE>

Try it
Let the Cacti grow!
enrikio
Posts: 14
Joined: Wed Jan 10, 2024 8:32 am

Re: Device notification options (Down/Up email) - add Device Site Association

Post by enrikio »

Sadly this doesn't work.Tried both.. Any other suggestions?
Attachments
DevSite1.png
DevSite1.png (14.87 KiB) Viewed 1055 times
DevSite.png
DevSite.png (18.26 KiB) Viewed 1055 times
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Device notification options (Down/Up email) - add Device Site Association

Post by macan »

Ok, I will revise thold code for this
Let the Cacti grow!
enrikio
Posts: 14
Joined: Wed Jan 10, 2024 8:32 am

Re: Device notification options (Down/Up email) - add Device Site Association

Post by enrikio »

Thanks! Please keep me updated.
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Device notification options (Down/Up email) - add Device Site Association

Post by macan »

which thold version?
Let the Cacti grow!
enrikio
Posts: 14
Joined: Wed Jan 10, 2024 8:32 am

Re: Device notification options (Down/Up email) - add Device Site Association

Post by enrikio »

I am using latest release Thold 1.5.2 from github: https://github.com/Cacti/plugin_thold
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Device notification options (Down/Up email) - add Device Site Association

Post by macan »

I have tested it with actual thold version (develop branch from github) and it is working (<SITE>):
NOTE:
Device Notes:
Site: testovaci1
Let the Cacti grow!
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Device notification options (Down/Up email) - add Device Site Association

Post by macan »

please update to 1.8 (actual develop branch) and use <SITE>
Let the Cacti grow!
enrikio
Posts: 14
Joined: Wed Jan 10, 2024 8:32 am

Re: Device notification options (Down/Up email) - add Device Site Association

Post by enrikio »

Thank you!!! Using Thold 1.8 works with tag <SITE>. I now get name of defined site on mail when device is up/down.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Device notification options (Down/Up email) - add Device Site Association

Post by Osiris »

Cool. One pull request to review before release.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests