[Nagiosplug-devel] RFC: OS specific ifdefs in main plugin code

Voon, Ton Ton.Voon at egg.com
Mon Sep 29 08:02:13 CEST 2003


Hi! Wanted to get some opinions on the latest development of the plugins.

I'm starting to use OS specific ifdefs to get system data and I was
wondering if this is the right way to go. The latest version of check_swap.c
has ifdefs for Solaris and AIX as they have different ways for checking
swap. It could have been done via ./configure, but there are too many
different possibilities (for instance, need to run different switches for
individual partition checks versus a summary of swap). 

If it was done via ./configure, you'd also need to set flags to say whether
to ignore first lines (some have header info, others don't), work out
different format responses (some return megabytes, some return free, some
return percentage).

I think all this is easier done within the code itself. Is this bad?

Ton


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.





More information about the Devel mailing list