Skip to content

Commit

Permalink
Merge pull request #735 from harloprillar/patch-1
Browse files Browse the repository at this point in the history
Fix external script exit codes descriptions in doc
  • Loading branch information
mickem authored Feb 15, 2025
2 parents aaf672c + 8c5b529 commit 87c1a9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/howto/external_scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 87c1a9b

Please sign in to comment.