diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/developer-guidelines.sgml | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index f950b8fe..193bc9be 100644 --- a/doc/developer-guidelines.sgml +++ b/doc/developer-guidelines.sgml | |||
| @@ -136,14 +136,6 @@ | |||
| 136 | crt (remember when fixing stuff in the server room!)</para> | 136 | crt (remember when fixing stuff in the server room!)</para> |
| 137 | </section> | 137 | </section> |
| 138 | 138 | ||
| 139 | <section><title>Return the proper status code</title> | ||
| 140 | <para>See <xref linkend="ReturnCodes"> below | ||
| 141 | for the numeric values of status codes and their | ||
| 142 | description. Remember to return an UNKNOWN state if bogus or | ||
| 143 | invalid command line arguments are supplied or it you are unable | ||
| 144 | to check the service.</para> | ||
| 145 | </section> | ||
| 146 | |||
| 147 | <section><title>Plugin Return Codes</title> | 139 | <section><title>Plugin Return Codes</title> |
| 148 | <para>The return codes below are based on the POSIX spec of returning | 140 | <para>The return codes below are based on the POSIX spec of returning |
| 149 | a positive value. Netsaint prior to v0.0.7 supported non-POSIX | 141 | a positive value. Netsaint prior to v0.0.7 supported non-POSIX |
| @@ -190,8 +182,12 @@ | |||
| 190 | <entry align="center"><para>3</para></entry> | 182 | <entry align="center"><para>3</para></entry> |
| 191 | <entry valign="middle"><para>Unknown</para></entry> | 183 | <entry valign="middle"><para>Unknown</para></entry> |
| 192 | <entry><para>Invalid command line arguments were supplied to the | 184 | <entry><para>Invalid command line arguments were supplied to the |
| 193 | plugin or the plugin was unable to check the status of the given | 185 | plugin or low-level failures internal to the plugin (such as unable to fork, |
| 194 | hosts/service</para></entry> | 186 | or open a tcp socket) that prevent it from performing the specified |
| 187 | operation. Higher-level errors (such as name resolution errors, | ||
| 188 | socket timeouts, etc) are outside of the control of plugins and should | ||
| 189 | generally NOT be reported as UNKNOWN states. | ||
| 190 | </para></entry> | ||
| 195 | </row> | 191 | </row> |
| 196 | </tbody> | 192 | </tbody> |
| 197 | </tgroup> | 193 | </tgroup> |
