Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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)

Replies are listed 'Best First'.
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.


        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...


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2023-02-01 16:33 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (11 votes). Check out past polls.