Author Topic: Syslog to paper trail.com problems  (Read 490 times)

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 5131
  • Karma: +221/-67
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #15 on: July 08, 2017, 05:41:13 pm »
That the library file, which hasn't changed for years AFAIK.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +1/-0
Re: Syslog to paper trail.com problems
« Reply #16 on: July 09, 2017, 05:20:48 am »
I don't have any subdirectories visible... I'm just wondering but in the instructions it says to ssh into it to create a new directory and add files there for something  which I didn't do because you said that feature doesn't work in ui7... Possible cause? I'll see if i can ssh into it later to check for any subdirectories not listed in the ui to check the items you mentioned earlier

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 5131
  • Karma: +221/-67
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #17 on: July 09, 2017, 07:34:26 am »
I think what we need here is the log during startup to see a more explicit error message (perhaps.)
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +1/-0
Re: Syslog to paper trail.com problems
« Reply #18 on: July 09, 2017, 07:50:52 am »
I'll do that now. Fyi the files in cmh-ludl are. Lzo compressed

Offline samyoue

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +1/-0
Re: Syslog to paper trail.com problems
« Reply #19 on: July 09, 2017, 08:08:29 am »

02      07/09/17 13:00:17.155   Device_Service::MatchupUpnpServices no upnp service for urn:akbooer-com:serviceId:EventWatcher1 <0x775c6320>

50      07/09/17 13:00:24.275   luup_log:27: EventWatcher: starting... <0x76c14520>
50      07/09/17 13:00:24.275   luup_log:27: EventWatcher: 16.11.17 <0x76c14520>
06      07/09/17 13:00:24.276   Device_Variable::m_szValue_set device: 27 service: urn:akbooer-com:serviceId:EventWatcher1 variable: LuupRestart was: 09-Jul-2017 12:58:03 now: 09-Jul-2017 13:00:24 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76c14520>
50      07/09/17 13:00:24.277   luup_log:27: EventWatcher: defining CLI... <0x76c14520>
01      07/09/17 13:00:24.279   LuaInterface::CallFunction_Startup-1 device 27 function init failed [string "ABOUT = {..."]:1294: attempt to concatenate local 'ip' (a function value) <0x76c14520>
01      07/09/17 13:00:24.279   LuImplementation::StartLua running startup code for 27 I_EventWatcher.xml failed <0x76c14520>

Offline samyoue

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +1/-0
Re: Syslog to paper trail.com problems
« Reply #20 on: July 09, 2017, 08:37:35 am »
Ok so i deleted the syslog variable and restarted and it worked again so i think its not recognising fqdn as an int so throwing up a startup failure?

Sam

Edit also i looked up the ip address for papertrail, input that instead of fqdn and it went through to them! So it definitely seems an error in the processing of the fqdn instead of an ip address
« Last Edit: July 09, 2017, 08:44:48 am by samyoue »

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 5131
  • Karma: +221/-67
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #21 on: July 09, 2017, 09:21:46 am »
Well, I apologise for this... you have found a bug.

It transpires that the Lua file had a truncated line - not sure how that found its way through testing.

There is a new version in the development branch here: https://github.com/akbooer/EventWatcher/tree/development

You just need the updated Lua file.  I have tested the corrected version out of context, but would be grateful if you want to give it a go in earnest.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline samyoue

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +1/-0
Re: Syslog to paper trail.com problems
« Reply #22 on: July 09, 2017, 11:04:54 am »
Not a problem! Glad i could help  :)

Also is it possible to change the syslog output string to contain the controller name (or if not a user definable string variable) rather than the controller serial number?

Edit don't worry just worked out if you change the name of the event watcher device it does as needed...

Thank you for your help and patience!

Sam

Ps yes of course I'll try it out later tonight  :)
« Last Edit: July 09, 2017, 11:33:10 am by samyoue »

Offline samyoue

  • Sr. Newbie
  • *
  • Posts: 25
  • Karma: +1/-0
Re: Syslog to paper trail.com problems
« Reply #23 on: July 09, 2017, 03:03:57 pm »
Works a treat! Top marks for great support and a great plugin thank you

Sam

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 5131
  • Karma: +221/-67
  • "Less is more"
Re: Syslog to paper trail.com problems
« Reply #24 on: July 09, 2017, 04:08:24 pm »
Phew!  Thanks for sticking with me during the process.  This sort of support from the community really helps to improve the experience for everyone.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.