Age | Commit message (Collapse) | Author |
|
Also remove trailing whitespaces
|
|
Oxidized would throw:
----
/var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/jobs.rb:36:in `to_i': NaN (FloatDomainError)
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/jobs.rb:36:in `new_count'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/jobs.rb:28:in `duration'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/jobs.rb:16:in `initialize'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/worker.rb:7:in `new'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/worker.rb:7:in `initialize'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/core.rb:21:in `new'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/core.rb:21:in `initialize'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/core.rb:12:in `new'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/core.rb:12:in `new'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/cli.rb:9:in `run'
from /var/lib/gems/2.1.0/gems/oxidized-0.7.2/bin/oxidized:9:in `<top (required)>'
from /usr/local/bin/oxidized:23:in `load'
from /usr/local/bin/oxidized:23:in `<main>'
---
When nodes.size == 0, this may happen when you have say one node in router.db which has non-existing model. Actual problem happens in jobs.rb:
@duration = @durations.inject(:+).to_f / @nodes.size
...
@want = ((@nodes.size * @duration) / @interval).to_i
Simplified:
a = 0.0 / 0
b = a.to_i
|
|
Fixing Regex Warning on Console:
/var/lib/gems/2.1.0/gems/oxidized-0.7.2/lib/oxidized/model/routeros.rb:10: warning: nested repeat operator '+' and '?' was replaced with '*' in regular expression: /\[(?:\d+)?(/
|
|
|
|
|
|
|
|
|
|
The current implementation is modular and allows users to define hooks
in several ways:
* Use one of the built-in hook types (currently only 'exec')
* Define their own Hook classes inside ~/.config/oxidized/hook
Exec hook type runs a user defined command with or without shell. It
populates a bunch of environment variables with metadata. The command
can either be run as synchronous or asynchronous. The default is
synchronous.
|
|
Add support for MRV Master-OS
|
|
|
|
Add Author and Message from a commit to a nodes version list
|
|
|
|
Model: SAM1316-22 STU-C
ZyNOS version: V3.53(BVE.2)
|
|
Update nodes.rb
|
|
Fixing ability to queue with /node/next/<ip>
Was used in Issue #60 to fix the syslog daemon
|
|
Fix Prompt as RouterOS seems to send a lot of rubbish (at least using Telnet)
Add support for Telnet on RouterOS. Strip any colours from the output also.
|
|
|
|
|
|
|
|
Remove more uptime lines
|
|
|
|
add feature about versions and diffs for oxidized-web
|
|
fix regexp error with ruby 2.1
|
|
|
|
|
|
Net::SSH::AuthenticationFailed on some Arista devices
|
|
Delete more uptime line, temp line, speed line, for few ironware models
|
|
|
|
|
|
no point specifying the version again here. This was only when rugged
was not required by gemspec
|
|
the command
|
|
used by ciscosmb and one of the wlan controllers. Thansk to
@SaaldjorMike for spotting
fixes #121
|
|
|
|
|
|
|
|
|
|
|
|
confirmation
|
|
|
|
output:
git:
single_repo: true
would cause repos to appear as directories in group
|
|
(new behavior in net-ssh 2.9.3)
|
|
so that ~/foo/bar works
|
|
Added a less strict prompt
|
|
Added less strict prompt
|
|
Changed prompt (too strict)
|
|
Changed prompt (too strict)
|
|
|
|
there are numerous use-cases for this in models, no point to load in
models separately
|
|
The pager prompt on the PowerConnect 62xx family does not have a leading space; fixed the expect regex. Also added 6224/6248 to the block ignore regex.
|
|
Some SMB HP switches (V1910, V1920) run Comware, but have the CLI hidden behind a "secret" toggle - it needs to be activated by _cmdline-mode on. The password to enable it varies per model, so this patch introduces a new var, comware_cmdline to contain the password.
Unfortunately we cannot easily autodetect this, as only the "summary" command can give us the model number, but this command is paged and we cannot disable the pager until we are in the full CLI.
Tested on HP V1910-24G-POE.
|