diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..edc8155 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "nagios"] + path = nagios.src + url = https://git.mount-mockery.de/pylib/nagios.git diff --git a/nagios.src b/nagios.src new file mode 160000 index 0000000..fd556d9 --- /dev/null +++ b/nagios.src @@ -0,0 +1 @@ +Subproject commit fd556d92ad987ecd81f1bc220933d40d4f3446fb diff --git a/nagios_status b/nagios_status new file mode 100755 index 0000000..3b24719 --- /dev/null +++ b/nagios_status @@ -0,0 +1,10 @@ +#!/bin/sh +# +BASEDIR=$(dirname $0) + +if [ $# -eq 0 ]; then + python3 $BASEDIR/nagios.src/status.py nagios.home +else + python3 $BASEDIR/nagios.src/status.py $* +fi +