VMware Cloud Community
hypermike
Contributor
Contributor
Jump to solution

what does disable alerts from the admin tab do ???--

what does disable alerts from the admin tab do ???--

I have noticed if i click from the administration tab on the Hyperic server to disable alerts , I dont get any..

HOwever looking in the alert center --all the alerts are still active??

Also looking at a particular alert for a server or app show the same status active..

So whats Hyperic doing if we disable alerts from the admin tab ???
Reply
0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

Hi Mike,

If you're running Hyperic 4.3 or greater you can use HQApi to set the option. See examples below:

$ ./bin/hqapi.sh serverConfig getParameter --key=HQ_ALERTS_ENABLED
Current value for HQ_ALERTS_ENABLED = true

$./bin/hqapi.sh serverConfig setParameter --key=HQ_ALERTS_ENABLED --value=false
Successfully updated HQ configuration.
$ ./bin/hqapi.sh serverConfig getParameter --key=HQ_ALERTS_ENABLED
Current value for HQ_ALERTS_ENABLED = false

$ ./bin/hqapi.sh serverConfig setParameter --key=HQ_ALERTS_ENABLED --value=true
Successfully updated HQ configuration.
$ ./bin/hqapi.sh serverConfig getParameter --key=HQ_ALERTS_ENABLED
Current value for HQ_ALERTS_ENABLED = true

View solution in original post

Reply
0 Kudos
8 Replies
admin
Immortal
Immortal
Jump to solution

Mike,

It tells the alert system to not fire any alerts on a global scale. It basically pauses the alert system and doesn't change any individual alerts.
hypermike
Contributor
Contributor
Jump to solution

I for got to mention The reason for asking this question

That was :

I'd like to be able to "set" that somehow on boot, or figure out where in the database it's being change so we can do it without the GUI.
Reply
0 Kudos
admin
Immortal
Immortal
Jump to solution

Hi Mike,

If you're running Hyperic 4.3 or greater you can use HQApi to set the option. See examples below:

$ ./bin/hqapi.sh serverConfig getParameter --key=HQ_ALERTS_ENABLED
Current value for HQ_ALERTS_ENABLED = true

$./bin/hqapi.sh serverConfig setParameter --key=HQ_ALERTS_ENABLED --value=false
Successfully updated HQ configuration.
$ ./bin/hqapi.sh serverConfig getParameter --key=HQ_ALERTS_ENABLED
Current value for HQ_ALERTS_ENABLED = false

$ ./bin/hqapi.sh serverConfig setParameter --key=HQ_ALERTS_ENABLED --value=true
Successfully updated HQ configuration.
$ ./bin/hqapi.sh serverConfig getParameter --key=HQ_ALERTS_ENABLED
Current value for HQ_ALERTS_ENABLED = true
Reply
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

We are only running 4.1.1 .. Can we us e Mysql commands ? or something else .
Reply
0 Kudos
admin
Immortal
Immortal
Jump to solution

Mike,

There wouldn't be a "supported" way of doing that with that version.

If you'd be willing to do something a bit hackish then you could probably send a post via http to the server containing the needed data to disable/enable it. However, that would be just a hack.

Only other way I could think of would be to wrote your own HQU plugin (Not to be confused with a resource plugin which you've already written) that will disable this.

Changing it in the DB wouldn't have an effect on a running hq server.
Reply
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

Thanks.. I updated with the snapshot you wanted:
If you want could you attach (or email me) a screenshot of your platform in inventory?

I dont have your email address.. I cant send one via hyperic it fails WES .

Can you take a look at snapshot from :

The thread "Your plugin devoplment web page shows a command to test a plugins metric", which you have flagged for email nofication, was updated on Aug 4, 2010 5:49:59 PM by Wes... See last entry with snapshot attached . if this should be in here please delete or I can try
Reply
0 Kudos
admin
Immortal
Immortal
Jump to solution

Hi Mike,

I don't see any image on the other thread or this one.

My email address is my username @vmware.com where my username is the same username as here. (trying to avoid spam so I don't want to put the full address here)
Reply
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

Youre email to me said to fix this problem

:It will require that the existing resource be deleted and allowed to be
rediscovered in order to have the new names.

Where do I start ..

1 do I remove the plugins 1st or :

go to browse resources and :

delete platform(monitor fans) , do I then need to go down a level and delete servers ?

anything else ? groups members (all the inlet, fans, powersupplies group memebers ? +

then remove plugins ?
Reply
0 Kudos