Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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,

...

so

...

you

...

need

...

a

...

valid

...

CAS

...

account

...

for

...

make

...

it

...

working.

...

For

...

retrieving

...

performance

...

data

...

it

...

does

...

a

...

login

...

into

...

the

...

CAS

...

service

...

managment

...

application

...

and

...

look

...

for

...

the

...

"<nagiosPerformanceData></nagiosPerformanceData>"

...

tags.

...

The

...

user

...

account

...

needs

...

rights

...

to

...

acces

...

the

...

service

...

managment

...

application

...

to

...

get

...

performance

...

data.

...

Here

...

an

...

example

...

to

...

call

...

the

...

plugin

...

:

...


perl

...

check_cas.pl

...

-H

...

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"

...

%>"

...

:

Code Block
 <\!-\-
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:
&nbsp;  1. space separated list of label/value pairs
&nbsp;  2. label can contain any characters
&nbsp;  3. the single quotes for the label are optional. Required if spaces,  = or ' are in the label
&nbsp;  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
&nbsp;  5. to specify a quote character, use two single quotes
&nbsp;  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
&nbsp;  7. min and max are not required if UOM=%
&nbsp;  8. value, min and max in class \[-0-9.\]. Must all be the same UOM
&nbsp;  9. warn and crit are in the range format (see Section 2.5). Must be
 the same UOM
&nbsp;10 10. UOM (unit of measurement) is one of:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        1. no unit specified - assume a number (int or float) of things 
(eg, users, processes, load averages)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        2. s - seconds (also us, ms)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        3. % - percentage
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        4. B - bytes (also KB, MB, TB)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        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>
\-->


The

...

plugins

...

just

...

get

...

the

...

data betweens  "nagiosPerformanceData"

...

and

...

add

...

it

...

after

...

the

...

plugins

...

state.

...

If

...

data

...

are

...

not

...

well

...

formated,

...

performance

...

data

...

will

...

not

...

work.