Skip to content

Instantly share code, notes, and snippets.

@djamp42
Last active October 14, 2022 09:08
Show Gist options
  • Save djamp42/e3445e9bd0786ec83690c301d6ae5f5b to your computer and use it in GitHub Desktop.
Save djamp42/e3445e9bd0786ec83690c301d6ae5f5b to your computer and use it in GitHub Desktop.
Oxidized Config
---
username: username
password: password
model: junos
resolve_dns: false
interval: 3600
use_syslog: false
debug: false
threads: 30
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: 127.0.0.1:8888
next_adds_job: false
vars: {}
groups: {}
models: {}
pid: "/root/.config/oxidized/pid"
crash:
directory: "/root/.config/oxidized/crashes"
hostnames: false
stats:
history_size: 10
input:
default: ssh, telnet
debug: false
ssh:
secure: false
ftp:
passive: true
utf8_encoded: true
output:
default: file
file:
directory: "/root/.config/oxidized/configs"
source:
default: http
debug: false
http:
url: http://LIBRENMS_IP/api/v0/oxidized
map:
name: hostname
model: os
group: group
headers:
X-Auth-Token: ENTER_LIBRENMS_API_KEY_HERE
groups:
defaultgrp:
username: default
password: default
pfsense:
username: oxidized
password: oxidizedpassword
procurve:
username: admin
password: password
@lovalim
Copy link

lovalim commented Oct 14, 2022

Hi below is my config file, librenms and oxidized are installed on the same server. when I run oxidized server I get the bellow error, we have fortigate firewall, cisco switched

"
E, [2022-10-14T12:12:19.390900 #99160] ERROR -- : 192.168.1.250 raised OpenSSL::PKey::PKeyError with msg "pkeys are immutable on OpenSSL 3.0", 192.168.1.250 saved
D, [2022-10-14T12:12:19.390939 #99160] DEBUG -- : lib/oxidized/node.rb: Oxidized::SSH failed for 192.168.1.250
D, [2022-10-14T12:12:20.336680 #99160] DEBUG -- : lib/oxidized/worker.rb: 1 jobs running in parallel

cat config

username: backup
password: P@ssw0rd
model: junos
resolve_dns: true
interval: 3600
use_syslog: false
debug: false
threads: 30
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: 192.168.1.239:8888
next_adds_job: false
vars: {}
groups: {}
models: {}
pid: "/home/oxidized/.config/oxidized/pid"
crash:
directory: "/home/oxidized/.config/oxidized/crashes"
hostnames: true
stats:
history_size: 10
input:
default: ssh, telnet
debug: true
ssh:
secure: true
ftp:
passive: true
utf8_encoded: true
output:
default: git
git:
user: oxidized
email: o@example.com
repo: "/home/oxidized/configbackup/git-repos/default.git"
source:
default: http
debug: true
http:
url: http://192.168.1.239/api/v0/oxidized
map:
name: hostname
model: os
group: group
headers:
X-Auth-Token: '1b792f7bc58514ce2220f7c04e3dedc7'
groups:
defaultgrp:
username: backup
password: P@ssw0rd!!!
fortigate:
username: oxidized
password: oxidizedpassword
#model_map:

juniper: junos

cisco: ios

fortigate: fortios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment