Prevent the rule of shooting for a period after the fire

I have an agent that checks and returns the number of connections to each of the 2 separate apache servers. When a connection type reaches a specified number, I need to restart the login server. I address this problem with a simple rule and a remote control action. However when two apache servers reach the number at roughly the same time they try to restart the server offending at the same time, which causes problems.

Is there a way to make a simple rule fire and then wait X minutes before firing again?

Thanks in advance,

Wyatt

I came up with the following solution to this problem. It defines a registry variable for the timestamp present whenever the rule returns true (that is running the remote control), then before you run again the controls that it has been more than 20 minutes since the last run.

It is a workaround but works well.

If (#totalConnections # > = 500) {}

def now = new Date()

def cooldown_minutes = 20

def time = Now.getTime)

time = time - (cooldown_minutes * 60 * 1000)

If (registry ("last_restart")< time="">

regVar = server. RegistryService.getRegistryVariable ("last_restart")

Val = regVar.createRegistryValue)

val.setDefaultValue (now.getTime ())

regVar.setGlobalDefault (val)

Server. RegistryService.saveRegistryVariable (regVar)

Returns true

} else {}

return false

}

} else {}

return false

}

Tags: Dell Tech

Similar Questions

  • How to prevent the creation of 15000 files for 300 MB each day Firefox

    Firefox creates files of 'file' in C:\Users\LeRicain\AppData\Local\Mozilla\Firefox\Profiles\dnm04rk5.default\cache2
    There are about 10,000 and 20,000 files I have to remove to get about 300 MB of space each day

    How to prevent the creation of these files in Firefox

    Here are the files from cache. Basically, it takes Web sites that access you a lot and records bits of them so they'll load faster the next time you visit them. FOR EXAMPLE if you visit Google.com much, Firefox will save some elements of this page in the cache so that the next time visit you Google.com, it will not have to re - download.

  • Why the fan on my macbook pro continue to run at a fast pace for long periods?

    The MacBook Pro mid-2010

    OS X El Capitan, 10.11.3 version

    Processor: 2.4 GHz Intel Core 2 duo

    Memory: 4 GB 1067 MHz DDR3

    Graphics card: NVIDIA GeForce 320 M 256 MB

    163 GB available

    iWorks ' 09 has been upgraded to the latest versions

    No new upgrade is available for the system.

    My Question: Why the fan on my macbook pro continues to run at a fast pace for long periods?

    I guess that the fan runs constantly, because the CPU is working at a high rate. I rebooted several times but without any resolution systems. At the bottom of the computer is very hot at times so place the laptop on an object that allows good air circulation. This problem occurs intermittently every few weeks or more. I wonder if it is downloading an important upgrade, do a scan of viruses, or by working as a bot. Lights for hours. Currently, I estimate that it has worked rapidly to possible 6 hours. Thank you.

    It will usually be to dissipate internal heat from running resource intensive applications.

    Download and install a temperature/speed control application.

    Open the activity monitor all THE PROCESSES and CPU to display values between high and low.

    When the fan speeds up, post pictures of both for review.

    Also run Apple Hardware Test:

    https://support.Apple.com/en-us/HT201257

    Note that an error free AHT is inconclusive.

    Ciao.

  • The vi below opens a new data file every time new data of the visa arrived. I only want a single file of data for registration period!

    The vi below opens a new data file every time new data of the visa arrived. I only want a single file of data for registration period!

    Can someone bring me (Labview is new to me) in the right direction?

    John

    See attached the amendment. I made a change to my suggestions and possess the top-level VI for the null refnum. See if it makes sense.

  • For Windows XP (KB2719985) security update will not be installed. The text "a problem on your computer is preventing the updates being downloaded or installed" is reported

    For Windows XP (KB2719985) security update will not be installed. The text "a problem on your computer is preventing the updates being downloaded or installed" is reported. Fix - it crashes too much with the line "invalid command line" when I try to run it.

    Hello

    1. this problem occurs only with this particular update?

    2 did you change on your computer before this problem?

    You can follow the suggestions and check out them.

    Method 1

    You can reset the Windows Update components.

    How to reset the Windows Update components?
    http://support.Microsoft.com/kb/971058

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following windows Help article.

    How to back up and restore the registry in Windows XP

    http://support.Microsoft.com/kb/322756

    Method 2

    You can read the article.

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following windows Help article.

    How to back up and restore the registry in Windows XP

    http://support.Microsoft.com/kb/322756

    Method 3

    Step 1:

    Place the computer in a clean boot state.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    a. click Startand then click run.

    b. type msconfigand click OK.
    The System Configuration utility dialog box appears.

    c. click on the general tab, click Normal Startup - load all device drivers and servicesand then click OK.

    When you are prompted, click restart to restart the computer.


    Step 2:

    Download and install the update from the link.

    Update security for Windows XP (KB2719985)

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=30282

    See also:

    Solve common installation issues in Windows Update, Microsoft Update and Windows Server Update Services

    http://support.Microsoft.com/kb/906602

  • Problems in using images for screensaver - error preventing the slide show

    original title: problems in using images for screensaver

    I always enjoyed using my photos for a screen saver.  Now, I get the message "an error prevents the slideshow to play."  How can I find and fix the error?

    Hello

    Did you change your computer?

    I suggest you to follow the steps and check

    a. go toC:\Users\ \AppData\Local\Microsoft\Windows Photo Gallery\Pictures.pd4
    and rename "Pictures.pd4".

    It can also help to remove all the video of the target directory files, although the screen saver will play some video formats.

  • The Windows Office live mail does support the rules of message for mailboxes IMAP mailbox?

    Original title: rules of messages in Windows Live Mail Desktop IMAP?

    The Windows Office live mail does support the rules of message for mailboxes IMAP mailbox?
    If not, then someone can advise on alternative e-mail client which takes support the feature. I know Thunderbird that supports this feature, but Thunderbird doesn't have the feature of autofill dropdown as gmail address (where it lists all e-mail addresses containing the alphabets typed in any part of the identification of email).

    Hello

    The question you have posted is related to Windows Live Mail and would be better suited to Windows Live help community. Please visit the link below to find a community that will provide the best support.

    http://www.windowslivehelp.com/product.aspx?ProductID=15

    Check if the article helps you.

    Windows Mail IMAP accounts: Frequently asked questions
    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/b05d3cc9-5b45-4832-8F62-208c9393e918

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Storage/not using the printer for a period of time extended

    I have a Photosmart 6520 printer which is not used for a period of 6 months each year.

    The last time, I removed the cartridges and stored in an airtight container. When the reactivation of the printer, it has no print at all, but after many attempts to clean and/or align the print heads, he is slowly back to normal operation.

    My question is: what is the best ink cartridges must be left in the printer or deleted during this period?

    It is best to leave them in the printer. Once these special cartridges have their orange shipcap removed, I always recommend to leave in the printer, if you go to the store for a while.

  • U2415, artifacts monitor after power off for a period of time. Solved by allowing the DP1.2

    U2415 - artifacts monitor after power off for a period of time

    I'm running Win 8 Pro 64 bit, Asus GTX 760. Connected to the U2415 using the miniDP to DP cable.

    It is: after turning off my monitor for a period of time (PC fixed IT), 2 hours or more, after turning it back on, I see lines on the screen.

    I will need to restart the PC for it to be back to normal.

    It will not happen if I turned OFF the monitor for a short period. Only when I turned OFF for a few hours.

    Any ideas? Thank you.

    I downloaded a video on Dropbox. I had it turned on after turning off for about 3 hours.

    [See:www.dropbox.com/.../U2415.mp4]

    Hi Chris, just an update.

    A local forumer had discovered how to solve.

    It was the scene of DP1.2. By default, it is set to "Disable". After that I put to 'Activate' and test it for 2 days, everything seems fine now.

    Hopefully someone will find this useful.

    Thanks Chris.

  • Is legal to use "slmgr-rearm" extend using period in Windows 7 Ultimate & may I re-install Win 7 and use it for 30 days after the expiration date (29 days)?

    Hello
    I live in Iran.
    Here access to the original windows is not easy.
    I have ultimate edition (eternity) win 7.
    He let me to use during 30 days three times use "slmgr-rearm" to extend the trial period.
    Hereby, I can use and update.
    I have two questions.
    1. is legal to use "slmgr-rearm" extend with period?
    2-may I have reinstall win 7 and use it for 30 days after the expiration date (29 days)?

    with speciall thank you

    original title: Reinstall windows 7 ultimate

    According to the software Microsoft Windows 7 license, you must activate Windows 7 within 30 days of installation.  You are not allowed to circumvent or bypass the product activation.  After 30 days, you must enter a genuine Windows 7 product key for the edition you have installed, or remove Windows 7 by reformatting the hard drive, on which it is installed.

    In addition, you must respect Export Basics.

  • Group Policy to clear the MRU lists and to clear or to prevent the login information of the user for such programs as being registered remote desktop

    Hello

    Please someone can instruct me on how to implement Group Policy to clear the MRU lists and to clear or to prevent the login information of the user for such programs as being registered remote desktop. Your help would be much appreciated.

    Kind regards

    RocknRollTim

    Hi Tim,.

    Please contact Microsoft Community.

    I understand that you want to prevent the user details stored connection and deletes automatically the most recently used (MRU) list. To help you better ask you to answer the following questions:

    Your computer is connected to the domain?

    Please see the configuration group policies section below.

    http://TechNet.Microsoft.com/en-us/library/bb742376.aspx

    If the problem persists, thanks for posting the same question in the Microsoft TechNet forum for assistance.

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

    Hope this information helps. Response with status so that we can help you.

  • Windows 7 of fingerprints of connection problem, error ' year error occurred preventing the use of your information for fingerprint identification.

    Original title: wndows 7 fingerprint logon

    I like to use fingerprints for better security authentication when logging a session Windows or unlock. I can create a long, highly secure password and do not have to type it every time I have lock Windows. BUT...

    A week or two ago, the sensors of validity fingerprint reader on my HP Pavilion dv7 stopped working. I reinstalled the latest driver from HP support device, and everything worked fine for a day or two. Now the sensor still works, but Windows (7, home edition, SP1) gives me the message "year error occurred preventing the use of your fingerprint credentials." The only thing that has changed, I know, is the latest Windows updates.

    Can anyone help? Thank you!

    Hi Frank,.

    Thanks for the reply.

    I suggest you to refer to the article and check if it helps.

    http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?objectID=c03061709

    If the problem persists, I suggest you send the request in Support HP for assistance.

    http://h30434.www3.HP.com/

    Hope this information helps. If you need more assistance or information on this question, reply to this post. I'll be happy to help you.

  • HP 3052 scanning problem a problem prevented the document under analysis, please try again or for troubleshooting

    a problem prevented the document analysis, please try again or for troubleshooting for hp laser jet 3052 pritner

    Hello

    1. is the issue limited to a specific type of document that you are trying to scan?

    2 did you a recent software or hardware changes to the system?

    This problem can occur because of changes on the system which could affect Windows Fax and Scan.

    Let's try the following steps to resolve the error:

    Make sure that you use only one application for analysis at a given time.

    Update your printer firmware/driver to the latest version:

    HP LaserJet 3052 all-in-One printer range

    For more information, see the articles:

    Scan a document or photo with Windows Fax and Scan

    Solve printer problems

    You can also check out the link to HP support and check if it helps:

    The problems of scanning

    Hope the helps of information.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • is possible to config that allows a rule of subscrat for all signatures in the IPS?

    Hello.

    is possible to config that allows a rule of subscrat for all signatures in the IPS?

    Thnks

    Sent by Cisco Support technique iPad App

    Yes, in the case of the action filter configuration configure the signature, victim's IP address range and action to subtract.

  • How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above.  This problem occurs when I try to convert a word in a PDF doc.

    How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above? This problem occurs when I try to convert a word in a PDF doc.

    Hi [email protected] ,

    Please try to follow the steps mentioned in this thread with a similar problem: Impossible to open the document. Please check if you have read permissions for the above file.

    Also, let us know the acrobat version you have and the version of the OS on your system.

    Let us know if that helps.

    Concerning
    Sarojini

Maybe you are looking for