Open wsw70 opened 4 months ago
Thanks! I'm away until next week so won't be able to take a proper look at this until then - I'm not ignoring it :)
I just bumped the version of parakimo on the develop branch btw (finally merged dependabot's PR)
I'm fine with the change to ConfigParser, don't think that will cause any issues.
done in https://github.com/jamesoff/simplemonitor/pull/1398/commits/f5bb0efda46f706ddb77d920f8a6740ece422802
This is a preliminary PR for a new Monitor that uses SSH to connect to a remote machine, run a command, parse it results to extract a value which is then monitored.
Why preliminary?
match
which is a Python 3.10+ feature. I will make it retro-compatible with 3.7 as a new branch when this PR is tested/reviewed, awaiting for Simplemonitor to be, someday, bumped to 3.27 (EBV - Expected Bump Version)Important note for @jamesoff : I had to change in
envconfig.py
ConfigParser
toRawConfigParser
otherwise the regex I read in was escaped (see the commit). I do not think it changes anything because as far as I could tell you do not rely on escaping when reading the configuration.So try it out (
git checkout monitor_remote_ssh
) and let me know!