Comments (8)
I eventually got it working:
source:
default: http
http:
url: https://url/api
scheme: https
delimiter: !ruby/regexp /:/
user: username
pass: password
read_timeout: 120
map:
name: hostname
model: os
username: username
password: password
vars_map:
enable: enable
headers:
X-Auth-Token: 'somerandomstring'
just had to add a bit more but got it working, thanks for the guidance!
from oxidized.
Posting your config would be a great start, mask out sensitive parts.
from oxidized.
here we go
from oxidized.
Maybe your source section is indented wrong, this is my config:
source:
default: http
http:
url: URL
scheme: http
delimiter: !ruby/regexp /:/
read_timeout: 120
map:
name: hostname
ip: ip
model: os
vars_map:
enable: enable
from oxidized.
how does it connect to LibreNMS though without the Auth Token?
from oxidized.
Oh sorry, my example doesnt use any token in the header. I just ment you should try to fix the indents accordingly.
From URL and down, indent it one step
from oxidized.
Tried to edit it but still got the same error, this seems like an issue with Ruby to be honest. It's like it does not know how to handle the method for url
from oxidized.
I tried to reproduce it and was successful in doing so:
oxidized_1 | /var/lib/gems/3.0.0/gems/oxidized-0.29.1/lib/oxidized/source/http.rb:9:in `setup': undefined method `url' for nil:NilClass (NoMethodError)
This was when my indentation was wrong, when i fixed it, it worked.
My two scenarios:
Not working:
source:
default: http
http:
url: $OXIDIZED_SRC_API_URL
scheme: http
delimiter: !ruby/regexp /:/
read_timeout: 120
map:
name: hostname
ip: ip
model: os
vars_map:
enable: enable
Working:
source:
default: http
http:
url: $OXIDIZED_SRC_API_URL
scheme: http
delimiter: !ruby/regexp /:/
read_timeout: 120
map:
name: hostname
ip: ip
model: os
vars_map:
enable: enable
from oxidized.
Related Issues (20)
- docker-compose GPG encryption of router.db HOT 1
- Installing gem package oxidized-script is failing HOT 1
- Ruby Sass has reached end-of-life and should no longer be used. HOT 1
- Help with ArubaOS8 - Prompt HOT 4
- Huawei Model extend to save config HOT 3
- http input log HOT 1
- Monkey patching changes the order of commands. HOT 1
- Rugged::NetworkError: unsupported URL protocol HOT 3
- Raisecom switch fails backup - but full backup is stored in the log file. HOT 2
- Http input: not managed error 404 HOT 2
- Issue with Grandstream GXW4216 HOT 2
- no source http url config HOT 7
- Fortigate config backup failing HOT 8
- Push to repo fails due to unknown remote ssh hostkey HOT 2
- Oxidized v.0.30.1 versions function not working HOT 3
- How to ignore fortigate backup config password difference for versions difference check HOT 3
- How to increase the show versions function performance? HOT 10
- Don't hardcode `~/.config/oxidized/config`
- Can't have Oxidized use different credentials depending on the device/group? HOT 13
- Stats REST endpoint returns invalid values HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oxidized.