(Resolved) enable/disable thold from command line?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: (Resolved) enable/disable thold from command line?

Post by cigamit »

I have uploaded a Maintenance plugin to SVN which should allow you to do this. I have been testing it in my production environment for the past few weeks without issue.
mrphantuan
Posts: 2
Joined: Sat Nov 20, 2010 3:31 am

Re:

Post by mrphantuan »

noname wrote:> which output?

Output that MySQL select command shows.

My cacti is 0.8.7e + PIA 2.4 + thold 0.4.1.
When I clicked the checkbox 'Disable all thresholds' in Settings > Alerting/Thold tab and saved,
Image
the database changed as follows:

Code: Select all

% mysql -ucactiuser -pcactiuser -e "SELECT * FROM settings WHERE name='thold_disable_all'" cacti
+-------------------+-------+
| name              | value |
+-------------------+-------+
| thold_disable_all | on    |
+-------------------+-------+
And when checkbox is turned off, thold_disable_all is changed to blank.

In addition, paradoxically, when I set 'on' to thold_disable_all, then the checkbox is turned 'checked' in GUI.
(and I set blank value to to thold_disable_all, the checkbox is turned 'unchecked' in GUI)

MySQL update command that I posted first simply emulates this action via CLI...
Both via CLI and GUI, thold's behavior is disabled and enabled properly in my cacti.
Wonderful I would like to say thank you for sharing this information



_____________________
Du hoc|hoc bong du hoc|tu van du hoc|du hoc singapore
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest