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.
Summary of Contents for NETWORK 4.0 -
Page 1: ...Red Hat Network 4 0 Reference Guide...
Page 10: ......
Page 16: ...vi Introduction to the Guide...
Page 24: ...8 Chapter 1 Red Hat Network Overview...
Page 40: ...24 Chapter 2 Red Hat Update Agent Figure 2 11 Available Package Updates...
Page 58: ...42 Chapter 2 Red Hat Update Agent...
Page 80: ...64 Chapter 5 Red Hat Network Registration Client Figure 5 15 Text Mode Welcome Screen...
Page 186: ...170 Chapter 7 Monitoring...
Page 200: ...184 Chapter 8 UNIX Support Guide...
Page 214: ...198 Appendix A Command Line Config Management Tools...
Page 274: ...258 Appendix C Probes...
Page 282: ...266 Glossary...