Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Reporting state of your app via SNMP (on Win32)

by Eyck (Priest)
on Aug 02, 2007 at 11:19 UTC ( [id://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.

        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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-19 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found