* Running Alerts colorized depending on to their severity
* extra alert styling to generic function
* .
* link from table alerts to alert_layout function
* info icon for information alert severity
* Added bad_iftype to iosxe.yaml definition
* Update Configuration.md
Updated file location from includes/defaults.inc.php to misc/config_definitions.json and added an example of OS specific bad_iftype entries.
* Added OS Specific example for ignoring interfaces and updated file location.
* Updated bad_if selection documentation
* Created add, edit, remove location and edit, remove services to the v0 API and added their corresponding routes
* Changed repeating code by adding a function that checks for missing parameters
* Reduced the lines of add_service_for_host, modified a little more the missing fields function
* Changed True and False to true and false, erased an unused var called $missing
* Solved merged confict
Deleted duplicate functions generated when solving merge conflicts
* fixed more conficts
Deleting duplicate entries produced by trying to solve a merge conflict
* fixing more duplicate functions
This merge conflict created more duplicates
* Update api_functions.inc.php
* Update api_functions.inc.php
* Update opnsense.yaml - too add discovery method
Update opnsense.yaml for new OPNsense OID called version.
This will help with detection after the user turns on "Display Verion in OID" within OPNsense
* Re-order to reduce snmp-scan.py time
First, check sysDescr for OPNsense. Then if sysObjectID is 1.3.6.1.4.1.12325.1.1.2.1.1, run an snmpget
* Create opnsense_1.snmprec
Make up test file since data was not supplied
Co-authored-by: Tony Murray <murraytony@gmail.com>
* more verbose fallback output detail
* update if statemen
* Switched
Sorry, I typed them backwards :D
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Added add and remove parents for device from the V0 API
* Fixed some minors errors (white spaces and lack of them, an unnecesary else)
* Added missing }
* Reducing cognitive complexity
* Further reduced cognitive complexity and added a check if parent device existed (it blew up when it did not)
* Refactored the code and fixed bugs (that i created) when deviceIds or parentIds where nonexistent
* Fixed } not on a new line issue
* Empty space removed
* Deleted lines added by mistake to composer.json
* removed a comma that broke composer.json
* added the missing element in composer.json
* Added optional ids to del_parents_fom_host
Updated del_parents_from_host() so it can accept parent(s) id(s) to delete, if none given it deletes all it's parents.
* Fixing code issues on del_parents_from_host
Refactored and solved small issues with del_parents_from_host
* Refactored code del_parents_from_host
Refactored del_parents_from_host() in order to comply with the projects standard
* Added one space
Added missing whitespace
* refactoring for better readability
* puppet agent monitoring
* change position of last run graph
* device overview panel
* updating documentation
* mouseover for Overview Dashboard
* adding blank line for code climate
* Fix inventory page hostname and default behaviour on generate_device_link
* force test re-run
* space
* simplify
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Change select order from id to name
* added example icmp/snmp down rules given by @kkrumm1
* Renovated Alert Rules
* Defaulted sort by name
* Moved top buttons and results selector outside of table and aligned them with pull-left and pull-right
* Collapsed '#' (ID) into 'Type' and added titles for the icons
* Added Devices and Transports columns for each rule
* Moved Extra column next to transports
* Added icons for Enabled when a user does not have global admin
* Changed row_# variable to rule_id_#
* Some 'else' cleanup
* Added various title tags for more information when hovering
* Moved pagination outside of table and align it with pull-left and added a bootgrid style summary pulled-right
* Added table & th tags for bootgrid (but didn't turn it on)
* code climate, round 1
* code climate, round 2
* add hrefs for device & device group edit
* added trailing slash for device-groups/../edit/
* prevent #name conflict with transport modal
* add hrefs for transport & transport group edit
* use popover consistently
* code climate, round 3
* removed unused variables
* code climate, round 4
* popover variables
* reload after successful delete
* more informative feedback
* use toastr, not #message, & don't reload
* added license header & fail faster if not admin
* use (more informative) ajax error message
* delete confirmation with alert name in the modal
* print each device per line
* add href for all devices
* refresh status & enabled data-content when/if a rule is turned on/off
* use DRY style per @SourceDoctor (& my) preference); codeclimate meh
* point devices popover to the right