[Nagiosplug-devel] oddity about check_procs plugin and solaris

Philip Brown ppb at usc.edu
Thu Apr 30 18:09:39 CEST 2009


Andreas Ericsson wrote:
> Philip Brown wrote:
>> 
>> "check_procs.c" line 196
>>
>>        /* Some ps return full pathname for command. This removes path */
>>        strcpy(procprog, base_name(procprog));
>>
>> Older versions (1.3.1 specifically ) do not do this truncating.
>>.....
> So remove the truncation. I agree that it's rather stupid to on purpose
> modify arguments given by the user, and a patch removing such behaviour
> would get my support so long as it doesn't break anything else.
> Please send the diff as a unified diff file against the latest git head.
> I'll review it when it lands. Thanks.


finally got around to sitting down and doing this.

Patch attached (if mozilla doest screw up the attachment)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: procs.patch
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20090430/68fa6bdd/attachment.ksh>


More information about the Devel mailing list