Cacti / plugin_webseer

Cacti Web Services Monitoring Plugin
GNU General Public License v2.0
8 stars 9 forks source link

Request/Info: Can we set a notification interval for different URLs #45

Open pnkdoshi opened 2 years ago

pnkdoshi commented 2 years ago

Is your feature request related to a problem? Please describe. I would like to set some URLs to send out multiple notifications in a day. I know that data is stored in plugin_webseer_urls table so I can create my own script for it, but is there a way or can we create a way to set a notification interval on a URL.

Describe the solution you'd like Set up a notification interval on URLs independently

Describe alternatives you've considered I can create my own script to run against the table plugin_webseer_urls for what I am looking for.

Additional context None

netniV commented 2 years ago

To do this, you would need several fields in both the edit screen and database, which may or may not exist yet, for last polled time and polling interval. You would then need to work out whether the difference between now and last polled time is greater or equal to your desired interval. That could be done in a single SQL statement when obtaining the URLs to poll. When the status is updated, just update the polling time too.

One thing I would advise is allowing a blank value so the system default can be used for the interval.

Not tricky really but not something I can get to immediately, if you can create a pull request for it, we can review, approve and merge as it sounds reasonable.