Ad Widget

Collapse

How to generate event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cbellero
    Junior Member
    • Dec 2009
    • 5

    #1

    How to generate event

    Hi all,
    for some reasons (don't discuss here for now) we don't use Zabbix Agent to collect data from our nodes.
    Instead, we have an external procedure that writes information directly in history tables.

    From web interface we have defined triggers and actions (like sending emails) but none is happening.
    I mean, the values inserted in history trace a "problem" and trigger must fired but we don't get events and alerts (and email of course!)

    Here the question: how can we force zabbix server to read history and generate events and so on?
    Must we configure (or modifiy) something special for zabbix server?

    Maybe we could write an external procedure to evaluate triggers and generate events, but this is not what we want to do.... and could not be enough.....

    Any suggestions?

    Thanks in advance.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Originally posted by cbellero
    Hi all,
    for some reasons (don't discuss here for now) we don't use Zabbix Agent to collect data from our nodes.
    Instead, we have an external procedure that writes information directly in history tables.

    From web interface we have defined triggers and actions (like sending emails) but none is happening.
    I mean, the values inserted in history trace a "problem" and trigger must fired but we don't get events and alerts (and email of course!)

    Here the question: how can we force zabbix server to read history and generate events and so on?
    Must we configure (or modifiy) something special for zabbix server?

    Maybe we could write an external procedure to evaluate triggers and generate events, but this is not what we want to do.... and could not be enough.....

    Any suggestions?

    Thanks in advance.
    Instead of writing directly to Zabbix database, you could use zabbix_sender utiliity to feed zabbix with collected data.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • cbellero
      Junior Member
      • Dec 2009
      • 5

      #3
      you are right, but in zabbix user manual i read:
      -o --value <value> Specify value of the key.
      -i --input-file Load values from input file.
      <input file>

      I didn't found the structure for input file.

      there is no way to specify the clock! I beleave Sender use system time to put timestamp!

      I collect data in batch and i need to send in block.

      thanks.

      Comment

      • alixen
        Senior Member
        • Apr 2006
        • 474

        #4
        Originally posted by cbellero
        you are right, but in zabbix user manual i read:
        -o --value <value> Specify value of the key.
        -i --input-file Load values from input file.
        <input file>

        I didn't found the structure for input file.

        there is no way to specify the clock! I beleave Sender use system time to put timestamp!

        I collect data in batch and i need to send in block.

        thanks.
        I am not an expert in Zabbix internals but, as far as I understand it, data path is:
        host -> zabbix_server (process data, fire triggers, alerts,...) -> database.
        I don't think that writing directly to the database is going to work.

        Maybe you can try feeding zabbix_server using active agent protocol.
        According to the documentation, a clock is associated to each data.
        See http://www.zabbix.com/documentation/...collected_data

        Hope this helps
        Alixen
        http://www.alixen.fr/zabbix.html

        Comment

        Working...