jamesoff / simplemonitor

A Python-based network and host monitor
https://simplemonitor.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
404 stars 165 forks source link

New Monitor: remote queries via ssh #1398

Open wsw70 opened 4 months ago

wsw70 commented 4 months ago

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?

Important note for @jamesoff : I had to change in envconfig.py ConfigParser to RawConfigParser 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!

jamesoff commented 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 :)

jamesoff commented 3 months ago

I just bumped the version of parakimo on the develop branch btw (finally merged dependabot's PR)

wsw70 commented 3 months ago

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