From 914eeaf2bd96611196250fd638c2b6f2115e23d3 Mon Sep 17 00:00:00 2001 From: TokenRing Date: Mon, 20 Jun 2022 11:38:59 -0500 Subject: [PATCH] Update external_scripts.md The numbering system for the exit codes is unclear here; you should consider changing the list from 1 through 4, to 0 through 3 - if people were to use 1 through 4, they would end up with their scripts reporting the wrong exit codes! --- docs/docs/howto/external_scripts.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/howto/external_scripts.md b/docs/docs/howto/external_scripts.md index eacbf76a9..5a458a279 100644 --- a/docs/docs/howto/external_scripts.md +++ b/docs/docs/howto/external_scripts.md @@ -23,10 +23,10 @@ A simple script in batch (.bat) looks like this: This prints a message "OK ..." and return status 0 which equates to ok or good. Exit codes are the same as Nagios use: -1. OK -2. WARNING -3. CRITICAL -4. UNKNOWN +0. OK +1. WARNING +2. CRITICAL +3. UNKNOWN The message can be anything and is passed along as text. Notice you require Nagios 3 if you want to use multiple lines in the message. And please notice that most protocol and transports have hard coded payload lengths such as NRPE (1024) NSCA (512) etc etc.