Ad Widget

Collapse

Trigger during working hours only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tazzzabbix
    Junior Member
    • Jun 2010
    • 5

    #1

    Trigger during working hours only

    Hi All

    I hope someone can help me with this. I'm currently monitoring a text file that has data written to it every hour during the hours of 10:00 till 20:00. After 20:00 not data will be written to the text file and I don't need to monitor it. I've setup the below trigger but I'm still getting alerts after 20:00 saying that no data has been written to the text file.

    (({loot-flow-web01:vfs.file.time[c:\AladdinExportService\bin\Debug\log-file.txt,modify].fuzzytime(3600)}=0)&({loot-flow-web01:vfs.file.time[c:\AladdinExportService\bin\Debug\log-file.txt,modify].time(0)}>100000)&({loot-flow-web01:vfs.file.time[c:\AladdinExportService\bin\Debug\log-file.txt,modify].time(0)}<200000))

    I'm currently running Zabbix 1.8.1 on Ubuntu 10 and the text file is on a windows 2003 R2 server

    Many thanks in advance
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    It might be easier to create a user specifically to receieve this alert. You can then edit the media properties (Admin--> Users) and set the Active time to avoid the timeframe where the alert is not needed.

    Not sure if that will work or not, but might be worth playing with it.
    Attached Files

    Comment

    • tazzzabbix
      Junior Member
      • Jun 2010
      • 5

      #3
      Thanks tchjts1, I'll give that a go but as it is a warning message wont this effect all warning messages?

      Do you know if the time functions still works under 1.8.1 as I have found a post on the net saying it was not supported but I have not found anything official?

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Originally posted by tazzzabbix
        Thanks tchjts1, I'll give that a go but as it is a warning message wont this effect all warning messages?
        You would just need to be specific with the trigger and action that you set up for this alert and user. See my screenshot below as an example.

        Originally posted by tazzzabbix
        Do you know if the time functions still works under 1.8.1 as I have found a post on the net saying it was not supported but I have not found anything official?
        That I don't know because I never used it. Might be worth posting a question to the forum on that.

        In this example, note condition (B). This will only send the alert if all 3 conditions are true, but condition (B) specifies the exact trigger I want to be alerted on.

        However, if you have your Admin user set to receive ALL alerts, then that would over-ride the above setup. if that is the case, you may want to make the trigger severity "information" or "not classified" and turn those off for your regular Admin account alerts, and use it for the newly created admin account to receive this alert. I'm picky about what alerts I get. With 1,000 hosts monitored, I would get nothing else done if I wasn't picky.
        Attached Files

        Comment

        • tazzzabbix
          Junior Member
          • Jun 2010
          • 5

          #5
          Ok great didnt think of that many thanks for help. I think that will work for me

          Comment

          Working...