Clear alarm ROL

Hello everyone.

I'm trying to give permission to a user with the role of operator permission to clear alarms. I found in foglight function that disables the button to clear and by default, only users with the role of advanced operators can clear alarms, I tried to change the parameters of the function for the role of the operator can delete alarms, but I could not, someone has a idea how to make this change.

The function is in the module of alarms, and the name is disable alarm clear action.

Thanks for your help.

Hi Alexander,.

The buttons clear and recognition are hung in a script called "currentUserHasAdvancedOperatorRole". Change that, it should be:

-implementation of a different authorization script that checks for a role different (for example "alarmAdmin" in the cartridge seal)

-find all the places in the UI where the alarms can be eliminated (or acquitted) and modify it to use the new script

The challenge with the second part is that changes to out-of-the-box dashboards can be overwritten in an upgrade of the FMS, so these updates should be repeated periodically.

The same goes for change the Builder and Manager reports Service dashboards so that they are not accessible to the 'advanced operator', but these changes can be simpler...

The seal cartridge that contains the 'checkUserHasalarmAdminRole' script is not tested and is completely not supported.

Kind regards

Brian Wheeldon

Tags: Dell Tech

Similar Questions

  • PowerCLI - clear alarm

    Hi all

    Recently, we found that our guests have been sensitive to this issue.  After you apply update vCenter to address this going forward, we went through all affected with script PowerCLI from VMware virtual machines.  The result is that each unique VM fixed by this script now has an alarm "vSphere HA machine virtual failover impossible" triggered.

    I thought it would be pretty easy to write a script to run through all our virtual machines and turn off the alarm if the date of call or alarm type matching certain criteria.

    I highly recommend to expose this functionality via PowerCLI.  I am quite surprised that we will need to manually clear these alarms - was trying to force me to not to use the GUI.

    Thank you!

    On a side note, it might be interesting to update the post found here:

    http://communities.VMware.com/message/1869541

    The code lacks a line break:

    $alarmMgr = Get-View AlarmManager Get-VM | where {$_.ExtensionData.TriggeredAlarmState} | %{
        $vm = $_
        $vm.ExtensionData.TriggeredAlarmState | %{
            $alarmMgr.AcknowledgeAlarm($_.Alarm,$vm.ExtensionData.MoRef)
        }
    }
    

    Should be

    $alarmMgr = Get-View AlarmManager #note the previous code missed a line break here
    
    Get-VM | where {$_.ExtensionData.TriggeredAlarmState} | %{
        $vm = $_
        $vm.ExtensionData.TriggeredAlarmState | %{
            $alarmMgr.AcknowledgeAlarm($_.Alarm,$vm.ExtensionData.MoRef)
        }
    }
    
    

    I updated the code, thanks for finding this.

    The clearing of the triggered alarms unfortunately use private API.

  • How to plan to clear all alarms in Foglight on a specific date and time?

    Here's what I want to accomplish informing a group of people that all alarms will be erased and then foglight removes all the weapons on a specific date and time

    ..

    1

    I'd like to be able to plan / create a rule or any other option available to use... to be able to send an email through foglight or notification to a specific group of people telling them that all messages will be deleted.

    2nd

    What I'm looking for must be able to clear all alarms in Foglight to a date and a specific time.

    I just noticed this has not had a response.

    I hope that you could see the information contained in the KB, some items may have been written there so I recommend for anyone who wants to use it to test on a test server or check with the support, if there are recent scripts.

    How to purge the alarms? How to program the purge of alarms? (40651)

    Clear the alarms then X days (74729)

    How to clear alarms command line? How to program the clearing of alarms? (51324)

    Is there a way to clean only certain rules specific alarms? (73003)

    How to accuse reception/Clear old messages older then X number of days automatically (72146)

    Regarding the sending of notifications on a schedule, I think the simplest if to set that plan and create a rule with a true value, which is only applicable to this annex (annex rule or rule that is valid on a precise timetable) and has the action to send the notification to users on the alarms about to be cleared/purged.

    Hope this helps

    Golan

  • Clear recognized as alarms

    Does anyone know the trick to clear alarm States that get 'stuck' for a virtual machine? I have a number of VMs who have launched alarms in the last two months, and even after the virtual machine goes out of the State of the alarm AND the alarm has been recognized (there is no other options, i.e. Remove alarm), the virtual machine continues to show in VCenter as being in a State not nominative.

    Of course, this kind of 'false positive' is pretty boring, causing waste of time trying to figure out if it's a real question or "crying wolf".

    ——

    Jim Millard

    Kansas City, MO, USA

    Hello.

    I was able to clear these by disabling the alarm and then the reactivation.

    Good luck!

  • 8.0 questions about alarms

    Test 8.0 and really like the performance so far. I get this message in the console and can't find any doc respond to this message. Has anyone else got this with 8.0 before I go and open a ticket. Is there a task to do this?

    The number of alarms stored in the Foglight database exceeded 10000.0. There is more 35456,0 alarms have been cleared for more than a week. Please consider compensation.

    Message and help

    Hello

    I think that this is related to the following (I copy and paste part of the text).

    Motivation
    A lot of the information presented in the browser interface is derived from alarms (alarm counties, States of topology objects and so on). If the rules are configured in evil, this can lead to the creation of a very large number of alarms within the system. The server is a default limit of 10000 alarms which can be displayed and used to calculate the States of objects. When the Server enforces this limit, it gives preference to the current alarms so that objects are presented in the correct state.
    Symptom
    Browser interface performance is poor (that is, it responds slowly), in particular when displaying the table of alarms.
    Diagnosis / audit
    The server is not overloaded and is still in processing.
    CPU utilization on the server is high it provides alarm information.
    Threads may clog for a few seconds, intermittently, when you attempt to load the alarm details.

    It is not only a question of performance Foglight it is also a question of ' can you really manage an environment that has so many alarms?
    You probably want to clear alarms.
    You can also change alarms by individually turning off loud alarms, change of thresholds or disabling levels of warning alarm (different environment to run with different settings and parameters of the box may correspond to some but not all environments.)

    You can also go to the VMWare environment dashboard > Administration (tab) > Set alarm Sensetivity level and switch to critical alarms.

    I hope this helps.

    Golan

  • Clear all alrmes 3 months.

    Hello

    is it possible to erase all the alarms of the last 3 months in one and not select page by page on Foglight 5.6.4?

    Thank you.

    It's easier using groovy code in the script editor.  The rule "Clear old LogFilter alarms" is a good example to start.  The code should be amended to include all the alarms and if you want to only 3 months, not all, you will need to change the time interval.  Here's the code for the original rule.

    def alarmSvc is server. AlarmService;

    def alarms = alarmSvc.getCurrentAlarms ();

    def now = new Date();

    def cut = now - @daysToKeep;

    (alarm in alarm) {}

    If (@reporterRuleID is {alarm.getRuleID ()})

    If ((alarm.getCreatedTime ()) .before (cutoff)) {}

    alarmSvc.clearAlarm (alarm.getID ());

    }

    }

    }

    You do not want to change: break def = now - @daysToKeep;  in the time range desired.

    In addition, you would remove the "if (@reporterRuleID == alarm.getRuleID ()) ' in order to clear alarms for all types of rules."

    You do not want to be careful with that, but if you want to clear all alarms, there is not much risk.  If you want to delete only the aspecific alarms or time specitif, then you will need to make sure to get good logic for the time range.

    I hope this helps.

    Jeff

  • Create the circuit of the STS - V between 2 15454 SONET with CE100T

    Hi all

    I have a problem that I can't find documentation for.

    I create an ethernet point to point circuit between 2 15454 SONET with CLC ver 8.5 knots.  The circuit will carry you a VLAN not routed between switches, Cisco 4948 in 2 data centers.  I use CE100T-8 cards which the ethernet 100/full value, checked the Frother.  The POS is configured with a GFP - F frame and 32-bit CRC.  Type of circuit is a single STS - V STS to 50Mbit of bandwidth.

    The switch ports are configured as access ports on the VIRTUAL LAN set to 100/full.  At the end of B, the connection between the switch and the port of THIS is a straight through cable.  End is a crossover.  switch ports are configured as such:

    switchport access vlan 512

    switchport mode access

    switchport nonegotiate

    Speed 100

    full duplex

    Problem I have is that end A "Transport Layer failure" alarm to end and end B has the 'Carrier loss on the LAN' alarm near end.  No end shows an ethernet connection

    Wiring has been tested, I've tried other ports on the CE and have deleted and recreated the circuit board.

    What simple step/setting I'm missing?

    Thank you in advance,

    Jim Bowen

    [email protected] / * /.

    Jim,

    It seems that your problem is by your side B that has the loss of carrier on the LAN. The failure of Transport layer will be on the end node in these cases.

    You mentioned that the end B is a straight through cable from the switch to the CE card but the side is cross. The first thing you can try is to put a cable on the side B as well because it looks like the side of A working very well (doesn't have the loss of carrier on LAN).

    I don't remember if cards of IT have an option to hardcode the speed and duplex but if they can only so if the suggestion of cable does not work. If this does not work, you can try setting autonegotiation on switch and the map of THIS to see if it solves your problem. Once the loss of the carrier and LAN to clear alarm you should be up and running.

    Also, I can't remember if the EC supports the loopback test, but if you can try try to put a Terminal loop on the B side (it's optical to) your end should appear and your switch should appear/maximum looping. I would like to know how things work out for you. Looks like you're almost there a few tweaks should get running.

    Thank you.

    Ryan

  • VCS CLUSTER PROBLEM

    Need an idea to fix a few alarms on my cluster configuration two VCS.

    VCS are running X8.5.1

    Had five alarms on the my resume

    1. the replication is no longer available.  Systems have 4ms between them.

    2 lost all Admin user accounts less?   Strange... Newspapers reported that no one was in the VCS

    3. admin VCS Master on the master account was returned to the TANDBERG default?   (Alarm has stated that this was the case).

    Changed the admin password and recreated my admin on the master account.

    4 approves. it 2 (slave) lost all VCS user account, but the admin password reset not and does not have that I have listed.

    My partner has been able to connect to the peer 2 VCS, even if his account is not listed in the list of users?

    ------------------------------------------------------------------------------

    After the captain restart now, I have three alarms

    a. unexpected software error has been detected in ClusterDB: unknown reason on the slave?

    b. There is a port conflict between the media (36000-47999) port range and the range of ports UDP ephermeral (40000-49999) on Master

    c. Core dump mode has been changed, but a reboot is required before this takes effect on Master

    1. any ideas what could have caused the user accounts to disappear on the page?  I think that they are still in the VCS configured just cannot see them.

    2 will be restarting on the master clear alarms b and c?

    3. a reboot on the peer 2 (slave) would open the ClusterDB alarm?

    I can't restart until later tonight that calls are up on both.

    Oh finally where one or even any changes a core dump mode?

    Thank you

    Connect to the VCS via Telnet/SSH/series and log in as 'root '.

    use the command 'selectsw' to see what partition software he's using now, then, if image1 is active, allows the command "selectsw image2" switch to the other, or vice versa, and then restart your computer.

    Wayne
    --
    Remember the frequency responses and mark your question as answered as appropriate.

  • Automatic and alert acknowledgement claire

    Expert Hi

    I have approx vsphere 5.1.

    Last week the ESXi host restarts occur 2 times.

    1, draw attention to occur and monitoring system received the alert message.

    2nd monitoring system could not get the alert message, because I forgot to delete alert vCenter.

    So I want to remove automatic for every day.

    Could you tell me auto clear script using PowerCLI?

    Thank you

    Hiro

    You can recognize an alarm, see Re: reset and clear alarms for VMSRe: reset and clear alarms for VMS

    But restore to 'green' is not in the public API as far as I know.

  • Clearly the alarms console outside FMS

    Hello

    I heard of a way to clean up an alarm outside the FMS console.

    Therefore, you should put a document in xml format in a folder on the fms server.

    has someone at - he tested this or could explain the folder in which the XML should be placed and what must be inside the xml more detailed?

    I already have the cartridge of integration but the help pdf confuses me:)

    Thank you very much

    VECD

    Hello vero,.

    I don't know which section including documentation confuses you. Maybe you could post details?

    It is easy to draw a Foglight alarm from the command line using the AlarmService API.

    Here's a groovy script to clear an alarm:

    clearAlarm.groovy

    def alarmID = args [1]

    If (server. AlarmService.getAlarm (alarmID) == null) return "error: alarm"+ alarmID + "not found!". "

    Server. AlarmService.clearAlarm (alarmID)

    return "Off alarm."

    Here is an example of a command line to run this script (Windows and Unix):

    > %FGLHOME%\bin\fglcmd.bat - srv fmshost - fglusr usr - pwd fgluserpw1 - cmd script: run f clearAlarm.groovy 776d121b-e18f-487c-a0cb-b633614a88f2

    Off alarm.

    > $FGLHOME/bin/fglcmd.sh - srv fmshost - fglusr usr - pwd fgluserpw1 - cmd script: run f clearAlarm.groovy 4f905ffb-ba7c-4809-8940-99ad3468a3e7

    Off alarm.

    The "alarmID' passed as an argument to the script is the identifier of the alarm returned by alarm.getID ().

    Kind regards

    Brian Wheeldon

  • Allow a role access to a view of the alarm.

    Hello

    I created a 'my_role' role and adds some groups, and now I want to enable this role to 'see' some views only (This Works) however I need this role can see the alarms related to an agent. And that is the problem, impossible to find the correct view. What is the correct view in order to add "my_role"?... Please see the attachment.

    Thank you

    Michael.

    Since it's viewsI suspect basic upgrade will change things back.

    What you can try to do, is copy/deep copy these views to your own module and edit the dashboard to use the copy.

    Golan

  • Fantom iOS 10 alarms

    I have iPhone 6s more with iOS 10.0.2. Today, it is at least the second time that an alarm on this subject which is quite unexpected. This time, while I got on a train to work. I know that I have has not yet set the alarm for at least several days. Especially not for the moment, 06:45. When I check all the alarms to see whoever it might be, I see clearly that there is no alarm, when disabled, set to 06:45. It's really disturbing. Is anything else on that?

    I'm really disappointed in apple products lately. Even about this, not responsive mobile web site where I am writing this question.

    Hi vmvmvm,

    Welcome to the communities of Apple Support!

    We understand that your iPhone has sounded the alarm on a couple of occasions that you have never configured in the clock application. Because you have only noticed this problem since updating to iOS on iPhone, we perform an insulation here step to try to find out why this is happening.

    We want to reinstall you iOS on your iPhone. This should not affect any of your data, but it is always advisable to make sure that you have a current backup in iTunes or iCloud. Backup your iPhone, iPad and iPod touch - Apple Support

    Once you have a current backup, follow the steps in the section "If your device turns on but hangs during startup" in this article: If your iPhone, iPad or iPod touch won't turn on - Apple Support

    These steps will reinstall iOS. Keep in mind that these steps were written for a different issue, but they will always help us to further isolate the situation. Test your iPhone as usual once the relocation over and let us know if the problem persists.

    See you soon!

  • Is there a way to stop the countdown rehearsal before she goes off without open the alarm app and turning works?

    Is there a way to stop the countdown rehearsal before she goes off without open the alarm app and turning works? Basically, if I'm ready to get up and there are 4 minutes remaining on the countdown of repetition which is the fastest way to 'Cancel' the snooze and alarm?

    There isn't a way, I discovered that allows me to do without invoking the alarm and the alarm clearing application

  • Alarm

    I set my alarm in the morning and I made sure I phone was not on silence and the ringing was just away I also activate the vibration then in the morning when the alarm supposed to turn off that I checked my phone and nothing happening to me so I click on the home button, it's that the alarm going off , but there is no vibration or noise

    Hi there Kuenzia,

    Looks like you got wake up your phone in order to check that the alarm was going off the coast, but the phone was not making a noise or vibration. I would start by stop smoking parameters and alarm applications:

    Force an app to close the iOS

    1. press the Home button twice quickly. You will see small glimpses of your applications recently used.
    2. slide to the left to find the application you want to close.
    3. push upward on the overview of the application to close.

    When you have done that reboot the device and test again the question:

    iOS: switch off and on (restart) and reset

    If the problem persists, save your device in iTunes, then restore it like new and verify that it works.
     
    How to clear your iOS device and then set up as a new device or restore from backups

    If this is the case, restore your backup either check it still works and just reinstalled software or circumvent the problem in the backup file itself.

    Thank you for using communities of Apple Support. Could you give us an update to tell us whether or not this works?

  • Siri set timers or alarms or launch applications...

    I have a brand new 6 iPhone more and Siri cannot set timers or alarms! I have 'reset network settings' and it worked fine until I reconnected it to my wifi at home and then it stopped working again. To be clear, she can still give me time and make calculations, but she cannot set timers, alarms or the applications to launch, or God knows what else! It will not work even if I then drop the wifi network and switch back to LTE... So what am I, I expected to see, reset the network settings and then never use my router brand Apple once again?... Can I connect my phone to iTunes and reset it and all my passwords and settings AGAIN get new pending that all my applications and data to download just so it MIGHT work? (probably won't!) It's just absolutely ridiculous! So I'm dissatisfied and annoyed! I don't have time for this! Why on earth are there a few annoying bugs much like that on a phone I paid more than $900 for! In addition, it's actually the second 6 s more that I received, as the first I had to return and Exchange because the volume knob didn't work and something to another hardware or software-related was wrong, because the apps acted upward and games were CONSTANTLY gel... But that's another story... My problem is with this new phone that works very well outside Siri not currently able to set timers or set alarms or applications launch or God knows what else... Anyone got any quick suggestions or advice? Help, please!

    Soft reset on my phone (which is held the "home" button and the button sleep/wake until it stops and the apple logo appears) and now it works again. I hope this helps someone else who is having this very annoying problem! Before, I had tried "reset network settings" but which did not help at all. The soft reset hope it lasts...

Maybe you are looking for