[SOLVED]Send alert when a device is added or deleted

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
eholz1
Cacti User
Posts: 165
Joined: Mon Oct 01, 2018 10:09 am

[SOLVED]Send alert when a device is added or deleted

#1 Post by eholz1 » Tue Nov 26, 2019 3:23 pm

Hello All,

Is there a way in cacti to detect if a device is added or deleted?

This is a sort of FYI. I have two (2) servers, production, and backup. Yes, both for cacti.
I have actually been able to configure both servers for multi-threaded replication.

It has been working for a while now.

I am using RH7.7, cacti-1.2.7, and mysql80 (from the rhscl)
The databases are more or less identical, with the exception that the poller is not running
on the slave.

I was wondering if cacti has a feature to send an alert when a device is added or deleted?
I thought about adding a trigger the the stock cacti database, but perhaps that would be boldly going
where i Should Not!

Thanks,

eholz1
Last edited by eholz1 on Wed Nov 27, 2019 11:58 am, edited 1 time in total.

netniV
Cacti Guru User
Posts: 3132
Joined: Sun Aug 27, 2017 12:05 am

Re: Send alert when a device is added or deleted

#2 Post by netniV » Tue Nov 26, 2019 8:21 pm

You can create a plugin that hooks into "device_remove" and 'api_device_save'

eholz1
Cacti User
Posts: 165
Joined: Mon Oct 01, 2018 10:09 am

[SOLVED]Re: Send alert when a device is added or deleted

#3 Post by eholz1 » Wed Nov 27, 2019 11:57 am

Hello netiV ,

Whoa! now that would take some time! I will take it under consideration!

thanks again for a pretty good open source product!

eholz1

netniV
Cacti Guru User
Posts: 3132
Joined: Sun Aug 27, 2017 12:05 am

Re: [SOLVED]Send alert when a device is added or deleted

#4 Post by netniV » Wed Nov 27, 2019 6:18 pm

Not that long, you can probably knock that up within a few hours, may be a day. Some of my other personal plugins for cacti have been created for people who've commissioned a plugin that way such as tholdlists and tokenauth.

Post Reply