[Nagiosplug-devel] send_nsca
Andreas Ericsson
ae at op5.se
Tue Jan 18 10:37:42 CET 2011
On 01/18/2011 10:05 AM, Joram Agten wrote:
> Hello,
>
> 1.
> I had a problem with send_nsca and the delimiter character.
> I supplied -d ';' and then it took ' as delimiter.
> but there was no warning that I supplied more than one character.
>
> small possible improvement to the code (around line 480 in send_nsca.c)
>
> /* delimiter to use when parsing input */
> else if(!strcmp(argv[x-1],"-d")){
> if(x<argc){
> if(strlen(argv[x])> strlen(delimiter)) {
> printf("only %d delimiter character(s) allowed, got %d, '%s'\n",
> strlen(delimiter), strlen(argv[x]), argv[x]);
> return ERROR;
> }
> snprintf(delimiter,sizeof(delimiter),"%s",argv[x]);
> delimiter[sizeof(delimiter)-1]='\x0';
> #ifdef DEBUG
> printf("delimiter='%s'\n",delimiter);
> #endif
> x++;
> }
> else{
> return ERROR;
> }
> }
>
I'd suggest you find the send_nsca maintainer (Ethan) and send a
proper patch to him, with nagios-devel at users.lists.sourcefourg.net
on Cc.
> 2. Is it possible to send multi line passive service checks?
>
AFAIK: No.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
More information about the Devel
mailing list