Ad Widget

Collapse

Direct host status manipulation in the database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dminstrel
    Member
    • Apr 2005
    • 72

    #1

    Direct host status manipulation in the database

    Hello,

    when we do server updates at our site, we disable the host in ZABBIX to ensure we get no false positives. Sometimes, a staff member will either forget to disable the host or worse, forget to re-enable it after the update is completed.

    I was wondering if there was an automated solution to this. We mainly use scripts when we do server maintenance.

    Until an API is available, could a simple SQL command UPDATE-ing the hosts.status field in the database do the trick? Besides the fact that direct database manipulation is a Very Bad Thing, any other gotchas people might have experienced?

    Thanks!
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    No, you can use the hosts.status field.
    And where i do agree with you that its best to avoid direct database manipulation, there is no real alternative at this point.
    Besides, the database has a very simple and straight forward structure.

    Comment

    Working...