(Resolved) enable/disable thold from command line?
Moderators: Developers, Moderators
Re: (Resolved) enable/disable thold from command line?
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.
-
- Posts: 2
- Joined: Sat Nov 20, 2010 3:31 am
Re:
Wonderful I would like to say thank you for sharing this informationnoname 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,
the database changed as follows:And when checkbox is turned off, thold_disable_all is changed to blank.Code: Select all
% mysql -ucactiuser -pcactiuser -e "SELECT * FROM settings WHERE name='thold_disable_all'" cacti +-------------------+-------+ | name | value | +-------------------+-------+ | thold_disable_all | on | +-------------------+-------+
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.
_____________________
Du hoc|hoc bong du hoc|tu van du hoc|du hoc singapore
Who is online
Users browsing this forum: No registered users and 0 guests