Alarm, based on the timestamp of file

Is there a way of foglight to check if a file has been changed recently and create an alarm if it is more than 2 hours since the last update?

Thanks in advance!

Hey Wyatt,

There is no out-of-the-box Foglight agent that collects the last modification time of a file.

It is a good area for an agent to custom script similar to the discussion to: Foglight 5 monitoring of file system

On what platform you want to monitor the last modification time of a file? Windows or Unix?

There is a perl script that could be the basis for a custom script agent:

http://www.UNIX.com/shell-programming-scripting/22357-finding-out-last-modified-time-files.html

Given a script agent that collects the last modification time of a file, it would be too difficult to write a rule that fires if the file has not been updated for more than two hours.

Kind regards

Brian Wheeldon

Tags: Dell Tech

Similar Questions

  • Poller DB to select records based on the timestamp

    Hi all

    I want select records from the coloumn timestamp where the timestamp is older than an hour. Is it possible to do this through poller db? I tried but unable to pass the dynamic value (currently - 1 hr)

    Thanks in advance!

    Eventually create a view based on the timestamp and singled out the dbpoller view.

  • Rows based on the timestamp column

    Hi Experts

    I'm trying to get the last 3 records based on the timestamp column. But I am not able to understand where I should start... ?

    To make it more clear

    I have the following data
    id date
    1  07/03/09 3:57:55.000000 PM
    2  08/03/09 9:23:55.000000 PM
    3  05/03/09 7:53:55.000000 PM
    4  08/03/09 5:41:55.000000 PM
    5  06/03/09 8:50:55.000000 PM
    I want to
    2  08/03/09 9:23:55.000000 PM
    4  08/03/09 5:41:55.000000 PM
    1  07/03/09 3:57:55.000000 PM
    Thanks and greetings
    Saurabh Sharma
    select *
      from (
    select *
      from x
     order by dt desc
     )
      where rownum <= 3
    

    Published by: Alex Nuijten on March 10, 2009 11:31

  • How to incorporate the timestamp and file name automatically select and save the file dialog?

    Hello

    I try to incorporate the name of the file that is the registration of the end user with the timestamp in the selected and save file dialog box. Can you help me?

    Thank you

    Hi Mike227,

    I couldn't find a way to immediately make the bat. I guess you need to mess with ActiveX to do. I found an msdn page that could help with this.

    Have you considered simply concatenating the name of the file and the time stamp with a path of the file and save the file when you create it, without inviting the user?

  • How to search for an image Adobe Stock based on the number of files Adobe Stock?

    Before I signed up for Adobe Stock, I took screenshots of the pictures that I wanted to buy. These plans include the official file Adobe Stock number. Now that I have a subscription, I want to buy these images. But it doesn't seem to be an option to search based on the file number. How can I get the image I want, by file number, without wasting hours of research of individual images through keywords?

    Simply type the Stock number in the search. Be sure to have audited as well appropriate file types.

  • Metric based on the timestamp

    I have a timestamp in a picture and I build metrics on this basis.

    If the time stamp is equal to or after 18:00 every day, so, I need to create a column B with a value of 1 and if this isn't a 0

    Ex:
    Column A
    
    12/12/2011 05:34:45 AM
    12/1/2011  06:32:45 PM
    
    My output would look like:
    
    Column A                                                   Column B
    
    12/12/2011 05:34:45 AM                                0
    12/1/2011  06:32:45 PM                                 1
    Thanks in advance...

    user517674 wrote:

    The solution works for all, except if the timestamp is left saying 17:32 in this case.

    Use:

    SELECT     a
    ,     CASE
             WHEN  TO_CHAR (a, 'HH24MISS') < '173200'
             THEN  0
             ELSE  1
         END          AS b
    FROM     table_x
    ;
    

    SY.

  • Alarm, based on the State of the virtual machine

    Hello

    I just started to evaluate the vFoglight to monitor our infrastructure VMware and so far, I really like the product, but there are a lot of things to take.

    Y at - it a predefined alarm that will enhance and alert and send me an email if a virtual machine crashes or goes offline? The default rule "VMW Virtual Machine power status change" will do that?  I feel that this will tell me if the virtual computer is shut down or restarted, but could not workout if it marked the top if a virtual machine has frozen or crashed.

    In the past I did using the base "no heartbeat Mike" in vsphere.

    Any help would be appreciated

    Thank you

    Dan

    Hi Dan,.

    The Virtual Machine VMW power state change will do as below:

    Goal
    This rule triggers an alarm if a virtual machine has been suspended or powered down recently.

    The rule definition
    Conditions                                                                                           State   Action
    The virtual machine was not suspended or updates turned off recently.     Normal no
    The virtual machine has been suspended recently.                               No warning
    The virtual machine has been powered down recently.                                Reviews email VMware admin

    Maybe you can add, action of e-mail to the severity of the warning from the rule.

  • Create table based on the timestamp prtition generate ORA-14752

    Hello

    I have following question - why create table 1 generate ORA-14752 script? Script 2 works without any problem. Feel it is on interval - day/month. How to create the script table 1?

    Database:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    1.

    create table

    (pData

    start_date TIMESTAMP,

    store_id NUMBER,

    inventory_id NUMBER (6)

    )

    PARTITION OF RANGE (start_date)

    INTERVAL (NUMTOYMINTERVAL (1, 'DAY'))

    (

    PARTITION pdata_p2 VALUES LESS THAN (TO_DATE (' 07/01/2007 ',' DD-MM-YYYY ""));

    PARTITION pdata_p3 VALUES LESS THAN (TO_DATE (' 08/01/2007 ',' DD-MM-YYYY ""))

    );

    2.

    create table

    (pData

    start_date TIMESTAMP,

    store_id NUMBER,

    inventory_id NUMBER (6)

    )

    PARTITION OF RANGE (start_date)

    INTERVAL (NUMTOYMINTERVAL (1, 'MONTH'))

    (

    PARTITION pdata_p2 VALUES LESS THAN (TO_DATE (' 07/01/2007 ',' DD-MM-YYYY ""));

    PARTITION pdata_p3 VALUES LESS THAN (TO_DATE (' 08/01/2007 ',' DD-MM-YYYY ""))

    );

    YM in NUMTOYMINTERVAL stands for the year and the month. With NUMTODSINTERVAL it should work.

    create table

    (pData

    start_date TIMESTAMP,

    store_id NUMBER,

    inventory_id NUMBER (6)

    )

    PARTITION OF RANGE (start_date)

    INTERVAL (NUMTODSINTERVAL (1, 'DAY'))

    (

    PARTITION pdata_p2 VALUES LESS THAN (TO_DATE (' 07/01/2007 ',' DD-MM-YYYY ""));

    PARTITION pdata_p3 VALUES LESS THAN (TO_DATE (' 08/01/2007 ',' DD-MM-YYYY ""))

    );

  • SQL Query based on the timestamp

    Hi all

    I need to write a select statement that retrieves all records from the current time-2 hours previous.

    or current time at the present time - 2 hours.

    ID Timestamp
    111:09:21.994000000 10 OCTOBER 13: 00
    212:07:51.989000000 10 OCTOBER 13: 00
    301:11:04.621000000 10 OCTOBER 13: 00
    403:02:36.897000000 10 OCTOBER 13: 00

    Please suggest how can achieve us.

    TIA,

    Bob

    Select mytimestamp-(2/24) from myTable

    ----

    Ramin Hashimzade

  • Can I use Windows based DW program based on the DW cs4 files on a Mac with an Apple?

    Have been using DW cs4 with Windows Vista.  Buying a Mac soon was wondering if I can use these files on a Mac with a version of Apple on DW?  Thank you

    The files that DW creates are simply old text (.html, .css, .js, etc.) and will work on any computer.

    What you want to do is to copy the real site folders and their contents to the new machine, then the old machine...

    1. go to Site > Manage Sites > click a site > export to create an .ste file

    2. copy this file to the new machine

    3. on the new computer, go to Site > Manage Sites > Import to import the .ste

    4. make sure the local root folder points to the newly copied site folder

    5. Rinse and repeat for each site

  • List based on the system date or time zone user

    Hello

    We have been questioning a service request list based on the timestamp created with criteria = today.

    But the result is inconsistent. Sometimes records created within today do not appear on the list.

    What is the definition of SOD ' today ' today '? It applies to the date system (time US) or Pacific time zone (for example the + 8) user?

    Thank you, SAB.

    Hi Sab!

    I did some tests and found that this is directly related to the user zone set on the user details page.

    I am with paris (gmt + 1) time zone, and when you go to the created SR list today, I have a lot of records.
    I set the time zone of eniwetok (gmt - 12). It is 11 now in france, therefore, with this zone, it is p 11 m yesterday.

    And when I went back on the list (after the closing session and connection), there is no trace!

    I hope it's useful!

    Max

    Published by: Max K on Nov. 16. 2008 19:35

  • How do I script in DIAdem to include specific lines of code (similar to .ini in LabVIEW files) based on the computer/user?

    I took Basic training courses so DIAdem Advanced and have been scripting for several months.  I am interested in how to include specific lines of code based on the computer.  Told me it would be similar to .ini in LabVIEW files, although I've never used myself .ini files.

    Hi Karen,.

    What do you mean by "includes the lines of code?  Do you mean what happens when you run a command 'ScriptInclude()' or 'ScriptCmdAdd()' in a tiara VBScript?  Or do you mean that you want to run several lines as DIAdem begins, similar to 'ScriptStart() '?

    What do you mean by "computer-based?  Do you mean you want to implement different batch files on different computers, but you are still using the same file (named) command on each target computer?  Or do you mean that you want to implement the same command on all target computers file, but you want different commands to run this file based on the computer on which you are.  In the latter case, how do you determine computer on which you are on - MAC address, logged in user name, or what?

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • How to get a date to the timestamp of a file XML format

    Hello

    I'm trying to get a date from an external XML file. My XML file looks like this:


    <>http://www.NI.com/LVData">
        8.6.1
        
            Date of birth
            31/03/1983
        
     

    I can get the system to retrieve the correct XML element that shows the nested and elements , but I have no way to retrieve correctly the date. It seems as if she interprets my date seconds since 1904. I try to keep the "readable" for the end user XML, so it is important to keep this date in standard U.S. date format. I eventually uses this date to calculate the age of something. I labour code to subtract a timestamp in the format of the date to the current date and time, but I can't access it when I get back from XML.

    Starting from XML schema, it looks like the timestamp element requires a cluster... but there is no documentation on what to spend. Any ideas how to get back an XML date in this format in a simple and clean?

    Here's my current VI:

    Thank you

    Ryan

    Cambridge, MY

    Quick Tip on "bundle by name.  You don't need to consolidate all these constants where the values correspond to what is the constant of cluster at the top.  The cluster constant defines the data structure and the starting values.  Simply group the values for specific change items.

    Example of tone would be a bit cleaner.  Although the format string should use a capital T.

    As always with dealing with the time, complications could arise due to dealing with time zones and leap years.  Zones shouldn't matter for the calculation of the years since you are rounded up to years.  Although you probably want to round down rather than round at most closely. (I forgot this part in my example).  The problem with leap years when you would be only in a certain number of days of the anniversary, he would round up the age.  The number of rounded days would depend on how much on leap days that nobody has seen in their lifetime.

  • PowerShell script to delete files based on the current Date

    I know using PowerShell Get-Date will look at the current date.  I would like to make a very basic PS Script that will remove a file over 8 days based on the current date.  According to me, with the help of a if/then the function will be necessary.  I am very new to scripting if Im not sure how the syntax is written.  Any help is appreciated.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Change the structure of program based on the input file

    I have a program that takes parameters of an input file and then executes a Visual acquisition, using IMAQ, controlling some other hardware at the same time.  The duration of the various stages of this process control settings.

    There is a sequence stacked structure to control the playback of the input file, the initialization of the hardware, and then a while loop on the last image to actual purchase.

    The user of the program now wish to have several games acquisition in the same race, possibly with different time settings.  This would mean different iterations of the final loop, based on the parameters of the input file.  There could be 5 games of acquisition on occasion, 3 on another, etc., in a performance of the program.

    The structure VI already seems a little baroque, and I don't want to make it even more complicated.

    I would appreciate advice on how best to proceed, because I'm really a novice of LabView.

    If you use a "State Machine" architecture, you can do exactly that.

    Instead of having a structure of stacked sequence, it is essentially a case structure in a while loop.

    Each case represents a State.

    So in your case, you would have a State for:

    -reading the input file

    -initialization of hardware

    -data acquisition

    You can have the user controls the number of iterations of the State for the acquisition of data that you want to run.

Maybe you are looking for