Nrpe script monitoring Information output format
The Nrpe script returns the status value of the monitored host State to the monitoring side:
Plug-in return value service state host status
0 Normal (OK) run (UP)
1 Alarm (WARNING) Run (UP) or down/unreachable (unreachable) *
2 Emergency (CRITICAL) downtime (down)/unreachable (unreachable)
3 Unknown (UNKNOWN) Downtime (down)/unreachable (unreachable)
Attention:
If the use_aggressive_host_checking option (Force detection) is used in the server-side nagios.cfg, a return value of 1 indicates that the host status is down or unreachable (unreachable). In other cases, a return value of 1 causes the host State to be running (up).
Second, Nrpe script results Output Information Format:
Status Description Information | Performance data (optional)
Status Description Information : This information will be displayed after the monitoring service item on the Nagios page;
|: Delimiter (vertical bar is the pipe character), this is a special character, the output needs to escape;
Performance Data : This type of data is optional output in scripting, which is the data source for the Pnp4nagios performance graph plug-in, and the output format for that data is:
Detection Item name (usually abbreviated) = the current detection value (can be carried units); Warning value; Critical value, minimum value of detection item, maximum value of detection item
The above value cannot be left blank if it is not.
Example:
DISK ok-free Space:/Home 3326 MB (56%); |/home=2643mb;5948;5958;0;5968
Status Description information: DISK ok-free space:/Home 3326 MB (56%);
|: Delimiter (vertical bar)
Performance data:/home=2643mb;5948;5958;0;5968
This article is from the "4699096" blog, please be sure to keep this source http://4709096.blog.51cto.com/4699096/1747377
Nrpe script monitoring Information output format