Git Product home page Git Product logo

resistor's Introduction

Hi there 👋

Thanks for visiting my GitHub profile, it's great to meet you here! 😊

Hi, I'm Toni Moreno from Barcelona.

  • 🌱 I’m currently learning everything about technology
  • 🤔 I will learn programming Rust some day...
  • 📫 The best way to reach me is by sending me an email.
  • 💬 Ask me about anything here.

GitHub Stats:

toni-moreno's GitHub Stats

resistor's People

Contributors

rsolorzano2410 avatar sbengo avatar toni-moreno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

resistor's Issues

error on install typscript version [Bug]

  • What Resistor version are you using?
    MASTER

  • What OS are you running resistor on?
    Linux FEDORA 27
    npm --version
    5.5.1
    node --version
    v8.9.1

  • What did you do?
    npm install

  • What was the expected result?
    install all package depencies

  • What happened instead?
    npm install
    npm ERR! code ETARGET
    npm ERR! notarget No matching version found for [email protected]
    npm ERR! notarget In most cases you or one of your dependencies are requesting
    npm ERR! notarget a package version that doesn't exist.
    npm ERR! notarget
    npm ERR! notarget It was specified as a dependency of 'resistor'
    npm ERR! notarget

[RFC] Check logic on UDF loop to match rules

Hi,

The actual loop is retrieving all device stats in decreasing order and it will remain with the most restrictive one.
The differents parameters are overwritted on each bucle.

If the rules are ordered, I'm not quite sure if we could re-invert the order and keep only the most restrictive one.

[Feature Request] Add version info to the resInjector binary

Would be nice if version info could be also added to the udf binary.

developer@snmpcoldev01:~/src/gospace/src/github.com/toni-moreno/resistor$ ./bin/resInjetor -version
flag provided but not defined: -version
Usage of ./bin/resInjetor:
  -socket string
    	Where to create the unix socket (default "/tmp/resInjector.sock")

[BUG] Panic on UDF execution without parameters

Code is not ready to execute the UDF module without or wrong parameters.

developer@snmpcoldev01:~/src/gospace/src/github.com/toni-moreno/resistor$ bin/resInjector 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x6a1acc]

goroutine 4 [running]:
github.com/toni-moreno/resistor/vendor/github.com/go-xorm/xorm.(*Engine).autoMapType(0x0, 0xa27600, 0xc42019e120, 0x199, 0x0, 0x0, 0x0)
	/home/developer/src/gospace/src/github.com/toni-moreno/resistor/vendor/github.com/go-xorm/xorm/engine.go:786 +0x8c
github.com/toni-moreno/resistor/vendor/github.com/go-xorm/xorm.(*Statement).setRefValue(0xc42019a258, 0xa27600, 0xc42019e120, 0x199, 0xc42019e120, 0x199)
	/home/developer/src/gospace/src/github.com/toni-moreno/resistor/vendor/github.com/go-xorm/xorm/statement.go:212 +0x73
github.com/toni-moreno/resistor/vendor/github.com/go-xorm/xorm.(*Session).Find(0xc42019a240, 0x96f380, 0xc42000c5a0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/developer/src/gospace/src/github.com/toni-moreno/resistor/vendor/github.com/go-xorm/xorm/session_find.go:44 +0x1019
main.reloadDbData(0x0, 0x0)
	/home/developer/src/gospace/src/github.com/toni-moreno/resistor/pkg/udf/resInjector.go:581 +0x200
main.startRefreshProc()
	/home/developer/src/gospace/src/github.com/toni-moreno/resistor/pkg/udf/resInjector.go:597 +0x12a
created by main.main
	/home/developer/src/gospace/src/github.com/toni-moreno/resistor/pkg/udf/resInjector.go:638 +0x22e

[Feature Request] Add default parameters to the resinjector binary

It seems like the resinjector can not accept pidfile/config/logs/socket parámeters needed to be as standar as we can on all our generated binaries

root@snmpcoldev01:~# /usr/sbin/resinjector --pidfile=${PID_FILE} --config=${CONF_FILE} --logs=${LOG_DIR} --socket=${SOCK_FILE}
ERRO[2018-07-04 08:57:16] Fatal error config file: Config File "config" Not Found in "[/root/conf /root]" 

[Feature request] Add DB name to the mesurement List

When looking for measurmenets, sometimes there are duplicated names on difernet databases ( by example on productión and testing databases that conatins the same measurement name but perhaps diferent tags/fiels.

Should be able to filter measurment names as well as database names...

image

[Bug] Build error: cannot convert *prevalevt (type config.AlertEvent) to type config.AlertEventHist

Resistor version: 0.6.7
OS: Debian 9.1

Description of resistor software isn't enough clear for me, so I decided to give it try.

Unfortunately during build (npm run build:prod - BTW there is typo in README.md - should be :pro->:prod) I get:
pkg/webui/apirt-kapfilter.go:175: cannot convert *prevalevt (type config.AlertEvent) to type config.AlertEventHist

No idea how to fix it. :( Is it possible to share resistor as deb package?

Best regards,
Wiktor

[Feature request] Add range time exceptions on DeviceStats

Hi,

Actually the range time is passed by Alert configurations, so the alert is defined with a fixed time range.
It doesn't allow the user to set up a filter based on the time range, so the user has to create several alert with different time ranges and its filters

[Bug] Resistor log on stdout instead of /var/log/resistor as in the

It seems like resistor is not able to send logs to the file and does on stdout instead.

root@snmpcoldev01:/usr/share# systemctl status resistor
● resistor.service - Resistor Agent
   Loaded: loaded (/usr/lib/systemd/system/resistor.service; enabled)
   Active: active (running) since jue 2018-07-05 08:49:29 CEST; 1min 14s ago
     Docs: http://github.com/toni-moreno/resistor
 Main PID: 10062 (resistor)
   CGroup: /system.slice/resistor.service
           └─10062 /usr/sbin/resistor --pidfile= --config=/etc/resistor/resistor.toml --logs=/var/log/resistor --home= --data=/var/lib/resistor

jul 05 08:49:29 snmpcoldev01 systemd[1]: Started Resistor Agent.
jul 05 08:49:29 snmpcoldev01 resistor[10062]: time="2018-07-05 08:49:29" level=error msg="influxdb write error:  {\"error\":\"authorizati...iled\"}"
jul 05 08:49:59 snmpcoldev01 resistor[10062]: time="2018-07-05 08:49:59" level=error msg="influxdb write error:  {\"error\":\"authorizati...iled\"}"
jul 05 08:50:29 snmpcoldev01 resistor[10062]: time="2018-07-05 08:50:29" level=error msg="influxdb write error:  {\"error\":\"authorizati...iled\"}"
Hint: Some lines were ellipsized, use -l to show in full.
root@snmpcoldev01:/usr/share# tail -f /var/log/resistor/
http_access.log  resinjector.log  
root@snmpcoldev01:/usr/share# ls -l /var/log/resistor/
total 4
-rw-r----- 1 resist resist    0 jul  5 08:49 http_access.log
-rw-r--r-- 1 resist resist 2900 jul  5 08:48 resinjector.log

[Bug] Kapacitor tasks can't post alerts to Resistor

Resistor 0.5.8.
Process:
-Create a task in Resistor.
-Resistor automatically assigns the internal IP of the Resistor Docker to the task as the response address.
-If Resistor Docker IP changes for any reason, the tasks that have the old IP of the Resistor Docker, can not send information to Resistor as can be seen in Kapacitor logs:

ts=2018-10-04T09:03:52.678Z lvl=error msg="failed to POST alert data" service=httppost task=LB-OS_LINUX-CPU-001 err="Post http://172.18.0.10:6090/api/rt/kapfilter/alert/Slack,httppost,logging: dial tcp 172.18.0.10:6090: connect: connection refused"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.