Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update external_scripts.md #771

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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