diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/developer-guidelines.sgml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index 7bfcc73..1ae419a 100644 --- a/doc/developer-guidelines.sgml +++ b/doc/developer-guidelines.sgml | |||
@@ -87,11 +87,14 @@ | |||
87 | the entire output to appear in a pager message, which will get chopped | 87 | the entire output to appear in a pager message, which will get chopped |
88 | off after a certain length.</para> | 88 | off after a certain length.</para> |
89 | 89 | ||
90 | <para>As Nagios does not capture stderr output, you should only output to | ||
91 | STDOUT and not print to STDERR.</para> | ||
92 | |||
90 | <section><title>Print only one line of text</title> | 93 | <section><title>Print only one line of text</title> |
91 | <para>Nagios will only grab the first line of text from STDOUT | 94 | <para>Nagios will only grab the first line of text from STDOUT |
92 | when it notifies contacts about potential problems. If you print | 95 | when it notifies contacts about potential problems. If you print |
93 | multiple lines, you're out of luck. Remember, keep it short and | 96 | multiple lines, you're out of luck (though this will be a feature of |
94 | to the point.</para> | 97 | Nagios 3). Remember, keep your output short and to the point.</para> |
95 | 98 | ||
96 | <para>Output should be in the format:</para> | 99 | <para>Output should be in the format:</para> |
97 | <literallayout> | 100 | <literallayout> |
@@ -139,8 +142,9 @@ | |||
139 | 142 | ||
140 | <section><title>Screen Output</title> | 143 | <section><title>Screen Output</title> |
141 | <para>The plug-in should print the diagnostic and just the | 144 | <para>The plug-in should print the diagnostic and just the |
142 | synopsis part of the help message. A well written plugin would | 145 | usage part of the help message. A well written plugin would |
143 | then have --help as a way to get the verbose help.</para> | 146 | then have --help as a way to get the verbose help.</para> |
147 | |||
144 | <para>Code and output should try to respect the 80x25 size of a | 148 | <para>Code and output should try to respect the 80x25 size of a |
145 | crt (remember when fixing stuff in the server room!)</para> | 149 | crt (remember when fixing stuff in the server room!)</para> |
146 | </section> | 150 | </section> |