max size of an active check plugin output
Marc Powell
marc at ena.com
Wed Apr 21 21:26:18 CEST 2004
Pradeep Hodigere <mailto:pradeeph at yahoo-inc.com> wrote:
> Hi,
>
> We have an active check plugin whose output exceeds 400 chars.
> Nagios seems to be truncating the output to about 400 characters when
> it passes this on to the Event broker. I'm aware of the restriction
> on the plugin output size for a passive check but want to confirm
> that a similar size limitation is imposed on the plugin output, for
> an active check.
Yes:
common/objects.h:#define MAX_PLUGINOUTPUT_LENGTH
352 /* max. length of plugin output */
And from base/checks.c --
/* reaps service check results */
void reap_service_checks(void){
service_message queued_svc_msg;
service *temp_service=NULL;
host *temp_host=NULL;
time_t preferred_time;
time_t next_valid_time;
char temp_buffer[MAX_INPUT_BUFFER];
int state_change=FALSE;
int hard_state_change=FALSE;
int route_result=HOST_UP;
int dependency_result=DEPENDENCIES_OK;
time_t current_time;
int first_check=FALSE;
int state_was_logged=FALSE;
char old_plugin_output[MAX_PLUGINOUTPUT_LENGTH]="";
char temp_plugin_output[MAX_PLUGINOUTPUT_LENGTH]="";
char *temp_ptr;
time_t reaper_start_time;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list