Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Zabbix Help only
Search
Advanced Search
Forums
New Topics
Today's Posts
Home
Forum
Zabbix Discussions and Feedback
Zabbix Help
If this is your first visit, be sure to check out the
FAQ
by clicking the link above. You may have to
REGISTER
before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Ad Widget
Collapse
mysql
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
BusteR81
Senior Member
Joined:
Apr 2007
Posts:
150
#1
mysql
05-05-2008, 09:43
how do i execute a mysql command to grab triggers that are TRUE for any hosts in a zabbix database ?
Tenzer
Senior Member
Joined:
Nov 2007
Posts:
316
#2
05-05-2008, 10:19
I haven't tried it extensively, but I think this does what you request:
SELECT * FROM triggers WHERE status != 0;
Comment
Post
Cancel
BusteR81
Senior Member
Joined:
Apr 2007
Posts:
150
#3
05-05-2008, 10:29
i tried that before. Field status means either enable (0) and disabled (1)
status doesn't means TRUE or FALSE. what i need to to extract triggers that are currently TRUE (eg, from overview.php) from a Mysql console
Comment
Post
Cancel
trikke
Senior Member
Joined:
Aug 2007
Posts:
140
#4
05-05-2008, 17:12
SELECT * FROM triggers WHERE value != 0 maybe? As far as I know, value 0 = OFF and value 1 = ON
Greets
Patrick
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment