* Nac polling improvement
Was loading all nac entries from the DB, then filtering them. Now it only loads non-historical entries off the bat.
All this because the filter was returning the wrong type...
* Add missing get
This adds a MIB from the Baicells website, lightly modified
(s/BAICELLS-MIB/BAICELLS-CPE-MIB), and yaml files for LibreNMS. Currently OS
detection works, but sensors are reporting '0'.
I can easily get the data with snmpget, so I know that part is working. The
issue I'm seeing looks like the {{ $index }} substitution in my sensor yaml
isn't being filled out. Here's some example output from poller.php that backs
this up:
```
.1.3.6.1.4.1.53058.2.2.7.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.8.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.12.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.13.: Unknown Object Identifier ()
```
* adjustments to baicells od04
* undo modification to mib
* add original unmodified mib, tweak yaml, add time conversion function
* added baicells od04 snmprec
* skip invalid values
* Rename baicells-od04.snmprec.txt to baicells-od04.snmprec
* Update and rename BaiCE-BM-2.5.23_SNMP_MIB-CAT4.txt to BAICELLS-MIB
* Update baicells-od04.yaml
* Create BaicellsOd04.php
* move userfunc into OS
* style
* squash php casting warning
* missing static
* style
* fix {{ $index }}
* Create baicells-od04.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Fix expandable sizing
* Temp fix: port_id_{low,high} is actually ifIndex
* new PortsStack discovery module, store actual port_ids
* Show 4 rows of ports by default
* Add test data
* Fix up the single port view too
* Apply fixes from StyleCI
* Update db_schema.yaml
* Update base migration because sqlite cannot add primary keys
* Fix phpstan failures
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Snmpsim use python venv
Patch to enable listening while minimizing output
Update lnms dev:simulate, tests, and ./scripts/save-test-data.php
removed old option to start snmpsim from older scripts, use lnms dev:simulate
* Apply fixes from StyleCI
* various fixes
* Remove patch official package is updated
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
Always ignore underscores. Vendors constantly break this rule and it doesn't seem to have any side effects to enable -Pu.
translate respect hideMib() option
* Create ArubaosCx.php
* Create arubaos-cx_nac.snmprec
* Remove un-needed "use" lines
* Add spaces for formatting
* Add blank default values if information is not present
For table entries that do not have a value, add a fallback to a blank string, following the lead of other OS files
* Changing return types for vlan to match column type
* Delete indents on blank lines to please the formatter
* Create arubaos-cx_nac.json
* Update arubaos-cx_nac.json
* fix authz_status missing value
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* CHG: Dynamic debug flag and ability to exclude networks.
* Update config_definitions.json
* Update settings.php
* Update documentation.
* FIX: StyleCI Fixes.
* FIX: StyleCI Fixes.
* CHG: Changed excluding by network to by group membership
* Update settings.php
* Update config_definitions.json
* Update documentation.
* FIX: StyleCI Fixes.
* FIX: StyleCI Fixes.
* FIX: Fetch device data from cache.
* Add a check to see if we are trying to exclude by group before fetching groups.
* remove whitespace
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add entity physical test data
* Fix voss_8608 accidental character
* Non-ascii character... unsure about this one.
* Fix bad types on test data.
* Fix bad types on test data.
* Updated test data since snmprec is repaired a bit
* More fixes
* Fixup more bad data
* Extra null byte removed
* Add missing info
* Fix bad data
* Update siteboss571.yaml - Tidy up descriptions and fix current sensors
Fix issue with current sensors 1.1 and 200.1 - these were being overwritten with the per-module sensors due to overlapping IDs. insert extra index definition for each type. this is a breaking change that will cause new RRD files to be created for the current sensors with the new index names.
* Update siteboss571_siteboss571.snmprec
update test data
* Update siteboss571_siteboss571.json
* Revert "Update siteboss571_siteboss571.snmprec"
This reverts commit b767dbc91b.
* Revert "Update siteboss571_siteboss571.json"
This reverts commit a144078ed8.
* Create siteboss571_siteboss571-2.snmprec
* Remove Siteboss571 PHP detection, add new json test output
* Update siteboss571_siteboss571.json with new discovery
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* SnmpTrap Handler for Cisco IOS LDP Session UP and DOWN
* Indentation correction
* Indentation correction 2
* Indentation correction 3
* MIB correction in snmptraps.php
* Added test file and mib
* Added test file and mib - v2
* Added test file and mib - v3
* Added test file and mib - v4
* Added test file and mib - v5
* Added test file and mib - v6
* Added test file and mib - v7
* Added test file and mib - v8
* Added test file and mib - v9
* Added test file and mib - v10
* Added test file and mib - v11
* Added test file and mib - v12
* Added test file and mib - v13
* Added test file and mib - v14
* Added test file and mib - v15
* Added test file and mib - v16
* Added test file and mib - v17
* Added test file and mib - v18
* Added test file and mib - v19
* Added test file and mib - v20
* Added test file and mib - v21
* Added test file and mib - v22
* Added test file and mib - v23
* Added test file and mib - v24
* Add ifAlias in logs messages and change type to interface for message
* Add ifAlias in logs messages and change type to interface for message
* Add ifAlias in logs messages and change type to interface for message
* Add ifAlias in logs messages and change type to interface for message
* Add ifAlias in logs messages and change type to interface for message
* Add ifAlias in logs messages and change type to interface for message
* Fix some testing issues
index doesn't exist in ModuleTestHelper
Cache issue in NetSnmpQuery (specifically affects testing)
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* add nfs-shared.inc.php
* add nfs poller
* polling now works
* add nfs.inc.php page
* mount options works now
* format cleanup
* add some missing items to the stats
* commit work from last night so I can swap over to ldap
* add gauge support
* save the OS type for it
* more work on NFS stuff
* more nfs work
* display cleanup some
* more nfs work
* update docs for NFS
* add nfs_server_rpc
* style fix
* add snmprec file
* more test stuff
* data cleanup
* style cleanup
* more style fix
* another style fix
* add deleted_at
* add client_rpc_info_calls
* more test tweaks
* more tweaks
* set two items as gauges that should be gauges
* convert a few more things from counters to gauges
* a few more tweaks for NFSv4
* WIP Device Ports porting to Laravel
* WIP port links
* Port Links WIP
* Port Links
* in_array -> isset
* Add request to DeviceTab data
* Add initial Pagination
* Missing select component
* Collapsed and expandable port neighbors
New expandable component
* Port sorting
* Fix port transfer
* Use menu entries to filter ports
* Add translatable strings
* style fixes and cleanup
* update css
* graph views and tidy controller
basic port link view
* cleanup
* port row blade to reuse in legacy port view
* Legacy tab url handling
work properly in subdirectory
remove includes from sub tab directory to prevent oddity
* fallback to detail list when the view doesn't exist
* Use named variable to simplify
* Fix issue from file that was a symlink
* Submenu handle sub items and query string urls
* extract pageLinks to improve readability
* fix typo
* Apply fixes from StyleCI
* phpstan was not happy using the relationship HasMany query
* Don't allow *bps etc to be on a second line
* Improve table on small screens
* Fix sort
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* [wip] add initial support for socomec-ups
based on: https://community.librenms.org/t/add-socomec-ups-with-netvision-snmp-card/24139
Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
* ci
* drop cache/precache
* drop MIB definition
---------
Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
* Fix Fping bulk
When an ICMP unreachable message was returned (stderr), the output processing would save it as if it were a partial line, breaking parsing.
Only save a line if it is the last line of the output (not ending in a new line)
* Add test case
* safer logic
* Fix duplication of processor entries & limit length of type
* delete duplicate processor entry
* added maxLength to processor type
* shorter processor type
* forgot to regen test data
* Create Alertops.php
This is a request to add this Transport publicly, so alerts can be sent to AlertOps' webhook endpoint - AlertOps is an alerting/notification tool.
* Update Alertops.php
* Update Alertops.php
* Merge duplicate toBytes functions
Replace other duplicate code and add tests
* Allow space between similar to formatSI output
* Style fixes
* Match previous behavior in Docker app