[Nagiosplug-devel] devloper guidelines..

Subhendu Ghosh sghosh at sghosh.org
Mon Jul 15 06:05:02 CEST 2002


On Mon, 15 Jul 2002 Volker.Aust at premiere.de wrote:

> I'm using named subroutines too. Is this restriction only important when
> using ePN? Currently I'm not using ePN. Is there any possibility to test a
> perl plugin for conformity with ePN beside to have a second installation?

look at mini_epn in the nagios/contrib directory - no need for a secondary 
installation.

Yes, the restrictions are only for embedded perl, but the performance 
gains of ePN are pretty large so all the standard plugins should support 
ePN. 

Named subroutins are fine - just not nested named subroutines...  I'll 
update the docs to reflect the change.

-sg


> 
> To the naming: I'm a friend of verbose names. My scheme is to include not
> only the 'transport' for the check (_snmp_, _smb_, ...) but also the source
> of the information. I have several plugins which get their information over
> SNMP from diffent MIB's. Eg.
> 
> check_snmp_cim_cpu	cpu utilization from Compaq Insight Manager
> check_snmp_cim_fs		filesys utilization from CIM
> check_snmp_cim_therm	thermal status from CIM
> check_snmp_lm_service	service check from Lan Manager MIB for NT/W2K
> check_snmp_rdbms_???	(not started coding because waiting for an answer
> from IBM relating DB2 and SNMP)
> 

I have a preference for verbose naming as well although in this particular 
case, I might have been confused between CIM the tecnology for DMTF and 
the compaq insight manager.



> What do you think?
> 
> -vol
> 
> > -----Original Message-----
> > From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
> > Sent: Thursday, July 11, 2002 6:56 PM
> > To: NagiosPlug Devel
> > Subject: [Nagiosplug-devel] devloper guidelines..
> > 
> > 
> > about named subroutines restrictions..
> > 
> > Perhaps that should be nested named subroutines?
> > see:
> > http://perl.apache.org/guide/perl.html  
> > 
> > I use named subroutines all the time :)
> > 
> > Stanley - any comments?
> > 
> > -- 
> > 
> > -sg
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > PC Mods, Computing goodies, cases & more
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Nagiosplug-devel mailing list
> > Nagiosplug-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> > 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagiosplug-devel mailing list
> Nagiosplug-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> 

-- 






More information about the Devel mailing list