PHP Classes

Web page to monitor devices via SNMP: Access local network from Web page hosted in VPS server

Recommend this page to a friend!
  All requests RSS feed  >  Web page to monitor devices via SNMP  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Web page to monitor devices via SNMP

Edit

Picture of Pedro Agriarte by Pedro Agriarte - 2 years ago (2021-10-15)

Access local network from Web page hosted in VPS server

This request is clear and relevant.
This request is not clear or is not relevant.

+2

In local PHP Web with XAMPP, I can get SNMP data from my network printer. I can see, for example, if it has toner, a paper jam, etc.

The same Web site hosted on a virtual private server does not return data because the SNMP library only has a scope on the server-side.

I'm looking for a way that the SNMP library can see the local network.

Maybe Laravel/Apache or maybe Node/Angular or JavaScript?

  • 2 Clarification requests
  • 2. Picture of Pedro Agriarte by Pedro Agriarte - 2 years ago (2021-10-18) Reply

    Thanks Manuel,

    Do you mean that with this class I can see a local network from a web page hosted on an internet server (VPS)?

    Or will I only be able to see the server side?

    • 3. Picture of Manuel Lemos by Manuel Lemos - 2 years ago (2021-10-29) in reply to comment 2 by Pedro Agriarte Comment

      Sorry for the delay. I only have seen your question now.

      You can also see the network devices that are accessible from the server computer where PHP is running.

      If your server is on the same local network as you computer that runs your browser, you may also see the devices that are in the local network.

    • 4. Picture of Pedro Agriarte by Pedro Agriarte - 2 years ago (2021-10-30) in reply to comment 3 by Manuel Lemos Comment

      Thanks Manuel, all answers are always welcome

      Maybe I'm looking for an impossible challenge. PHP/Laravel and nodejs are running on the backend and I want to see the frontend

    • 5. Picture of Manuel Lemos by Manuel Lemos - 2 years ago (2021-10-30) in reply to comment 4 by Pedro Agriarte Comment

      Well, if the server is not the same network that you call local, the server that runs this package using the PHP SNMP support usually cannot connect to the local devices because these use private IP addresses.

      The SNMP query components can only query reachable devices. Devices with private IP addresses are not reachable when they are inside a local network unless some routing service would make them reachable.

      Usually, this does not happen because it would expose those devices to eventual security attacks.

  • 1. Picture of Pedro Agriarte by Pedro Agriarte - 2 years ago (2021-10-18) Reply

    Thanks Manuel,

    Do you mean that with this class I can see a local network from a web page hosted on an internet server (VPS)?

    Or will I only be able to see the server side?

    Ask clarification

    1 Recommendation

    Laravel SNMP Get Poller: Perform network queries using the SNMP protocol

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +1

    Picture of Manuel Lemos by Manuel Lemos Reputation 23325 - 2 years ago (2021-10-17) Comment

    You can use this package to extract the status information on the devices you want to query on the network server.

    Then you can develop the code for a page that will use the information returned by this package to show the status of the devices on that page.


    Recommend package
    : 
    :