Conditional Threshold Creation

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Conditional Threshold Creation

Post by sukanta »

I need to automate the the threshold creation through cli_autocreate.php but not for all the graphs.It need to match some string in Description.
This features already available in Reports Plugins.

Any help will be appreciable...
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Conditional Threshold Creation

Post by noname »

For extemporary mod, how about this?
(cli_autocreate.php from thold-0.4.4-41)

Code: Select all

$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host");
to

Code: Select all

$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host WHERE description like '%XXXXX%'");
But I have not test them actually.
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Re: Conditional Threshold Creation

Post by sukanta »

This will surely isolate the hosts for Thold creation..But I need Not to create some link Threshold in a host...
sethschoenfeld
Posts: 2
Joined: Wed Jan 23, 2013 4:09 pm

Re: Conditional Threshold Creation

Post by sethschoenfeld »

noname wrote:For extemporary mod, how about this?
(cli_autocreate.php from thold-0.4.4-41)

Code: Select all

$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host");
to

Code: Select all

$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host WHERE description like '%XXXXX%'");
But I have not test them actually.
Are you entering these statements as a MySQL query to automatically set thresholds in cacti?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests