alerta / nagios-alerta

Forward nagios alerts to the alerta monitoring system
http://alerta.io
MIT License
23 stars 15 forks source link

Alerta log on Livestatus and error #44

Closed jbeaujour closed 2 years ago

jbeaujour commented 3 years ago

Hello Issue Summary When Alerta Neb is initialised, it log in nagios.log with Livestatus message and some error

Environment

To Reproduce Steps to reproduce the behavior:

  1. stop/start nagios
  2. look on nagios.log
  3. See error (include command output)

Expected behavior No Livestatus message with "alerta" as NEB module error %s assigned

Screenshots [1627446602] alerta: NEB callbacks for host and service checks successfully de-registered. Bye. [1627446602] Event broker module '/usr/lib/nagios/alerta-neb.o' deinitialized successfully. [1627446602] Event broker module '/usr/lib64/mod_gearman/mod_gearman_nagios4.o' deinitialized successfully. [1627446602] alerta: deinitializing [1627446602] alerta: Waiting for main to terminate... [1627446602] alerta: Socket thread has terminated [1627446602] alerta: error: %s [1627446602] alerta: Waiting for client threads to terminate... [1627446602] alerta: Logfile cache: flushing complete cache. [1627446602] Event broker module '/usr/local/lib/mk-livestatus/livestatus128.o' deinitialized successfully.

[1627446602] Nagios 4.4.5 starting... (PID=258423) [1627446602] Local time is Wed Jul 28 06:30:02 CEST 2021 [1627446602] LOG VERSION: 2.0 [1627446602] qh: Socket '/var/spool/nagios/cmd/nagios.qh' successfully initialized [1627446602] qh: core query handler registered [1627446602] qh: echo service query handler registered [1627446602] qh: help for the query handler registered [1627446602] wproc: Successfully registered manager as @wproc with query handler [1627446602] wproc: Registry request: name=Core Worker 258425;pid=258425 ..... [1627446602] wproc: Registry request: name=Core Worker 258436;pid=258436 [1627446603] alerta: Initialising Nagios-Alerta Gateway module, v5.0.1 [1627446603] alerta: debug is off [1627446603] alerta: states=Hard/Soft [1627446603] alerta: Forward service checks, host checks and downtime to http://xxxxxxxxxxxxxxx:80/api [1627446603] Event broker module '/usr/lib/nagios/alerta-neb.o' initialized successfully. [1627446603] mod_gearman: initialized version 3.0.9 (libgearman 0.33) [1627446603] Event broker module '/usr/lib64/mod_gearman/mod_gearman_nagios4.o' initialized successfully. [1627446603] alerta: Livestatus %s by Mathias Kettner. Socket: '%s' [1627446603] alerta: Please visit us at http://mathias-kettner.de/ [1627446603] alerta: Hint: please try out OMD - the Open Monitoring Distribution [1627446603] alerta: Please visit OMD at http://omdistro.org [1627446603] alerta: Finished initialization. Further log messages go to %s [1627446603] Event broker module '/usr/local/lib/mk-livestatus/livestatus128.o' initialized successfully.

without alerta-neb [1627457291] livestatus: Livestatus 1.2.8p25 by Mathias Kettner. Socket: '/usr/local/nagios/var/rw/live' [1627457291] livestatus: Please visit us at http://mathias-kettner.de/ [1627457291] livestatus: Hint: please try out OMD - the Open Monitoring Distribution [1627457291] livestatus: Please visit OMD at http://omdistro.org [1627457291] livestatus: Finished initialization. Further log messages go to /u01/app/nagios/var/log/livestatus.log

Additional context Uses with mod_gearman and livestatus (1.2.8)

Thank's

satterly commented 2 years ago

Sorry I don't know anything about mod_gearman or livestatus. Closing.