#245 add check for rsyslogd
Merged 3 years ago by kevin. Opened 3 years ago by seddik.
Unknown source rsyslogd-check  into  master

@@ -294,6 +294,16 @@

    - service

    - nagios_client

  

+ - name: install nrpe check for rsyslogd

+   template:

+     src: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} owner=root group=root mode=0644

+   with_items:

+     - check_rsyslogd_proc.cfg

+   notify:

+     - restart nrpe

+   tags:

+     - nagios_client

+ 

  - name: Check if the fedmsg group exists

    shell: /usr/bin/getent group fedmsg | /usr/bin/wc -l | tr -d ' '

    register: fedmsg_exists

@@ -0,0 +1,1 @@

+ command[check_rsyslogd_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:2 -C 'rsyslogd'

@@ -50,3 +50,10 @@

    use                   defaulttemplate

  }

  

+ define service {

+   hostgroup             all

+   service_description   Rsyslogd Process

+   check_command         check_by_nrpe!check_rsyslogd_proc

+   use                   defaulttemplate

+ }

+ 

@@ -317,6 +317,7 @@

  command[check_auditd]=/usr/lib64/nagios/plugins/check_procs -c 1:1 -C 'auditd' -u root

  command[check_cron]=/usr/lib64/nagios/plugins/check_procs -c 1:10 -C 'crond' -u root

  command[check_varnish_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:2 -C 'varnishd' -u varnish

+ command[check_rsyslogd_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:2 -C 'rsyslogd'

  command[check_saslauthd]=/usr/lib64/nagios/plugins/check_procs -c 1:10 -C 'saslauthd' -u root

  command[check_readonly_fs]=/usr/lib64/nagios/plugins/check_readonly_fs

  command[check_postfix_queue]=/usr/lib64/nagios/plugins/check_postfix_queue -w 2 -c 5

adding rsyslogd check for all machines
it can generate critical state if metric is outside this range ....

/usr/lib64/nagios/plugins/check_procs -c 1:2 -C "rsyslogd"

@kevin @smooge could you verify this insertions ?

Metadata Update from @kevin:
- Pull-request tagged with: post-freeze

3 years ago

Looks good to me, but will need to wait until after freeze to apply. :)

Thanks for working on it!

:guardsman:

Looks good to me, but will need to wait until after freeze to apply. :)

Thanks for working on it!

:guardsman:

OK thanks for replying :)

Seems there are now conflicts. Can you fix that up and we can get this merged?

rebased onto e785293

3 years ago

rebased onto e785293

3 years ago

Oh wait, I got it to rebase. ;)

Pull-Request has been merged by kevin

3 years ago