Merge ~hloeung/ubuntu-mirror-charm:master into ubuntu-mirror-charm:master

Proposed by Haw Loeung
Status: Merged
Approved by: Haw Loeung
Approved revision: c70b734b407d9a56f5d2232b50cbd15e050c3fd0
Merged at revision: 40061ba8802d06153191ab6d3a7b65d267f8408d
Proposed branch: ~hloeung/ubuntu-mirror-charm:master
Merge into: ubuntu-mirror-charm:master
Diff against target: 7 lines (+1/-1)
1 file modified
templates/nagios-check_rsync.tmpl (+1/-1)
Reviewer Review Type Date Requested Status
Alexandre Gomes Approve
Canonical IS Reviewers Pending
Review via email: mp+389762@code.launchpad.net

Commit message

Update nagios rsync check to only check daemon processes - LP:1891833

Description of the change

$ /usr/lib/nagios/plugins/check_procs -c 1:79 -w 1:66 -C rsync -vv
CMD: /bin/ps axwwo 'stat uid pid ppid vsz rss pcpu etime comm args'
Matched: uid=997 vsz=41208 rss=17692 pid=54157 ppid=54153 pcpu=2.60 stat=S etime=03:50 prog=rsync args=rsync --verbose --recursive --times --links --hard-links --stats --exclude Packages* --exclude Sources* --exclude Release* --exclude InRelease --exclude Translation* --exclude Index --exclude /srv2/ftp.root/ubuntu-ports/Archive-Update-in-Progress-ports-banjo --exclude .trace/ports-banjo --exclude .~tmp~ rsync://ports.syncproxy.ubuntu.com/ports /srv2/ftp.root/ubuntu-ports
Matched: uid=997 vsz=64160 rss=25932 pid=54161 ppid=54157 pcpu=1.00 stat=S etime=03:50 prog=rsync args=rsync --verbose --recursive --times --links --hard-links --stats --exclude Packages* --exclude Sources* --exclude Release* --exclude InRelease --exclude Translation* --exclude Index --exclude /srv2/ftp.root/ubuntu-ports/Archive-Update-in-Progress-ports-banjo --exclude .trace/ports-banjo --exclude .~tmp~ rsync://ports.syncproxy.ubuntu.com/ports /srv2/ftp.root/ubuntu-ports
Matched: uid=65534 vsz=82224 rss=20356 pid=55802 ppid=1 pcpu=16.60 stat=Ss etime=02:21 prog=rsync args=/usr/bin/rsync --daemon
Matched: uid=65534 vsz=38192 rss=9256 pid=60661 ppid=1 pcpu=9.70 stat=Ss etime=01:58 prog=rsync args=/usr/bin/rsync --daemon
Matched: uid=65534 vsz=128796 rss=99656 pid=63661 ppid=1 pcpu=23.20 stat=Ss etime=00:29 prog=rsync args=/usr/bin/rsync --daemon
PROCS OK: 5 processes with command name 'rsync' | procs=5;1:66;1:79;0;

vs.

$ /usr/lib/nagios/plugins/check_procs -c 1:79 -w 1:66 -C rsync -vv -a daemon
CMD: /bin/ps axwwo 'stat uid pid ppid vsz rss pcpu etime comm args'
Matched: uid=65534 vsz=82224 rss=20576 pid=55802 ppid=1 pcpu=16.30 stat=Ss etime=02:24 prog=rsync args=/usr/bin/rsync --daemon
Matched: uid=65534 vsz=38192 rss=9256 pid=60661 ppid=1 pcpu=10.10 stat=Ss etime=02:01 prog=rsync args=/usr/bin/rsync --daemon
Matched: uid=65534 vsz=128796 rss=99656 pid=63661 ppid=1 pcpu=21.00 stat=Ss etime=00:32 prog=rsync args=/usr/bin/rsync --daemon
PROCS OK: 3 processes with command name 'rsync', args 'daemon' | procs=3;1:66;1:79;0;

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Alexandre Gomes (alejdg) wrote :

+!

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 40061ba8802d06153191ab6d3a7b65d267f8408d

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/templates/nagios-check_rsync.tmpl b/templates/nagios-check_rsync.tmpl
index 1414097..d108cf1 100644
--- a/templates/nagios-check_rsync.tmpl
+++ b/templates/nagios-check_rsync.tmpl
@@ -1 +1 @@
1command[check_rsync_${name}]=/usr/lib/nagios/plugins/check_procs -c 1:${rsync_crit} -w 1:${rsync_warn} -C rsync1command[check_rsync_${name}]=/usr/lib/nagios/plugins/check_procs -c 1:${rsync_crit} -w 1:${rsync_warn} -C rsync -a daemon

Subscribers

People subscribed via source and target branches