Rule WARNING level disabling

Hi, I am looking to disable the warning level for all rules that are active notifications. Given the thousand rules in the specific case of Foglight, it is impossible to remove manually, so I addressed the issue with a script. I am able to locate all the rules by using the following code, but I don't know how to deal with checking if a warning level is active and if so turn it off.

def rs = server ["RuleService"]
def rules = rs.getAllRules)

sb = def "<>
for (rule rules) {}
If (rule.isSuspended ()) {sb< rule.getname()=""><>
else {}
    
}
}

return of sb

I think I would need to use the setSeverityEnabled function, but I don't know how to check the level of each rule before that.

Thanks in advance

Let me start with a word of caution.

Everything you do, please try this standalone Foglight Server just to make sure that it works properly and works as expected (the script is 2009). Keep in mind that once you run a script the changes stick then please test scripts results several times and test on a server foglight you can remove/resintall until you make sure you've got the right result.

This is a script that came from Geoff Vona, thanks to Darren Briefcase to find it.

Again, I can't emphasize enough, Please make sure that you use this very carefully and test several times on a stand-alone server (environment crash test) to check what you want him to do, he does. It should help you to get at least to the proper syntax.

com.quest.nitro.service.sl.interfaces.rule import. *;

def suspendRule (rule) {}

try {}

def ruleService = server.get ("RuleService");

print the 'Rule' + rule.getName () + "has only one condition to WARNING, suspend the rule."

ruleService.suspendRule (rule.getId ())

}

catch (Exception e) {}

e print;

}

}

def disableCondition (condition, rule) {}

try {}

def ruleService = server.get ("RuleService");

Print "rule deactivation WARNING level to" + rule.getName ();

condition.setDisabled (true);

ruleService.saveRule (rule);

}

catch (Exception e) {}

e print;

}

}

def ruleService = server.get ("RuleService");

(rule in {ruleService.getAllRules ())}

try {}

print rule.getClass ();

print rule.getName ();

If (rule instanceof SeverityFamilyRule) {}

print 'found gravity family rule. "

WARNING ConditionalSeverity = ((SeverityFamilyRule) rule) .getWarning ();

Criticism of ConditionalSeverity = ((SeverityFamilyRule) rule) .getCritical ();

Fatal ConditionalSeverity = ((SeverityFamilyRule) rule) .getFatal ();

If {(warning)

If ((! criticism &! fatal) |)

((criticism & critical.isDisabled ()) & (fatal & fatal.isDisabled ())) {

suspendRule (rule);

}

else {}

disableCondition (warning, rule);

}

}

}

}

{} catch (ClassCastException EAC)

print the EAC;

}

}

Tags: Dell Tech

Similar Questions

  • The TMS low disk space warning level

    Anyone know what the threshold is TMS warn of low disk space?  I can't find it in the documentation.

    Mine me gives this warning now and I wonder how much space I must give before being happy, probably by increasing the size of the virtual disk, so it would be good to know my target, since this kind of thing requires certain formalities and I would prefer not to do twice.

    Thank you.

    Depending on the size of the deployment, it is recommended for the hard drive to be around 60-80 GB by the installation Guide for TMS.  You can move your SQL database on the server, if it is hosted on the same server as MSDS, as well as the removal of old server logs.  Here are a few suggestions on how you can free disk space on the server TMS.

    TMS - low disk space

    TMS-space drive-bass

    free-space-tms-windows-server

  • set the warning level

    Hello
    in 10g R2, DB control, how to set the threshold of warning (for invalid objects) to a value greater than 1.

    I tried here:
    http://download.Oracle.com/docs/CD/B19306_01/EM.102/b40002.PDF

    but can not find.

    Thank you.

    In the grid of the OEM, for those license correctly, you use DBMS_SERVER_ALERT
    http://www.morganslibrary.org/reference/dbms_serv_alert.html

    If this works for DBConsole, and whether you can do it legally without the diagnosis pack is something you should check out
    before trying except in dev.

  • How to disable the level of alerts warning

    is there an easy way to disable alerts to e-mail only to the warnings?

    Go to each rule, find the warning level, go to the action tab, find the action send and delete it.

  • Solved: Howto disable Rule DRS

    Hello

    I searched and searched, but couldn't find a solution.

    How can I disable a Rule existing DRS with perl?

    Here's where I start but do not get further :-(

    my $cluster = "mycluster."

    # The connection to the Web of VMware Infrastructure service

    Vim::login (service_url = > $service_url, user_name = > $username, password = > $password);

    My $cluster_view = Vim::find_entity_view (view_type = > 'ClusterComputeResource', filter = > {name = > $cluster});

    my $rules = $cluster_view - > configurationEx-> rule;

    foreach (type {$a-> name cmp $b-> name} @$rules) {}

    My $rule = $_;

    #rule active = 1, disabled = 0

    $rule-> active = > 0;

    My $rule_status = $rule - > enabled;

    My $rule_name = $rule-> name;

    Print "$rule_name status: $rule_status \n";

    }

    Kind regards

    Rainer

    My part - in ClusterConfigSpecExtype, the property is named rulesSpec, not ruleSpec.

    #! / usr/bin/perl

    use strict;

    use warnings;

    use VMware::VIRuntime;

    My % opts =)

    cluster-online {}

    => Type ": s"

    necessary,-online 1

    },

    );

    OPTS::add_options (%OPTS);

    OPTS::parse();

    OPTS::Validate();

    Util::Connect();

    My $cluster_view = Vim::find_entity_view)

    view_type-online "ClusterComputeResource."

    filter => {name-online Opts: get_option ('cluster')}

    );

    my $rules is $cluster_view-> {'configurationEx'} {'rule'};.

    My @rule_specs = ();

    foreach my {$rule (type {$a-> name cmp $b-> name} @$rules)}

    My $is_enabled is $rule-> active;.

    My $rule_name = $rule-> name;

    Print "$rule_name $is_enabled \n";

    My $rule_change = new ClusterRuleSpec)

    operation => ArrayUpdateOperation-> new ('edit'),

    Info-Online $rule,

    );

    # Enable or disable the rule

    $rule_change-> {'info'} {'enabled'} = 0;

    push @rule_specs, $rule_change;

    }

    My $cluster_spec = new ClusterConfigSpecEx)

    rulesSpec-online \@rule_specs,

    );

    # Must obtain and check the status of the task, we're going to be lazy and use the version no-Task

    $cluster_view-> ReconfigureComputeResource)

    Spec => $cluster_spec.

    change-online 'true '.

    );

  • Annex rule Email led Action

    Hello

    I have a requirement of evaluation of a rule of planning focused on 3 times during the day, 13:00, 13:30 and 13:45 and email alerts in each of these moments as long as the condition is true.

    I have setup a program that acts as a trigger for my rule of multiple gravity at the fire in these moments there. "Activate the trigger without data has also been selected.

    The alert level has been activated in this rule and configured with an e-mail action.

    Due to the nature of several rules of gravity - once the warning level is raised (and e-mail is generated), no more emails are generated in the rest of the two periods.

    How can I provoke action of the alarm (action Email) to be pulled on a rule of conduct annex, even if the State of the object of assosciated with this rule is currently the State of gravity alarm even to serve as a reminder? Is it possible to do without making use of level critical and Fatal?  Perhaps by making use of the tab behavior or would it just be better to use a Simple rule?

    Thanks again in advance

    As you noted, several laws of gravity are State-based. This means that the rule actions are triggered only when the state changes. According to your description, the best approach to repeatedly trigger actions for the same condition is to use a Simple rule.

    Kind regards

    Brian Wheeldon

  • cluster this warning in the event of failover

    Hello

    Some time ago, we had a serious failure in one of our groups where the ESXi server as well as the matching node Lefthand VSA failed because multiple hard drive failures. Unfortunately, there was also other issues with replication on the other node VSA, which means that this group was unable to perform certain actions of failover because some VMs were not present on the shared storage remaining.

    All this has been resolved, after the reconstruction of the part of the environment and make some restorations from a backup of all virtual machines are operational, the ESXi servers are operational. But...

    At the level of the cluster in vSpere client is still a yellow triangle.

    In the summary for the cluster tab, there is a message: 'Configuration issues. HA has launched an action of failover cluster UTRVMCL-01 Data Center Utrecht»

    In the tab of the alarm to the cluster, it is listed.

    This may be due to a virtual computer that no longer exists and cannot for that purpose is no longer be restarted on the remaining ESXi server. But it can also be something else.

    How can I clear the message that everything is working as it should? The current situation is the right situation.

    Sorry that I misunderstood the "yellow triangle". I thought that on the upper right of the screen.

    You may be able to get rid of the warning by disabling HA in the settings of the Cluster, he reactivated after a few minutes.

    André

  • LiveCycle form - disable functionality when running record

    Hello

    is it possible to restrict dynamic user not be able to save changes to a form?

    We want to allow the user to choose some specific application of custom security choices. Certain level of security, we want to disable the ability to save filled data (the data may still be post to a server).

    Thank you.

    Hello

    As a general rule, you cannot disable save. The user can access any stage save or save as on the file menu. They can also press CTRL + S.

    If you include the following in the event layout javascript code: ready for the root node, the user can not prompted to save the form:

    event.target.dirty = false;
    

    Overall, the user can always save the form.

    Hope that helps,

    Niall

    Ensure the dynamics

  • How can I disable the user access control, for an update of a Web site?

    This is the site of poker for the best day of Milwaukee.

    Hello

    Access search by: click on Windows Orb/Start key > click on the text box and type "User Account Control" to get the shortcut to user accounts. You can disable UAC.

    However, the word of advice, be warned that disable UAC will allow any application and good or bad that gain access to the computer can cause damage to him.

    Don't forget that the site you access is safe and secure and if did the update, try to return to turn on UAC

  • Disabled Windows Messaging filters

    I do not disable filters but each of them (individually) has a note at the top of the description of the rule that says, "this rule is currently disabled."  How can I turn on their return?

    Tools | Message rules | Mail. Check the rules again. Bruce Hagen ~ MS - MVP [Mail]

  • Impossible to find a new rule

    I created a copy of a rule existing and disabled the old rule, but could not find the new rule/copy in all the rules page.

    Don't know where is he gone, someone can help.

    Kind regards

    Learn 2 eager

    The filter cartridge at the top of the dashboard could show "All the cartridges" - switch to "Non-cartouche" to show the dissociated rules - I fall on that all the time.

  • Levels of HP C7280 ink &amp; put cartridge software/driver?

    Since the day one on my renovated with printer all-in-One extended warranty C7280 cartridge estimated ink level have indicated/felt empty.  At the time and after replacing the printer once again I finally learned by a supervisor of the support phone HP that the factory provided ink cartridges were special and because they were not full, first, estimated ink levels would be would not read.  so... I waited and waited and finally black ink ran out and I replaced it with a new cartridge in date, which worked well but unfortunately its estimate of read ink level empty too.  so... I continued to wait and finally Magenta and Light Magenta down dry and I replaced with cartridges date and still none of the ink level estimates register.

    Although I suspect something wrong with the printer along the cause is it possible I neglected/was unaware of a simple fix to get these read levels now?

    I read the levels of ink directly from the screen on the printer.  No need to use the software Connectivity PC side.  Besides, because of other unresolved problems I uninstalled software applications and uses only the drivers.  This leads to the second question/problem...

    After the support of futile attempts to fix wireless phone another supervisor told me that HP has been in the weeks, releasing an update of the v12 for my printer software.  He had lied because this v12 software released on other printers, but not the C7280 and its nearest summer for one year.  I would like to know if anyone knows what are the intentions of HP?  V12 will be always available for the C7280?

    Unfortunately, with HP I found it much easier to ignore the problems I had and work around them then spend time futile with offshore technical support.  What a WASTE of the industry does discover offshore support at low cost.  They got what they paid for and we had trouble.

    Progress...  There is a simple solution for ink cartridge levels is displayed not correctly - only vacuum for the last 10 months.  However, there was no reason given as to why HP does.  A few days ago, a phone tech took me by making a hard printer factory reset where you unplugged the uinit, then all by pressing the "6" and keys ' # ' plug the power back in.  For the first time that the ink levels read their correct estimates and the self-assessment report showed these values too.

    Unfortunately with the fluid level reading this thread to find out that 3 of the 6 spare ink cartridges I bought 10 months ago and had to start using some 2 months ago where not full.  In fact the yellow cartridge I replaced two days ago to read only 53% full immediately.

    I tried to get HP to compensate me for these three cartridges partially filled and finally spoke to a support engineer in the United States without result.  However she told me that these renovated C7280 printers have been sent with the function of liquid ink level disabled on purpose but did not say why.  She said that the early support should have reset the printer 10 months ago, I agree.

    In the end, Office Max, where I bought the original printer, exchanged the three ink and cartridges for the first time the icons on the screen of the printer ink cartridge all disappeared.  In fact, I thought it was now a new problem, but apparently that's normal when all cartridges are more than 50% or so full - at least that's what said this same technical support engineer.  And for the first time, the self-assessment report has listed all levels of ink to 100%.  Is everything working now?  Time will tell.

    (So restore the printer to Ethernet and using only the printer drivers base v 10 [no printer installed software apps] I don't have to reset the router periodically during print jobs wouldn't last and I feel a printer real reliability back finally.)  It's also I think as my first post here in the forum HPs I checked "resolved."  Also...  I do not work for HP... "and do not like their offshore phone support).

    Message edited by Star 06/08/2009 08:46
  • Alert for OEM metric Extensions WARNING/criticism

    OEM version is 12.1.0.5.0

    I have a metric expansion who oversees archive newspaper gap sequence received and sequence applied waiting for database.

    Select (A1 - A2) "Total_Gap"

    (select sum (max(sequence#)) 'A1'

    v $ archived_log val, v$ database vdb

    where val.resetlogs_change # = vdb.resetlogs_change #.

    Sort thread # 1 group),

    (select sum (max(sequence#)) "A2"

    v $ archived_log val, v$ database vdb

    where val.resetlogs_change # = vdb.resetlogs_change #.

    and val.applied in ('YES', "IN-MEMORY")

    b group thread # 1 order);

    WARNING: 30

    Review: 50

    The metric seems to work very well.   Its rated every 30 minutes.  The question I have is on the frequency of the alerts from OEM.

    Even if the metric is evaluated every 30 minutes, it seems only 1 alert is sent when it reaches the warning level and only 1 alert is sent when it reaches the critical threshold.  What I would do is sent an alert every 30 minutes if its still in the warning or critical.

    Is this possible?

    Thank you!

    It's normal.  Notifications are sent only when a threshold is changed.  so clear for the warning, attention to critics, etc...   If you want notifications repeat, warning and always open, you can configure to send every 15 min or more.

    http://docs.Oracle.com/CD/E24628_01/doc.121/e24473/notification.htm#sthref233

  • Enhancement request: have the ability to see all active rules only (cartridge or not)

    I wish I could see a list of only my rules (active) active running, they are cartridge on without cartridge so I have a single place to view and evaluate only the rules affecting the environment.  It seems it should be easy to do but is apparently not available now.

    You could do it with a groovy script, too - like this:

    ruleService = Server ["RuleService"]

    msg = new StringBuilder ("status, name of the rule, cartridge Name\n")

    .each ruleService.getAllRules () .findAll {! it.isSuspended ()} {rule->

    Msg. Append (Rule.isSuspended ()? ("" Disabled ":"enabled"). Append(","). Append (Rule.Name). Append(","). Append (Rule.getCartridgeName ()). Append ("\n")

    }

    return msg.toString)

  • Data store said in warning but cannot see what is wrong

    Hello

    We have a data store (on a 3100 e EMC) on the single host which gives us a warning.vmware.JPG

    We have also other hosts that connect to the same is 3100 to access other data stores.

    With the help of VeeamONE it says that data warehouses are very good. Only in vCenter we see the 'warning '. 3100 e displays no warnings.

    The only difference I see between this data store in 'warning' and other data stores, it's this one says "Hardware Acceleration" is "unsupported" while others say "Unknown".

    I looked under alarms and tasks and events and can't see where to clear this warning, or see what is the cause.

    The vCenter Server 5.0 and the virtual machine host is 4.1

    Thank you


    Nathan

    The warning level for "use of disk data store (%). "is set to 80% by default. In the case of a 2 TB data store alert is triggered if the free disk space is less than 400 GB. You can consider changing this definition of the alarm in this case.

    André

Maybe you are looking for

  • Pro 100 reduced image on format letter

    Hi - am a person pretty savvy computer, but for the life of me can not find out how and why the 100 Pro cut output when printing of 8.5 x 11. Especially when it was working fine a month there. I try to print a label for shipping b & w simple. The pri

  • TouchSmart 23-h024 stand adjustment

    Is the rear support on the adjustable Touchsmart? If so, how it unlock? It feels as if I could easily break.

  • Using creation of Windows DVD how to burn a DVD from a video on the internet

    I am trying to burn a DVD of video I found on YouTube, but nothing doesn't come to download or burn it please tell me how to accomplish this task

  • Unable to see the image via HDMI Hook UP TV

    original title: HDMI Hook UP I connected my laptop to my TV with the HDMI cable and watched a live stream football match. I tried to do the same thing today and my PC screen is not appearing on my TV is there a setting on my lap top or is it the new

  • Download Indesign CS5 - "damaged".

    HelloI have a license to use CS5 and trying to install it on my Mac, I can download (site licenses) and on the site of adobe files successfully but when I go to then 'install' it, it says that the file is damaged and can be opened and that I should '