Alerts; scheduling jobs

Steven North swn at ocsystems.com
Fri Aug 19 07:04:32 UTC 2011


Mazz,

It's working fine now.  I think the most import point was "redploy it if 
you mess with the descriptor".  ;-)

Now I'm looking at a problem displaying alert notifications in the UI.   
One of those globally caught exceptions, and it looks like the table is 
trying to format an int, but the string is the full alert notification 
string.  I assume this is my problem.  I know I have some "bad" alert 
data hanging around int he database--is there a way to purge it?  Do I 
have to reset the database somehow?

Thanks again,

Steve

On 8/18/2011 10:40 PM, Steven North wrote:
> Mazz,
>
> I didn't see any of those messages in the server log and I don't see any
> of the job scheduling properties in the plugin configuration.  I took
> your suggestion of building the sample server plugin and it installed
> just fine.  So that leads me to believe that I have something wrong with
> my configuration.  I guess I'll start doing some more comparing between
> the sample and my version.
>
> Thanks,
>
> Steve
>
> On 8/18/2011 8:20 PM, John Mazzitelli wrote:
>> Look in your server log, see if you find anything starting like this:
>>
>>      Scheduling server plugin periodic job ....
>> or
>>      Failed to get scheduled jobs for server plugin ...
>> or
>>       Cannot schedule plugins jobs ...
>> or
>>       Failed to get server plugin env for ...
>> or
>>       Failed to schedule job ...
>>
>>> Is there some way to configure/manager/view jobs from the UI?
>> You can configure the jobs from:
>>
>> Administration>Plugins
>>
>> Click on "Server Plugins" tab - find your plugin. FIRST - make sure you
>> plugin really is enabled (should have a green checkmark), then click in
>> the link to your plugin. This shows you the details - you then click the
>> "Configure" link. You'll see a tree view of your plugins with your
>> plugin's configuration shown. This is where you'll see the scheduled
>> jobs configuration settings.
>>
>>> Do I have to put scheduled-jobs in a separate generic-plugin?
>> No. All plugins can support scheduled jobs.
>>
>> See if you can grab the sample server plugin in
>> /etc/samples/custom-serverplugin, build it (just "mvn install") and
>> deploy it (just grab the .jar from the target/ dir and put the .jar in
>> your RHQ Server's /plugin directory) and see how that works. Once you
>> enable that plugin (it is disabled upon deployment - you have to
>> manually enable it from the Admin>Plugins page) you can fiddle with its
>> configuration, its .xml (redploy it if you mess with the descriptor) -
>> just play around with it to see how it works to get a feel for what you
>> can do.
>>
>> ***NOTE:*** I just had to check in some fixes to that sample plugin to
>> get it to compile and be deployable in the latest RHQ 4 - so do a git
>> pull from the master branch to get the latest code before playing wiht
>> the sample server plugin.
>>
>> _______________________________________________
>> rhq-devel mailing list
>> rhq-devel at lists.fedorahosted.org
>> https://fedorahosted.org/mailman/listinfo/rhq-devel
> _______________________________________________
> rhq-devel mailing list
> rhq-devel at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/rhq-devel



More information about the rhq-devel mailing list