212
Appendix C. Probes
Requirements
— The Red Hat Network Monitoring Daemon (
rhnmd
) must be running on
the monitored system to execute this probe.
Field
Value
Command*
OK Exit Status*
0
Warning Exit Status*
1
Critical Exit Status*
2
Timeout
15
Table C-9. General::Remote Program settings
C.4.2. General::Remote Program with Data
The General::Remote Program with Data probe allows you to run any command or script
on your system and obtain a value, as well as a status string. To use this probe, you must
include XML code in the body of your script. This probe supports the following XML tags:
•
<
perldata
> <
/perldata
>
•
<
hash
> <
/hash
>
•
<
item key =" "
> <
/item
>
The remote program will need to output some iteration of the following code to
STDOUT
:
<
perldata
>
<
hash
>
<
item
key="data"
>
10
<
/item
>
<
item
key="status_message"
>
status message here
<
/item
>
<
/hash
> <
/perldata
>
The required value for
data
is the data point to be inserted in the database for time-
series trending. The
status_message
is optional and can be whatever text string is
desired with a maximum length of 1024 bytes. Remote programs that do not include a
status_message
still report the value and status returned.
Requirements
— The Red Hat Network Monitoring Daemon (
rhnmd
) must be running on
the monitored system to execute this probe. XML is case-sensitive. The
data
item key
name cannot be changed and it must collect a number as its value.
Содержание NETWORK 4.0 -
Страница 1: ...Red Hat Network 4 0 Reference Guide...
Страница 10: ......
Страница 16: ...vi Introduction to the Guide...
Страница 24: ...8 Chapter 1 Red Hat Network Overview...
Страница 40: ...24 Chapter 2 Red Hat Update Agent Figure 2 11 Available Package Updates...
Страница 58: ...42 Chapter 2 Red Hat Update Agent...
Страница 80: ...64 Chapter 5 Red Hat Network Registration Client Figure 5 15 Text Mode Welcome Screen...
Страница 186: ...170 Chapter 7 Monitoring...
Страница 200: ...184 Chapter 8 UNIX Support Guide...
Страница 214: ...198 Appendix A Command Line Config Management Tools...
Страница 274: ...258 Appendix C Probes...
Страница 282: ...266 Glossary...