monitor

  • 11 Jan

    How to monitor if a file doesn’t make it to a directory

    Q: I’m looking for a way to monitor if a file doesn’t make I to a directory.  The filename of the files have the date in it.  “Importer_WXII_mm-dd-yyyy-#0.xml”.  example for today would be “Importer_WXII_01-09-2024-#.xml”  The date in the filename will not match the modified or created time stamp of the file.  I’m looking for a way to monitor the directory send a failure email if the file name is not present within a certain time span of the date.  Example would be

    If “Importer_WXII_01-11-2024-#0.xml” file exists and the current computer date is 01-10-2024 then nothing happens the file needed exists so no issues.  On the other hand.

    If “Importer_WXII_01-11-2024-#0.xml” file does not exist and the current computer date is 01-10-2024 and its 12hours before 01-11-2024 then email is sent.

    limagito file mover monitor if a file does not make it to a directory

    A: We did a test and added the following screenshots to get you started.

    • We used a Windows folder as Source:

    limagito file mover windows folder as source

     

    • We added the following Filename Include Filter. This filter will check if the xml you need is available.
    Importer_WXII_%TCD:[IncDay+1]MM-DD-YYYY:-#0.xml

    limagito file mover filename filter

    • Important, do not forget to enable ‘Allow parameters in File Name Filter’:

    limagito file mover file filter

    • Set Function to Copy, don’t worry we are not going to do anything with the xml files.

    limagito file mover function setup

    • We added a dummy ‘Pascal Script’ as Destination:
    Begin
    psExitCode:= 1;
    // ... add your code here
    psLogWrite(1, '', 'We found file: ' + psFilePath + psFileName);
    End.

    limagito fil emover pascal script as destination

    • Next, Rule Events setup:

    limagito file mover rule events option

    • Select and enable the ‘On No File Found’ event. We are going to send an email when the xml file is not available.
      • Enable and setup ‘Mail Event’:

    limagito file mover rule events setup

      • Enable and setup ‘Pascal Script’. This will add some info into the log window.
    Begin
    psExitCode:= 1;
    // ... add your code here
    psLogWrite(1, '', 'xml file not available');
    End.

    limagito file mover rule events setup

    • Schedule setup:
      • Disable Timer:

    limagito file mover timer setup

      • Add a Schedule when you would like to check for this xml file.

    limagito file mover scheduler setup

    • You can add multiple Schedules if you want.

    limagito file mover scheduler setup

    #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘monitor if a file doesn’t make it to a directory’ question, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Events Filters
  • 12 Nov

    Change Notify network folders usage optimization

    Change Notify Network folders usage optimization (v2023.11.11.0) [*]

    In this version we optimized the code for network folders. We added a watchdog in case something goes wrong with the connection to the network folder. It will show you the necessary error information in the log and also we linked the ‘On No File Found’ event to the case when the watchdog is triggered. You could use this event to get an email notification when something goes wrong with the Change Notify monitoring of a (network) folder.

    limagito file mover rule events

    limagito file mover on no file found event

     

    Change Notify, Force scan after error recovery (v2023.11.12.0) [+]

    New option ‘Force single scan after error recovery’ was added. If due to some reason the connection to the network share is lost and repaired afterwards by the new Watchdog option, you have the possibility to do a full scan of the source folder.

    limagito file mover chnage notify network folders

     

    #filetransfer #filemanagement

    If you need any help with this ‘Change Notify network folders’ option, please let us know.

    Best Regards,

    Limagito Team

  • 23 Oct

    How do I use Zabbix to monitor the status of my tasks

    Q: How do I use Zabbix to monitor the status of my tasks.

    What: We are looking to monitor some of our Limagito tasks inside Zabbix using the rule event in Limagito.

    Why: Example, we have an SLA for a specific service, we monitor the hardware services etc in Zabbix

    Some of those services depends on file being moved by LIMAGITO.

    How: I need to execute a CMD with parameter on event success and on event fail so I can communicate to my Zabbix server.

    Could you give me some assistance as to how I can run an .exe with parameters whenever a task is successful/unsuccessful?

    A: In version v2023.10.23.0 we added our ‘Command Line’ option to the Rule Events. This should make it possible to use any Command Line tool like the one from Zabbix (zabbix_sender.exe).
    limagito file mover rule events
    Example for the ‘On Success’ event. We have no idea about the zabbix_sender Command Line tool parameters, this is just an example from their website.
    You’ll need to enable the ‘On Error’ event too and add the Command Setup for this event also (with other zabbix_sender parameters).
    We have set the ‘Max Time After Beginning’ to 30 seconds. This prevents the command from hanging in case there is an issue with the command Line tool.
    limagito file mover use Zabbix to monitor the status
    Maybe it is a good idea to enable ‘Success event memory’ and ‘Error event Memory’. This way the event will only be triggered when the status changes between Success  <> Error and not with every Success and Error event.
    limagito file mover rule events setup

    #zabbix #cmd #filetransfer #filemanagement

    If you need any help with this ‘use Zabbix to monitor the status’ request, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Command Events , ,
1 2
SEARCH