5bbb7c30b9
Refactor out things from filefetcher, improve error messages
daniell2024-07-06 17:25:38 +02:00
ebbf066707
Increase discoverability by telling user both the filename and the directories searched if config file is missing
daniell2024-07-06 16:47:03 +02:00
6f36d49215
And the same thing for _client.py
daniell2024-07-04 18:46:53 +02:00
4f4c2dcdac
Same thing for _httpd.py
daniell2024-07-04 18:45:33 +02:00
913ab3531d
Make it show help for all arguments, not only the first two..
daniell2024-07-04 18:42:19 +02:00
9e7425dbe6
Add info line on every 1000 lines
daniell2024-07-03 20:40:08 +02:00
f04c10b4b4
use mixed killmode, since we handle destruction of our own children just fine.
daniell2024-07-03 20:33:28 +02:00
450c46ff20
Add support for ConnectionResetError in login
daniell2024-07-02 19:17:48 +02:00
b64e270247
We can time out, that's fine:)
daniell2024-06-30 23:14:04 +02:00
57bd4f0cf0
Add systemd service for collector
daniell2024-06-30 17:24:15 +02:00
770b122ece
Remove unused imports, and add VAR_DIR const, to place position and dump.pickle somewhere outside CWD in preparation for running this as a service:)
daniell2024-06-30 17:15:53 +02:00
3be6d5bcfe
Probably a good idea to tell the admin this too:)
daniell2024-06-09 22:58:13 +02:00
34ba10be03
Add passwd_file as last argument
daniell2024-06-09 22:57:19 +02:00
74d1d7771c
Pass in passwd-file as an argument
daniell2024-06-09 21:08:28 +02:00
650f458be8
Renamed to routerstats_httpd.py
daniell2024-05-20 18:56:43 +02:00
5c4389c05e
Shitty handling of arguments, but needed for initial version of rc-scripts...
daniell2024-05-20 18:50:06 +02:00
fd23236d49
Add wrapper, so we can get an __init__ in that does what I expect:)
daniell2024-05-20 17:52:29 +02:00
285e725e98
Use the right variable works better..
daniell2024-05-20 17:21:51 +02:00
85097d5d0f
Add support for passing in rrdfilename as argument
daniell2024-05-20 16:38:12 +02:00
4da81276d5
Rename to make more sense
daniell2024-05-20 16:30:35 +02:00
e6ecf5e76d
Don't crash if we can't parse lines.. This shouldn't happen often, but may or may not happen, no reason to get the pants in a twist..
daniell2024-05-07 21:17:08 +02:00
a69c0c9cf4
Average makes more sense than max
daniell2024-05-07 21:12:49 +02:00
730e95d89b
Add keyboardinterrupt, for less output if using ctrl+c:)
daniell2024-05-07 17:21:26 +02:00
9b627f9570
Remove some debug logging, and set loglevel to info..
daniell2024-04-17 19:17:17 +02:00
3ef6430096
Change hardcoded rrd to "test.rrd" in current directory..
daniell2024-04-17 19:14:59 +02:00
89c30c9c5a
Initial test for http-server..
daniell2024-04-16 20:44:13 +02:00
1d0bad7292
Move to INFO, and add TimeoutError and friends to failures
daniell2024-04-16 20:43:44 +02:00
8c78ca7ff7
Accept timestamp within one second.. Probably our fault it's off anyway:) Actually quit if we don't get the required arguments....
daniell2024-04-16 20:42:32 +02:00
ef0205f866
No string = splitting on as many spacecharacters as needed, ' ' = only one...
daniell2024-04-16 00:52:01 +02:00
6e0b7e3e70
Add host/ip and port as arguments, be more verbose about error situations when it comes to timestamps, and handle-ish rrd-locking errors
daniell2024-04-16 00:29:33 +02:00
99a2a2ec47
Make you pass in logfile to follow, try to show when we send data from the overflowqueue. Fix a wording-wrong.
daniell2024-04-16 00:26:05 +02:00
dfc5a4616d
Reasonable working version
daniell2024-04-15 23:34:55 +02:00