nrpe for windows plugins

Tim Shouldice tim at mintoskatingclub.com
Tue Jan 28 15:15:40 CET 2003


Here on the rrd-users list is a perfect example of some perl soure to write plugins for a 
Windows version of nrpe. The code below also demonstrates how simple it is to overcome a 
major problem with NSClient - no ability to get instance information.

Could the person who compiled nrpe for windows using the apache libraries please update 
us with more info on how the compilation was done...

/Tim Shouldice

On Jan 28, Stephan Harren <sh at abovenet.de> wrote:

> 
> With perl and OLE.
> 
> Example:
> use Win32::OLE qw(in);
> $wmi=Win32::OLE->GetObject('winmgmts:');
> foreach $pstat (in $wmi->InstancesOf('Win32_LogicalDisk')) {
> 	print $pstat->{size};
> }
> 
> You can find all available WMI classes at: 
> <a href='http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/wmisdk/wmi/win32_classes.asp'>http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/wmisdk/wmi/win32_classes.asp</a>
> 
> Best regards,
> 
> Stephan
> 
> Am Montag, 27. Januar 2003 17:35 schrieb Jon Brown:
> > Can someone please point in to instructions on how to pull wmi information.
> >
> > Jonathan Brown
> 
> -- 
> Stephan Harren
> Manager Site Operations
> MFN-IS
> -------------------------------
> Phone +49 69 90554 153
> Fax +49 69 90554 111
> Cell +49 173 7011126
> 
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     <a href='http://www.ee.ethz.ch/~slist/rrd-
users'>http://www.ee.ethz.ch/~slist/rrd-users</a>
> WebAdmin    <a 
href='http://www.ee.ethz.ch/~slist/lsg2.cgi'>http://www.ee.ethz.ch/~slist/lsg2.cgi</a>
> 
> 




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list