mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
output: use symbolic exit values for nagios commands
And ensure the exit values are set no matter how user will limit output. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
5454ab7086
commit
eb55946595
2 changed files with 15 additions and 3 deletions
|
|
@ -191,6 +191,13 @@ enum limbits {
|
|||
BIT3 = 0x4
|
||||
};
|
||||
|
||||
/*! \def STATE_OK
|
||||
* \brief Nagios alarm exit value.
|
||||
*/
|
||||
#define STATE_OK 0
|
||||
#define STATE_WARNING 1
|
||||
#define STATE_CRITICAL 2
|
||||
|
||||
/* Global variables */
|
||||
/* \var prefix_length Length of each prefix. */
|
||||
int prefix_length[2][NUM_OF_PREFIX];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue