sensu / monitoring-plugins

Sensu Assets for the monitoring-plugins.org project
https://monitoring-plugins.org
5 stars 16 forks source link

Feature Request: Assets for EL 8 #11

Closed seifer44 closed 4 years ago

seifer44 commented 4 years ago

The CentOS 7 assets do not work on a RHEL 8 host. This is not too surprising, but it'd be nice to get some EL 8 assets built.

The following messages are logged after trying to execute the module with the CentOS 7 assets.

Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","content_type":"application/octet-stream","level":"info","msg":"message received","payload_size":964,"time":"2020-01-31T12:38:56-07:00","type":"check_request"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","level":"info","msg":"scheduling check execution: linux-sensu-london-ping","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"assets":["sensu-monitoring-plugins-centos"],"check":"linux-sensu-london-ping","component":"agent","level":"debug","msg":"fetching assets for check","namespace":"default","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"asset":"sensu-monitoring-plugins-centos","component":"asset-manager","entity":"localhost.example.com","filters":null,"level":"debug","msg":"entity filtered, installing asset","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"asset":"sensu-monitoring-plugins-centos6","component":"asset-manager","entity":"localhost.example.com","filters":["entity.system.platform_family == \"rhel\"","entity.system.platform_version \u003e= 6 \u0026\u0026 entity.system.platform_version \u003c 7"],"level":"debug","msg":"entity not filtered, not installing asset","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost kernel: sh[25957]: segfault at 0 ip 0000000000000000 sp 00007ffeb851cff8 error 14 in bash[5571a1a3d000+108000]
Jan 31 19:38:56 localhost kernel: Code: Bad RIP value.
Jan 31 19:38:56 localhost kernel: sh[25960]: segfault at 0 ip 0000000000000000 sp 00007ffc3181eda8 error 14 in bash[55e06c116000+108000]
Jan 31 19:38:56 localhost kernel: Code: Bad RIP value.
Jan 31 19:38:56 localhost sensu-backend[25747]: {"check":"linux-sensu-london-ssh","component":"schedulerd","level":"debug","msg":"sending check request","time":"2020-01-31T12:38:56-07:00","topic":"sensu:check:default:entity:localhost.example.com"}
Jan 31 19:38:56 localhost sensu-backend[25747]: {"component":"agentd","level":"debug","msg":"session - sending message","payload_size":940,"time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","content_type":"application/octet-stream","level":"info","msg":"message received","payload_size":940,"time":"2020-01-31T12:38:56-07:00","type":"check_request"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","level":"info","msg":"scheduling check execution: linux-sensu-london-ssh","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"assets":["sensu-monitoring-plugins-centos"],"check":"linux-sensu-london-ssh","component":"agent","level":"debug","msg":"fetching assets for check","namespace":"default","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"asset":"sensu-monitoring-plugins-centos","component":"asset-manager","entity":"localhost.example.com","filters":null,"level":"debug","msg":"entity filtered, installing asset","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"asset":"sensu-monitoring-plugins-centos6","component":"asset-manager","entity":"localhost.example.com","filters":["entity.system.platform_family == \"rhel\"","entity.system.platform_version \u003e= 6 \u0026\u0026 entity.system.platform_version \u003c 7"],"level":"debug","msg":"entity not filtered, not installing asset","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost systemd[1]: Started Process Core Dump (PID 25959/UID 0).
Jan 31 19:38:56 localhost systemd[1]: Started Process Core Dump (PID 25961/UID 0).
Jan 31 19:38:56 localhost sensu-backend[25747]: {"component":"schedulerd","level":"debug","msg":"check is not subdued","name":"remediate-linux-idm-ts-directory-restart","namespace":"default","scheduler_type":"interval","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","content_type":"application/octet-stream","level":"info","msg":"sending message","payload_size":662,"time":"2020-01-31T12:38:56-07:00","type":"event"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","level":"info","msg":"sending event","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-backend[25747]: {"check_name":"linux-sensu-london-ping","check_namespace":"default","component":"pipelined","entity_name":"localhost2example.com","entity_namespace":"default","hooks":null,"level":"debug","msg":"received event","silenced":["entity:localhost2example.com:linux-sensu-london-ping"],"time":"2020-01-31T12:38:56-07:00","timestamp":1580499536}
Jan 31 19:38:56 localhost sensu-backend[25747]: {"check_name":"linux-sensu-london-ping","check_namespace":"default","component":"pipelined","entity_name":"localhost2example.com","entity_namespace":"default","filter":"not_silenced","handler":"sensu-mailer-linux","level":"debug","msg":"denying event that is silenced","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-backend[25747]: {"check_name":"linux-sensu-london-ping","check_namespace":"default","component":"pipelined","entity_name":"localhost2example.com","entity_namespace":"default","handler":"sensu-mailer-linux","level":"info","msg":"event filtered","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","content_type":"application/octet-stream","level":"info","msg":"sending message","payload_size":638,"time":"2020-01-31T12:38:56-07:00","type":"event"}
Jan 31 19:38:56 localhost sensu-agent[25946]: {"component":"agent","level":"info","msg":"sending event","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-backend[25747]: {"check_name":"linux-sensu-london-ssh","check_namespace":"default","component":"pipelined","entity_name":"localhost2example.com","entity_namespace":"default","hooks":null,"level":"debug","msg":"received event","silenced":["entity:localhost2example.com:linux-sensu-london-ssh"],"time":"2020-01-31T12:38:56-07:00","timestamp":1580499536}
Jan 31 19:38:56 localhost systemd-coredump[25962]: Process 25957 (sh) of user 192 dumped core.#012#012Stack trace of thread 25957:#012#0  0x0000000000000000 n/a (n/a)#012#1  0x00007f33b84c71a4 dl_main (ld-linux-x86-64.so.2)#012#2  0x00007f33b84dcb1f _dl_sysdep_start (ld-linux-x86-64.so.2)#012#3  0x00007f33b84c50f8 _dl_start (ld-linux-x86-64.so.2)#012#4  0x00007f33b84c4038 _start (ld-linux-x86-64.so.2)
Jan 31 19:38:56 localhost systemd-coredump[25963]: Process 25960 (sh) of user 192 dumped core.#012#012Stack trace of thread 25960:#012#0  0x0000000000000000 n/a (n/a)#012#1  0x00007fc72d11a1a4 dl_main (ld-linux-x86-64.so.2)#012#2  0x00007fc72d12fb1f _dl_sysdep_start (ld-linux-x86-64.so.2)#012#3  0x00007fc72d1180f8 _dl_start (ld-linux-x86-64.so.2)#012#4  0x00007fc72d117038 _start (ld-linux-x86-64.so.2)
Jan 31 19:38:56 localhost sensu-backend[25747]: {"check_name":"linux-sensu-london-ssh","check_namespace":"default","component":"pipelined","entity_name":"localhost2example.com","entity_namespace":"default","filter":"not_silenced","handler":"sensu-mailer-linux","level":"debug","msg":"denying event that is silenced","time":"2020-01-31T12:38:56-07:00"}
Jan 31 19:38:56 localhost sensu-backend[25747]: {"check_name":"linux-sensu-london-ssh","check_namespace":"default","component":"pipelined","entity_name":"localhost2example.com","entity_namespace":"default","handler":"sensu-mailer-linux","level":"info","msg":"event filtered","time":"2020-01-31T12:38:56-07:00"}
toozej commented 4 years ago

My pull request https://github.com/sensu/monitoring-plugins/pull/10 will compile assets for EL 8. From a functionality perspective it is ready to merge, however there's definitely some improvements to make in terms of the Ubuntu assets could use their corresponding Debian assets to avoid compiling twice.