Skip to content

Commit

Permalink
Modify monit configuration to be able to monitor the process status.
Browse files Browse the repository at this point in the history
  • Loading branch information
votdev committed Mar 28, 2017
1 parent a83e8f2 commit 526211e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions deb/openmediavault-nut/debian/changelog
@@ -1,3 +1,9 @@
openmediavault-nut (3.2.10) stable; urgency=low

* Modify monit configuration to be able to monitor the process status.

-- Volker Theile <volker.theile@openmediavault.org> Tue, 28 Mar 2017 21:17:47 +0200

openmediavault-nut (3.2.9) stable; urgency=low

* Fix first installation bug.
Expand Down
2 changes: 1 addition & 1 deletion deb/openmediavault-nut/debian/control
Expand Up @@ -9,7 +9,7 @@ Homepage: http://www.openmediavault.org

Package: openmediavault-nut
Architecture: all
Depends: openmediavault (>= 3.0.60), nut (>= 2.6.4), udev
Depends: openmediavault (>= 3.0.68), nut (>= 2.6.4), udev
Priority: optional
Description: OpenMediaVault Network UPS Tools (NUT) plugin
Network UPS Tools (NUT) is a client/server monitoring system that
Expand Down
Expand Up @@ -31,7 +31,7 @@ rm -f ${OMV_MONIT_SERVICE_NUT_CONFIG}
[ "$(omv_config_get "//services/nut/enable")" = "0" ] && exit 0

cat <<EOF > ${OMV_MONIT_SERVICE_NUT_CONFIG}
check process nut-server with pidfile /var/run/nut/upsd.pid
check process nut-server with matching upsd
group nut
start program = "/bin/systemctl start nut-server"
stop program = "/bin/systemctl stop nut-server"
Expand All @@ -49,7 +49,7 @@ xmlstarlet sel -t -m "//system/email" \

cat <<EOF >> ${OMV_MONIT_SERVICE_NUT_CONFIG}
check process nut-monitor with pidfile /var/run/nut/upsmon.pid
check process nut-monitor with matching upsmon
group nut
start program = "/bin/systemctl start nut-monitor"
stop program = "/bin/systemctl stop nut-monitor"
Expand Down

0 comments on commit 526211e

Please sign in to comment.