[Nagiosplug-devel] testing accounts

Andreas Ericsson ae at op5.se
Wed Sep 7 02:06:16 CEST 2005


Ton Voon wrote:
> 
> On 7 Sep 2005, at 09:18, Andreas Ericsson wrote:
> 
>> Garrett Honeycutt wrote:
>>
>>> I wrote check_mem to monitor memory usage of linux systems and would
>>> like to make it portable to other systems to enhance its usability.
>>>
>>
>>
>> How did you write it? If it's written in perl, it's not portable  
>> enough (many old or stripped down systems don't have perl).
> 
> 
> I don't have an issue with perl. All current distributions of Unix  
> include perl and it saves lots of crazy programming, so I am not  going 
> to dismiss an enhancement just because of the requirement of perl.
> 

That's fine for the networking plugins that run off the Nagios server. 
The local ones should be written in C or shell, since they are bound to 
run on a plethora of ancient or embedded systems where glazing such as 
perl isn't available. If you sift through the current distro you'll find 
that this is already the case.

The only exception is check_file_age.pl, which could be rewritten in C 
with just under 30 lines of code (35 if you want error-checking).

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Devel mailing list