Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Reporting state of your app via SNMP (on Win32)

by Eyck (Priest)
on Aug 02, 2007 at 11:19 UTC ( #630250=perlquestion: print w/ replies, xml ) Need Help??
Eyck has asked for the wisdom of the Perl Monks concerning the following question:

Monks, I need to report data to network monitoring app, how can I plug into windows snmp agent?

I can see that various applications perform such reporting (for example MS SQL Servers), but I'm having problems finding a way to do the same from inside perl app...

Comment on Reporting state of your app via SNMP (on Win32)
Re: Reporting state of your app via SNMP (on Win32)
by rpanman (Scribe) on Aug 02, 2007 at 11:42 UTC
    I'm not sure from your question about what you actually want to do with SNMP. Have you tried looking at the Net::SNMP module on CPAN?
      With Net::SNMP main concern is reading data from some server in the network.

      The question is - how can I export that data, so that someone using for example Net::SNMP is able to read it?

      In other words - I need to be able to act as a SNMP server, but since you normally already have SNMP agent running (be it Windows Agent or unixish snmpd daemon), ones needs a way of exporting some variable via that previously-running daemon.

      To do that, you need some way of plugging into that daemon..., I hope I cleared it up.

        Eyck:

        Google for information about the WMI SDK (Windows Measurement Interface) for info. I've not done it, but I believe that Windows supports accessing the same data through WMI and SNMP. So if you can publish your data to WMI, you should be able to export it to SNMP. Sorry I can't provide any better info...

        ...roboticus

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://630250]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-12-28 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls