Age | Commit message (Collapse) | Author |
|
Add documentation note about API URI
|
|
|
|
When I try to run oxidized as a different user, I get permission errors
for oxidized tries to write debug logs (e.g. true-telnet) in current
working directory which in my case is not writable for the
non-privileged user. I think this can be improved by this change.
1) Why would you use CFG.input.debug?.to_s (which in this case will
always be ‘true’) as a prefix at all
2) let’s use the crash directory for the debug output, as we know this
is available and choose a more descriptive name
|
|
|
|
Ignore save-config warning after exit in XOS
|
|
|
|
made IronWare compatible with older Foundry/Brocade switches
|
|
|
|
Conflicts:
lib/oxidized/model/ironware.rb
|
|
- login prompt matches both older and newer version of IronWare
- send carriage returns for both versions as it should make no
difference
- made temperature filters compatible and removed obsolete ’d’ character
|
|
move "show inventory" up
|
|
some ironware devices are fixed config => no modules
|
|
put "show run" at the bottom of oxidized output
|
|
comments
|
|
|
|
|
|
fix white space and CR problems on xos model
|
|
|
|
Oxidized model for Foundry/Brocade switch models that run IronWare but
require carriage return instead of newline on enable command and
require different filters for temperature/uptime lines
|
|
|
|
only send username when username is set at all
|
|
|
|
Some of my switches don’t expect any username on telnet. This change
allows me to leave the username field effectively empty for a switch.
|
|
model/comware: ignore lines with uptime (ingore case!) for real
|
|
|
|
Update powerconnect.rb
|
|
Add :ssh Username and Password login.
|
|
|
|
fix some whitespaces
bump up gemspec version
|
|
Add Arista and Cisco Nexus syslog detection
|
|
|
|
bump up gemspec
|
|
|
|
Probably the intention was
cfg.each_line.to_a[1..-3].map(&:rstrip).join("\n")
But as it's just incorrectly removed new line from last line, clearly
the rstrip has not been needed, so not gonna add it unless proven that
it's needed.
Spotted by @nickhilliard
|
|
cfg.repo needs to be fixed up with File.expand_path on init
|
|
|
|
smooth over ironware broken encoding
|
|
|
|
broken ironware cli occasionally swallows text
|
|
ironware prompt matches normal config
|
|
|
|
|
|
without trace
|
|
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
|
|
Fix Regex Warning
|
|
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+)?(/
|
|
|
|
|
|
|