New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph wifi clients for Deliberant DLB APC Button, DLB APC Button AF and DLB APC 2Mi #5456

Closed
sysmonk opened this Issue Jan 16, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@sysmonk
Contributor

sysmonk commented Jan 16, 2017

DO NOT DELETE THIS INFORMATION.

Please read this information carefully.

GitHub issues is for feature requests or bugs, please do not post issues asking for help or how to do X, Y or Z.
You can use our irc channel ##librenms on freenode to ask questions or our community site.

Please confirm each of the sections below by putting an x in the box like [x].

  • Is your install up to date? Updating your install
    Please do not submit an issue if your install is not up to date within the last 24 hours or on a stable monthly release.
  • Please include all of the information between the ==================================== section of ./validate.php which you can run from the cli.
  • Unless your issue is for a WebUI fix or feature then please provide ALL info asked for here.
  • Please provide as much detail as possible.

==========================================================
Component | Version
--------- | -------
LibreNMS | 44071e8
DB Schema | 154
PHP | 7.0.14-1~dotdeb+8.1
MySQL | 10.0.28-MariaDB-0+deb8u1
RRDTool | 1.4.8
SNMP | NET-SNMP 5.7.2.1

Can we please get wifi clients graphed for Deliberant DLB APC Button, DLB APC Button AF and DLB APC 2mi?

Something like this should be enough:

index 94a29df..c6be7c9 100644
--- a/includes/polling/wifi.inc.php
+++ b/includes/polling/wifi.inc.php
@@ -88,6 +88,14 @@ if ($device['type'] == 'network' || $device['type'] == 'firewall' || $device['ty
             echo "AP does not supply client counts\n";
         }
         include 'includes/polling/mib/ubnt-unifi-mib.inc.php';
+    } elseif  ($device['os'] == 'deliberant' && str_contains($device['hardware'], "DLB APC Button")) {
+        echo 'Checking Deliberant APC Button wireless clients... ';
+        $wificlients1 = snmp_get($device, '.1.3.6.1.4.1.32761.3.5.1.2.1.1.16.7', '-OUqnv');
+        echo $wificlients1." clients\n";
+    } elseif  ($device['os'] == 'deliberant' && $device['hardware'] == "\"DLB APC 2Mi\"") {
+        echo 'Checking Deliberant APC 2Mi wireless clients... ';
+        $wificlients1 = snmp_get($device, '.1.3.6.1.4.1.32761.3.5.1.2.1.1.16.5', '-OUqnv');
+        echo $wificlients1." clients\n";
     }
 
     // Loop through all $wificlients# and data_update()

I'm running this code for a few days now, everything looks ok.

@laf

This comment has been minimized.

Show comment
Hide comment
@laf

laf Jan 16, 2017

Member

Please submit this code in a pull request, we can't accept the code until you sign the contributors agreement and then submit the pull request.

Member

laf commented Jan 16, 2017

Please submit this code in a pull request, we can't accept the code until you sign the contributors agreement and then submit the pull request.

@lock

This comment has been minimized.

Show comment
Hide comment
@lock

lock bot May 18, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed.

lock bot commented May 18, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed.

@lock lock bot locked as resolved and limited conversation to collaborators May 18, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.