List Thresholds by User?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
rdege
Cacti User
Posts: 59
Joined: Tue Jun 05, 2007 10:20 am

List Thresholds by User?

Post by rdege »

Is there a way to list all of the thresholds that a user is notified on? (either by the user, or their email address)

-Rob
rdege
Cacti User
Posts: 59
Joined: Tue Jun 05, 2007 10:20 am

SOLVED: List Thresholds by User?

Post by rdege »

Nevermind, I found a mysql solution:

Table: plugin_thold_contacts
id - #
data - email

Table: thold_data
id - #
name - Threshold details ($HOST on Drive)

Table: plugin_thold_threshold_contact
contact_id <=> plugin_thold_contacts.id
thold_id <=> thold_data.id


List all of the thresholds that have this $EMAIL on the notifiy list
mysql> select plugin_thold_contacts.data, thold_data.name from plugin_thold_contacts, plugin_thold_threshold_contact, thold_data WHERE plugin_thold_threshold_contact.thold_id=thold_data.id AND plugin_thold_contacts.id=plugin_thold_threshold_contact.contact_id AND plugin_thold_contacts.data="$EMAIL";


List all of the thresholds that have an entry in the "Extra Alert Emails" field
mysql> select name,notify_extra from thold_data where notify_extra!="";
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests