Is there a JMX MBEAN console to see cool things like # successful of logins, tickets, timings, and # of failed logins? We currently use JMX to monitor various tomcat MBEAN attributes (using Zenoss instead of Nagios).
When I Google "cas jmx", shows some discussion points about JMX and for CAS4 as "monitoring" Currently, we use grep on the cas.log to get access history details. ken -----Original Message----- From: Marteau Christophe [mailto:[email protected]] Sent: Wednesday, January 13, 2010 2:38 AM To: [email protected] Subject: Re: [cas-user] Nagios plugins Hello, Yes if you tell me how I can do this and where in the wiki MARTEAU Christophe CICT 118, route de Narbonne 31000 Toulouse Scott Battaglia a écrit : > I think it would be useful to include scripts like this in a section > in our User Manual in our Wiki. > > Would you be willing to do a first draft based on what you have here, > and then others can add to it? > > Thanks > Scott > > > On Tue, Jan 12, 2010 at 10:29 AM, Marteau Christophe > <[email protected] <mailto:[email protected]>> wrote: > > Hello, > > Here is a plugins for those who are interested to check cas service by > nagios and if available, it displays performance data. > > The plugin make a cas authentication to display service status. For > retrieving performance data it does a login into the CAS service > managment application and look for the > "<nagiosPerformanceData></nagiosPerformanceData>" tags. > > Here an example to call the plugin : > perl check_cas.pl <http://check_cas.pl> -H cas.example.fr > <http://cas.example.fr> -u "/cas/login" -p 443 -l username > -a password -r "Log In Successful" > > To activate performance data, you have to add these lines in > "WEB-INF/view/jsp/services/viewStatistics.jsp" just before tag > "<%...@include file="includes/bottom.jsp" %>" : > > <!-- > Nagios Performance data > > Performance data is defined by Nagios as "everything after the | > of the > plugin output" - please refer to Nagios documentation for > information on > capturing this data to logfiles. However, it is the responsibility of > the plugin writer to ensure the performance data is in a "Nagios > plugins" format. This is the expected format: > > 'label'=value[UOM];[warn];[crit];[min];[max] > > Notes: > 1. space separated list of label/value pairs > 2. label can contain any characters > 3. the single quotes for the label are optional. Required if spaces, > = or ' are in the label > 4. label length is arbitrary, but ideally the first 19 > characters are > unique (due to a limitation in RRD). Be aware of a limitation in the > amount of data that NRPE returns to Nagios > 5. to specify a quote character, use two single quotes > 6. warn, crit, min or max may be null (for example, if the threshold > is not defined or min and max do not apply). Trailing unfilled > semicolons can be dropped > 7. min and max are not required if UOM=% > 8. value, min and max in class [-0-9.]. Must all be the same UOM > 9. warn and crit are in the range format (see Section 2.5). Must be > the same UOM > 10. UOM (unit of measurement) is one of: > 1. no unit specified - assume a number (int or float) of > things > (eg, users, processes, load averages) > 2. s - seconds (also us, ms) > 3. % - percentage > 4. B - bytes (also KB, MB, TB) > 5. c - a continous counter (such as bytes transmitted on an > interface) > > It is up to third party programs to convert the Nagios plugins > performance data into graphs. > > <nagiosPerformanceData>'Unexpired TGTs'=${unexpiredTgts};;;; > 'Unexpired > STs'=${unexpiredSts};;;; 'Expired TGTs'=${expiredTgts};;;; 'Expired > STs'=${expiredSts};;;;</nagiosPerformanceData> > --> > > Sorry for my poor english, and hope it will help > > -- > MARTEAU Christophe > > CICT > 118, route de Narbonne > 31000 Toulouse > > > -- > You are currently subscribed to [email protected] > <mailto:[email protected]> as: [email protected] > <mailto:[email protected]> > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user Your input is important to improve upon our continuous efforts to service you better. Please e-mail my manager at [email protected] with any feedback. CONFIDENTIALITY NOTICE: This e-mail together with any attachments is proprietary and confidential; intended for only the recipient(s) named above and may contain information that is privileged. You should not retain, copy or use this e-mail or any attachments for any purpose, or disclose all or any part of the contents to any person. Any views or opinions expressed in this e-mail are those of the author and do not represent those of CampusEAI Consortium or the Open Student Television Network. If you have received this e-mail in error, or are not the named recipient(s), you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited by the sender and to do so might constitute a violation of the Electronic Communications Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender and delete this e-mail and any attachments from your computer. Warning: Although precautions have been taken to make sure no viruses are present in this e-mail, the companies cannot accept responsibility for any loss or damage that arise from the use of this e-mail or attachments. -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
