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...
Conditional Threshold Creation
Moderators: Developers, Moderators
Re: Conditional Threshold Creation
For extemporary mod, how about this?
(cli_autocreate.php from thold-0.4.4-41)to
But I have not test them actually.
(cli_autocreate.php from thold-0.4.4-41)
Code: Select all
$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host");
Code: Select all
$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host WHERE description like '%XXXXX%'");
Re: Conditional Threshold Creation
This will surely isolate the hosts for Thold creation..But I need Not to create some link Threshold in a host...
-
- Posts: 2
- Joined: Wed Jan 23, 2013 4:09 pm
Re: Conditional Threshold Creation
Are you entering these statements as a MySQL query to automatically set thresholds in cacti?noname wrote:For extemporary mod, how about this?
(cli_autocreate.php from thold-0.4.4-41)toCode: Select all
$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host");
But I have not test them actually.Code: Select all
$host_ids = db_fetch_assoc("SELECT id,hostname,description FROM host WHERE description like '%XXXXX%'");
Who is online
Users browsing this forum: No registered users and 0 guests