]> git.sven.stormbind.net Git - sven/scripts.git/log
sven/scripts.git
2 years agoMunin Plugin to monitor the limits in the weblogpro direktvermarkter interface
Sven Hoexter [Sun, 6 Nov 2022 15:43:44 +0000 (16:43 +0100)]
Munin Plugin to monitor the limits in the weblogpro direktvermarkter interface

Based on the interface description at
https://filer.meteocontrol.de/d/6ec9d0148a/files/?p=%2FTrading%20Interface%2FDeutsch%2FRK_PC_Direktvermarkterschnittstelle_de.pdf

2 years agoMake use of alert priorities
Sven Hoexter [Sat, 2 Apr 2022 15:22:49 +0000 (17:22 +0200)]
Make use of alert priorities

If all inverter on a weblog device are down, alert with Opsgenie prio P1,
otherwise stick to the Opsgenie default P3.

2 years agoMove enverbridge setid script from optparse to argparse
Sven Hoexter [Thu, 31 Mar 2022 20:18:51 +0000 (22:18 +0200)]
Move enverbridge setid script from optparse to argparse

2 years agoMigrate envertech portalmonitor from optparse to argparse module.
Sven Hoexter [Thu, 31 Mar 2022 19:30:18 +0000 (21:30 +0200)]
Migrate envertech portalmonitor from optparse to argparse module.

optparse is deprecated, argparse is the replacement

2 years agoFix exit code for location-date combinations without sunrise/sunset.
Sven Hoexter [Thu, 3 Feb 2022 20:23:54 +0000 (21:23 +0100)]
Fix exit code for location-date combinations without sunrise/sunset.

2 years agoAdd license to suntime.lua and move the whole weblogpro stuff in one place
Sven Hoexter [Thu, 3 Feb 2022 19:39:33 +0000 (20:39 +0100)]
Add license to suntime.lua and move the whole weblogpro stuff in one place

2 years agoAdd daylight check based on suntime.lua script
Sven Hoexter [Wed, 2 Feb 2022 21:21:50 +0000 (22:21 +0100)]
Add daylight check based on suntime.lua script

2 years agoAdd Lua script to check if we should have daylight or not
Sven Hoexter [Wed, 2 Feb 2022 21:18:14 +0000 (22:18 +0100)]
Add Lua script to check if we should have daylight or not

2 years agoAdd a state tracking to envertech portalmonitor
Sven Hoexter [Mon, 31 Jan 2022 10:38:24 +0000 (11:38 +0100)]
Add a state tracking to envertech portalmonitor

Instead of sending a mail by generating output on every execution
we track the state of setup we receive from the portal. Output
is only created whenever we have a state change. That also enables
us to create "resolve" messages when the state changes back to be
ok.

Introduces a new configuration option `stateFile`.

2 years agoMove from OpenWRT wget to curl
Sven Hoexter [Fri, 28 Jan 2022 20:14:28 +0000 (21:14 +0100)]
Move from OpenWRT wget to curl

The OpenWRT wget implementation aka uci-fetch did not play along
well with the way the meteocontrol weblog HTTP server closes its
connection. To simplify it all just use curl, we need it anyway here.

Also fix up some spaces superflous port definition in the URL.

2 years agoMonitoring script for inverter via meteocontrol weblog pro units
Sven Hoexter [Sun, 23 Jan 2022 14:20:04 +0000 (15:20 +0100)]
Monitoring script for inverter via meteocontrol weblog pro units

Implements alerting via Opsgenie

3 years agoUse python f-string for output formating
Sven Hoexter [Fri, 27 Aug 2021 12:18:24 +0000 (14:18 +0200)]
Use python f-string for output formating

3 years agosimplify exception to one try block
Sven Hoexter [Fri, 27 Aug 2021 11:30:19 +0000 (13:30 +0200)]
simplify exception to one try block

3 years agoCatch requests exceptions
Sven Höxter [Tue, 24 Aug 2021 07:50:19 +0000 (09:50 +0200)]
Catch requests exceptions

3 years agodkimpy-milter service must be restarted
Sven Hoexter [Mon, 23 Aug 2021 19:11:00 +0000 (21:11 +0200)]
dkimpy-milter service must be restarted

3 years agoAdd envertec portal monitor script with ini config file
Sven Hoexter [Mon, 23 Aug 2021 19:10:09 +0000 (21:10 +0200)]
Add envertec portal monitor script with ini config file

3 years agofirst take on dkim update script
Sven Hoexter [Wed, 26 May 2021 13:29:09 +0000 (15:29 +0200)]
first take on dkim update script

3 years agomunin nullmailer mailque plugin
Sven Hoexter [Fri, 7 May 2021 07:53:37 +0000 (09:53 +0200)]
munin nullmailer mailque plugin

3 years agomove historic hetzner backup scripts
Sven Hoexter [Fri, 7 May 2021 07:12:29 +0000 (09:12 +0200)]
move historic hetzner backup scripts

4 years agofix a typo in mpass help output
Sven Höxter [Tue, 1 Sep 2020 09:45:01 +0000 (11:45 +0200)]
fix a typo in mpass help output

4 years agoclarify script comment
Sven Hoexter [Sun, 31 May 2020 19:17:20 +0000 (21:17 +0200)]
clarify script comment

Turned out our first inverter had only one serial label where we should've
had two.

4 years agouse microconverter id only ones
Sven Hoexter [Tue, 12 May 2020 21:07:43 +0000 (23:07 +0200)]
use microconverter id only ones

It seems the model I experiemented initially with was wrongly labeled
and had the same serial printed on it twice. A different model I got
my hands on has two consecutive serial numbers, which all makes a lot
more sense.

4 years agoMerge branch 'master' of ssh://git.sven.stormbind.net/var/lib/git/sven/scripts
Sven Hoexter [Sun, 29 Mar 2020 11:49:02 +0000 (13:49 +0200)]
Merge branch 'master' of ssh://git.sven.stormbind.net/var/lib/git/sven/scripts

4 years agopython script to replace envertech SetID program for EnverBridge 202
Sven Hoexter [Sun, 29 Mar 2020 11:48:27 +0000 (13:48 +0200)]
python script to replace envertech SetID program for EnverBridge 202

4 years agofix terraform downloader script location header parsing
Sven Höxter [Mon, 2 Mar 2020 12:42:50 +0000 (13:42 +0100)]
fix terraform downloader script location header parsing

Seems github implemented http2 somewhere and now the location header
is lower case.

5 years agoMerge branch 'master' of ssh://git.sven.stormbind.net/var/lib/git/sven/scripts
Sven Hoexter [Tue, 17 Sep 2019 20:43:06 +0000 (22:43 +0200)]
Merge branch 'master' of ssh://git.sven.stormbind.net/var/lib/git/sven/scripts

5 years agoadd terraform download helper
Sven Hoexter [Tue, 17 Sep 2019 20:13:01 +0000 (22:13 +0200)]
add terraform download helper

5 years agoadd nginx script to reply with arbitrary return codes
Sven Höxter [Thu, 7 Mar 2019 15:51:37 +0000 (16:51 +0100)]
add nginx script to reply with arbitrary return codes

5 years agouse pass git build in logic for push and pull operations
Sven Hoexter [Thu, 13 Dec 2018 19:27:44 +0000 (20:27 +0100)]
use pass git build in logic for push and pull operations

5 years agochange mpass behaviour when no command is given
Sven Hoexter [Thu, 13 Dec 2018 19:00:53 +0000 (20:00 +0100)]
change mpass behaviour when no command is given

In case no command is given we initialize() anyway, so we
can just act on the default[] repository. We just have to
ensure that our "$command" is always set, thus we can not
just use $1 in the main command parsing case conditional.

5 years agoprototype of a thin shell wrapper around pass to access multiple repository
Sven Hoexter [Thu, 13 Dec 2018 16:58:56 +0000 (17:58 +0100)]
prototype of a thin shell wrapper around pass to access multiple repository

5 years agonginx config to set cache-control response header based on a cc request header
Sven Hoexter [Sun, 2 Dec 2018 10:15:02 +0000 (11:15 +0100)]
nginx config to set cache-control response header based on a cc request header

Looks out for the request HTTP header "cc", if it's set it takes the header
values verbatim and uses them as the value for a "cache-control" response header.
Allows for a dynamic evaluation of a CDN caching configuration.

5 years agonginx config utilizing inline lua to print all HTTP request header
Sven Hoexter [Sat, 1 Dec 2018 12:51:12 +0000 (13:51 +0100)]
nginx config utilizing inline lua to print all HTTP request header

prints out all HTTP request header as received by the nginx server

6 years agoconsider the content of DISTROS env variable
Sven Höxter [Fri, 27 Jul 2018 12:27:15 +0000 (14:27 +0200)]
consider the content of DISTROS env variable

Allows to override the DISTROS default settings with an env variable.

6 years agoAdd the whole model into one union()
Sven Hoexter [Mon, 30 Apr 2018 18:25:20 +0000 (20:25 +0200)]
Add the whole model into one union()

6 years agoadd first iterations of designing a silva l1 cable clip
Sven Hoexter [Sat, 28 Apr 2018 20:24:36 +0000 (22:24 +0200)]
add first iterations of designing a silva l1 cable clip

6 years agos/pkg/PKG/
Sven Hoexter [Sun, 18 Mar 2018 13:51:40 +0000 (14:51 +0100)]
s/pkg/PKG/

6 years agoadd a simple upload my debian package to my artifactory script
Sven Höxter [Wed, 14 Mar 2018 18:17:17 +0000 (19:17 +0100)]
add a simple upload my debian package to my artifactory script

Very simple script, checks nearly nothing and uploads to a flat repository
layout.

7 years agoadd a workaround to bring up lokal host only virtualbox interfaces
Sven Hoexter [Fri, 26 May 2017 13:16:25 +0000 (15:16 +0200)]
add a workaround to bring up lokal host only virtualbox interfaces

8 years agoSometimes Password, sometimes password. What an assword.
Sven Hoexter [Mon, 26 Sep 2016 13:05:18 +0000 (15:05 +0200)]
Sometimes Password, sometimes password. What an assword.

8 years agosimple wrapper around ssh for password less logins with passwords
Sven Hoexter [Fri, 29 Jul 2016 22:36:39 +0000 (00:36 +0200)]
simple wrapper around ssh for password less logins with passwords

Username and password are extracted from OpenVPN auth-user-pass file
The hostname is expected to be the first argument, all others are just appended
to the ssh command. Nothing is verify, so it's doomed to fail in many ways but
might serve its purpose to allow hassle free logins to certain systems.

10 years agoRemove nd.gd service - dead
Sven Hoexter [Sun, 22 Jun 2014 15:30:37 +0000 (17:30 +0200)]
Remove nd.gd service - dead

10 years agoDecomissioned: archive dyndns mail parserver script for automated account renewal...
Sven Hoexter [Mon, 14 Apr 2014 15:22:43 +0000 (17:22 +0200)]
Decomissioned: archive dyndns mail parserver script for automated account renewal clicking.

11 years agoAdd global options in GOPTS to increase the number of retries from 5 to 15 for hetzne...
Sven Hoexter [Tue, 30 Apr 2013 08:55:13 +0000 (10:55 +0200)]
Add global options in GOPTS to increase the number of retries from 5 to 15 for hetzner unreliability

11 years agoCall error code variable ERRSTAT, that is what it is called within the code and also...
Sven Hoexter [Sun, 21 Apr 2013 13:56:09 +0000 (15:56 +0200)]
Call error code variable ERRSTAT, that is what it is called within the code and also log the code in case of != 0

11 years ago- rename clean_log() -> cleanup()
Sven Hoexter [Sun, 21 Apr 2013 11:27:10 +0000 (13:27 +0200)]
- rename clean_log() -> cleanup()
- Use cleanup() as general purpose cleanup function which also writes
  mails in case of errors and always removes the lockfile.
- Set ERRSTAT = 10 in case the mysql backup isn't finished and report
  subsequently as a failed backup.
- Add .log suffix for the logfile.

12 years agoAdd my very simple IPv6 syn flood script
Sven Hoexter [Thu, 28 Jun 2012 21:54:27 +0000 (23:54 +0200)]
Add my very simple IPv6 syn flood script

12 years agoAdd hacked lxc-debian script for Debian/Squeeze.
Sven Hoexter [Fri, 22 Jun 2012 13:39:59 +0000 (15:39 +0200)]
Add hacked lxc-debian script for Debian/Squeeze.

12 years agoAdd an experimental procmailrc using recpients address for spam/ham feeding
Sven Hoexter [Sat, 21 Apr 2012 13:41:20 +0000 (15:41 +0200)]
Add an experimental procmailrc using recpients address for spam/ham feeding

12 years agoArchive the old courier logcheck excludes.
Sven Hoexter [Mon, 20 Feb 2012 18:48:34 +0000 (19:48 +0100)]
Archive the old courier logcheck excludes.

12 years agoAdd a mysql-proxy sample which mirrors inserts to a sqlite3 db.
Sven Hoexter [Sun, 5 Feb 2012 11:19:11 +0000 (12:19 +0100)]
Add a mysql-proxy sample which mirrors inserts to a sqlite3 db.

13 years agoadd a more aggressive cleanup for duplicity to avoid local and remote cache growth
Sven Hoexter [Sun, 9 Oct 2011 07:49:49 +0000 (09:49 +0200)]
add a more aggressive cleanup for duplicity to avoid local and remote cache growth

13 years agoseems that entropy tops at 4096 bytes - so adjust mrtg.cfg accordingly
Sven Hoexter [Mon, 3 Oct 2011 13:21:24 +0000 (15:21 +0200)]
seems that entropy tops at 4096 bytes - so adjust mrtg.cfg accordingly

13 years agoFix explore_cpu settings.
Sven Hoexter [Sun, 2 Oct 2011 23:02:56 +0000 (01:02 +0200)]
Fix explore_cpu settings.

13 years agoSet MaxBytes for CPU to something reasonable high for use on multicore systems
Sven Hoexter [Sun, 2 Oct 2011 16:42:41 +0000 (18:42 +0200)]
Set MaxBytes for CPU to something reasonable high for use on multicore systems

13 years agoRemove WithPeak where they do not make sense for my own low and very variable output...
Sven Hoexter [Sun, 2 Oct 2011 16:24:34 +0000 (18:24 +0200)]
Remove WithPeak where they do not make sense for my own low and very variable output graphing

13 years agoSimplify for NICs to MaxBytes[xxx]
Sven Hoexter [Sun, 2 Oct 2011 16:09:38 +0000 (18:09 +0200)]
Simplify for NICs to MaxBytes[xxx]

13 years agoPlot available entropy
Sven Hoexter [Sun, 2 Oct 2011 16:04:24 +0000 (18:04 +0200)]
Plot available entropy

13 years agoFix the information for what we plot with cpu actually
Sven Hoexter [Sun, 2 Oct 2011 16:03:15 +0000 (18:03 +0200)]
Fix the information for what we plot with cpu actually

13 years agoOn some systems /var/lock/ is on tmpfs or will be cleaned otherwise
Sven Hoexter [Wed, 27 Apr 2011 14:20:08 +0000 (16:20 +0200)]
On some systems /var/lock/ is on tmpfs or will be cleaned otherwise
on reboot. So we've to make sure that our subdir in /var/lock is
created with approriate permissions before we touch the lockfile.

13 years agoReorder startup messages
Sven Hoexter [Sat, 19 Feb 2011 09:02:02 +0000 (10:02 +0100)]
Reorder startup messages

13 years agotwo more echos where the output belongs into the sessionlog
Sven Hoexter [Fri, 18 Feb 2011 16:22:36 +0000 (17:22 +0100)]
two more echos where the output belongs into the sessionlog

13 years agoAdd a forgotten $SESSIONLOG
Sven Hoexter [Fri, 18 Feb 2011 16:00:18 +0000 (17:00 +0100)]
Add a forgotten $SESSIONLOG

13 years agoIn the current setup it does not make any sense to set -u or -e
Sven Hoexter [Fri, 18 Feb 2011 15:59:38 +0000 (16:59 +0100)]
In the current setup it does not make any sense to set -u or -e

13 years agoFirst try to make this a bit more robust and add email reporting in case of error
Sven Hoexter [Fri, 18 Feb 2011 15:34:36 +0000 (16:34 +0100)]
First try to make this a bit more robust and add email reporting in case of error

13 years agoImport myichatstrip.tcl
Sven Hoexter [Mon, 17 Jan 2011 17:43:35 +0000 (18:43 +0100)]
Import myichatstrip.tcl

13 years agoAdd kommandolangstrumpf user script
Sven Hoexter [Mon, 17 Jan 2011 17:30:06 +0000 (18:30 +0100)]
Add kommandolangstrumpf user script

13 years agoUpdate mtinyurl.tcl up to version 3
Sven Hoexter [Mon, 17 Jan 2011 17:29:09 +0000 (18:29 +0100)]
Update mtinyurl.tcl up to version 3

13 years agoUpdate mtinyurl.tcl up to version 2
Sven Hoexter [Mon, 17 Jan 2011 17:28:57 +0000 (18:28 +0100)]
Update mtinyurl.tcl up to version 2

13 years agoImport first version of mtinyurl.tcl
Sven Hoexter [Mon, 17 Jan 2011 17:28:28 +0000 (18:28 +0100)]
Import first version of mtinyurl.tcl

13 years agoImport bposearch
Sven Hoexter [Mon, 17 Jan 2011 17:00:17 +0000 (18:00 +0100)]
Import bposearch

13 years agoImport zabbix helper
Sven Hoexter [Mon, 17 Jan 2011 16:45:46 +0000 (17:45 +0100)]
Import zabbix helper

13 years agoImport stormbind script
Sven Hoexter [Mon, 17 Jan 2011 16:45:28 +0000 (17:45 +0100)]
Import stormbind script

13 years agoImport Alix mrtg scripts
Sven Hoexter [Mon, 17 Jan 2011 16:45:16 +0000 (17:45 +0100)]
Import Alix mrtg scripts

13 years agoImport hetzner backup scripts
Sven Hoexter [Mon, 17 Jan 2011 16:45:02 +0000 (17:45 +0100)]
Import hetzner backup scripts