Ad Widget

Collapse

Help Setting Up File Checking Type Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SouperGrover
    Junior Member
    • May 2013
    • 22

    #1

    Help Setting Up File Checking Type Trigger

    I work in a call center type business and we use an Asterisk based phone system (rebranded with other features). From the control panel, we can set certain people to have their inbound calls recorded automatically. When an incoming call is recorded, it is saved as a .WAV file in a folder on the asterisk server. The issue we are having is sometimes the users disappear from the "Agents to Record" list on the web control panel and we don't know it until a manager goes back to try and review some calls.

    The calls are placed in a folder with the current date, and all start with "user-etxnumber". What I need to know is if there are no recordings for an extension for say 48 hours. I would somehow have to tell Zabbix the list of extensions to check for, and it would have to track the last time a file for that extension was created.

    Sounds kinda tough, but thought I would ask.

    Thanks!
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    If you can script it, you can monitor it with zabbix_sender.

    I do something similar (maybe, if I understand what you're saying) I watch for the last time puppet runs (it updates a file) and send that time stamp to Zabbix. If puppet hasn't updated in an hour, I trigger an alert for that host.

    Comment

    • SouperGrover
      Junior Member
      • May 2013
      • 22

      #3
      That's close, but the difference is each call creates a new recording file. We have 18 extensions we want to monitor and all of the recordings dump into the same folder. One folder per day.

      Your method has given me an idea, though. The tricky part as I see it is keeping track of the last day an extension made a recording. All independent of each other. So, what if I ran a script on the server every day that checked the folder for each of the extensions I want and logged it to a file. Then, I could set up items in zabbix for each of the extensions I want to check. Then, have a script that loops through the log file of recordings and uses zabbix_sernder to update the items on the zabbix server with that last logged date of each extension. Does that sound doable? Is there an easier way?

      Comment

      Working...