Cacti / plugin_monitor

Monitor Plugin for Cacti
GNU General Public License v2.0
36 stars 39 forks source link

When adding new device to Cacti Thold send a returned from Down email #158

Open bmfmancini opened 3 years ago

bmfmancini commented 3 years ago

Hello Everyone,

In one of the latest releases of Thold the execute a command feature was created During testing, I am seeing that when a new device is added to Cacti a returned from Down Device notification is sent.

I don't see any way in the default options to tell cacti to register a device as UP by default to prevent these messages

since its a script that is being called for now I can have the script check the poll count so if poll count is less than say 5 don't send a message to the curl function ( In my case)

jdcoats commented 3 years ago

Interesting that I just noticed that the behavior change for me is that up/down email notification is off by default for manually created devices. Therefore, I create the device, wait for it to be up, then enable the notification. In the case of Automation created devices the mail notification is enabled and no notification is send when device is added.

TheWitness commented 1 year ago

I should be able to fix this one today.

TheWitness commented 1 year ago

@jdcoats @bmfmancini , I can not seem to reproduce on 1.2.25 and thold alpha 2.0. Can you confirm?

TheWitness commented 1 year ago

Turns out this is a Monitor plugin issue. Just did a code review about merging into Thold, and recognized it right away.