summaryrefslogtreecommitdiff
path: root/lib/oxidized
AgeCommit message (Collapse)Author
2015-11-23added support for Ciena SOAS 6.x device typeJeff Groom
2015-11-13githubrepo hook specElvin Efendi
2015-11-13do not rescue general exceptionElvin Efendi
2015-11-13raise more specific exception when required key is not presentElvin Efendi
2015-11-13a callback to push config changes to a remote repositoryElvin Efendi
2015-11-13better test framework, more specs and Travis CIElvin Efendi
2015-11-03Revert crash logging on fqdn - seems to crash oxidized...Marno van der Molen
2015-11-03Log crashes on node name instead of ip to ease troubleshootingMarno van der Molen
2015-11-03Adds optional debug output when loading hosts (resolving DNS)Marno van der Molen
2015-10-27Typo in Brocade NOS modelHarm van Tilborg
2015-10-20Merge pull request #122 from SaaldjorMike/remove-inventoryytti
Remove 'show inventory' from Cisco SMB model, since they do not recog…
2015-10-20Merge pull request #206 from skoef/masterytti
use different path for debug logging
2015-10-20Merge pull request #216 from nickhilliard/bf-comware-nul-promptytti
sometimes the comware prompt might have a leading nul char
2015-10-20add support for Dell networking OS, dnoserefre
Dell Force10 has changed model name from FTOS to DNOS
2015-10-11remove () from nul byte check in comware promptNick Hilliard
2015-10-11sometimes the comware prompt might have a leading nul charNick Hilliard
2015-10-11Add support for Arris C4 CMTSNick Hilliard
2015-10-03occasionally ironware randomly inserts extraneous blank linesNick Hilliard
2015-09-29use different path for debug loggingReinier Schoof
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
2015-09-29Ignore save-config warning after exit in XOSTobias Andersson
2015-09-28Merge pull request #194 from skoef/masterytti
made IronWare compatible with older Foundry/Brocade switches
2015-09-28fixes #202Saku Ytti
2015-09-28Merge remote-tracking branch 'ytti/master'Reinier Schoof
Conflicts: lib/oxidized/model/ironware.rb
2015-09-28merged models for older and newerReinier Schoof
- 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
2015-09-27Merge pull request #200 from nickhilliard/br-fix-asa-cmd-orderytti
move "show inventory" up
2015-09-27Merge pull request #199 from nickhilliard/br-fix-ironware-show-moduleytti
some ironware devices are fixed config => no modules
2015-09-26move "show inventory" up to stop "show run" from being sandwiched in between ↵Nick Hilliard
comments
2015-09-26some ironware devices are fixed config => no modulesNick Hilliard
2015-09-26put "show run" at the bottom of oxidized outputNick Hilliard
2015-09-26fix white space and CR problems on xos modelNick Hilliard
2015-09-25added model for older Foundry/Brocade model switchesReinier Schoof
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
2015-09-25cleaned up conditionalReinier Schoof
2015-09-25only send username when username is set at allReinier Schoof
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.
2015-09-24model/comware: ignore lines with uptime (ingore case!) for realRoman Pertl
2015-09-21Update powerconnect.rbskares
Add :ssh Username and Password login.
2015-09-17restore ruby 1.9.3 compatibility0.8.1Saku Ytti
fix some whitespaces bump up gemspec version
2015-09-14Merge branch 'master' of github.com:ytti/oxidized0.8.0Saku Ytti
2015-09-14Fix new line removalSaku Ytti
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
2015-09-14Merge pull request #186 from nickhilliard/masterytti
cfg.repo needs to be fixed up with File.expand_path on init
2015-09-14cfg.repo needs to be fixed up with File.expand_path on initNick Hilliard
2015-09-13smooth over ironware broken encodingNick Hilliard
2015-09-13ironware prompt matches normal configNick Hilliard
2015-09-13workaround for broken ironware cli, which occasionally swallows input ↵Nick Hilliard
without trace
2015-09-13Expand repo's path, so that ~ worksSaku Ytti
Also remove trailing whitespaces
2015-09-12Fix FloatDomainError when 0 nodes are foundSaku Ytti
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
2015-09-06Fix Regex WarningMrRJ45
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+)?(/
2015-09-06oops, presedence issueSaku Ytti
2015-09-05add support for setting ssh and telnet portSaku Ytti
2015-09-05Merge branch 'feature-hook'Saku Ytti
2015-09-02Added support for non-enabled users. Also comment out "show slots"Falk Stern