summaryrefslogtreecommitdiff
path: root/lib/oxidized
AgeCommit message (Collapse)Author
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
2015-08-28Initial implementation of the hook featureAnton Aksola
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.
2015-08-26Merge pull request #167 from kwibbly/masterytti
Add support for MRV Master-OS
2015-08-26Add support for MRV MasterOSHannes Rist
2015-08-26Add Author and MessageMrRJ45
Add Author and Message from a commit to a nodes version list
2015-08-20fix ZynOS capitalizationSaku Ytti
2015-08-20Added support for Zyxel ZynOSSaku Ytti
Model: SAM1316-22 STU-C ZyNOS version: V3.53(BVE.2)
2015-08-15Merge pull request #162 from MrRJ45/patch-3ytti
Update nodes.rb
2015-08-15Update nodes.rbMrRJ45
Fixing ability to queue with /node/next/<ip> Was used in Issue #60 to fix the syslog daemon
2015-08-15Update routeros.rbMrRJ45
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.
2015-07-09Added support for EdgeOSlaf
2015-07-06fix fetch for groups when single_repo: truejwhited
2015-07-05fix fetching when groups are used and single_repo: truejwhited
2015-06-18Merge pull request #136 from FlorianDoublet/ironwareModifytti
Remove more uptime lines
2015-06-18Remove more uptime linesroot
2015-06-17Merge pull request #114 from FlorianDoublet/webInterfaceFeaturesnopedial
add feature about versions and diffs for oxidized-web
2015-06-17Merge pull request #134 from FlorianDoublet/ironwareModifytti
fix regexp error with ruby 2.1
2015-06-17fix regexp error with ruby 2.1root
2015-06-10add update for a node in log fileroot
2015-06-08Add keyboard-interactive as SSH auth method to fix ↵Clay Fiske
Net::SSH::AuthenticationFailed on some Arista devices
2015-06-08Merge pull request #127 from FlorianDoublet/ironwareModifytti
Delete more uptime line, temp line, speed line, for few ironware models
2015-06-08Delete more uptime line, temp line, speed line, for few modelsflorian
2015-06-03add feature about versions and diffs for oxidized-webflorian
2015-05-26rugged is again in gemspec (mandatory)Saku Ytti
no point specifying the version again here. This was only when rugged was not required by gemspec
2015-05-24Remove 'show inventory' from Cisco SMB model, since they do not recognize ↵Mike Rostermund
the command
2015-05-21accept 'none' authSaku Ytti
used by ciscosmb and one of the wlan controllers. Thansk to @SaaldjorMike for spotting fixes #121
2015-05-07Added support for http as a sourcelaf
2015-05-05Merge branch 'master' into panosrivo nurges
2015-05-05Palo Alto PAN-OS supportrivo nurges
2015-04-28Skip Datetime and Uptime from system informationrivo nurges
2015-04-22When clustered, colon appears in ScreenOS promptrivo nurges
2015-04-21Fix pre_logout in case the configuration is not saved and ScreenOS asks for ↵rivo nurges
confirmation
2015-04-21Fix screenos prompt regexrivo nurges
2015-04-20support having all groups in single repoSaku Ytti
output: git: single_repo: true would cause repos to appear as directories in group
2015-04-20don't use keyboard interactive passwordsSaku Ytti
(new behavior in net-ssh 2.9.3)
2015-04-20expand csv pathSaku Ytti
so that ~/foo/bar works
2015-04-20Merge pull request #107 from FlorianDoublet/ironwareModifytti
Added a less strict prompt
2015-04-20Added a less strict promptflorian
Added less strict prompt
2015-04-17Merge pull request #106 from FlorianDoublet/ironwareModifytti
Changed prompt (too strict)
2015-04-17Changed prompt (too strict)florian
Changed prompt (too strict)
2015-04-16Merge branch 'master' of https://github.com/ytti/oxidizedSaku Ytti
2015-04-16add StringScannerSaku Ytti
there are numerous use-cases for this in models, no point to load in models separately
2015-04-16Add support for PowerConnect 62xxTom Laermans
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.
2015-04-16Add support for HP Comware SMB switchesTom Laermans
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.