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