open-hpi / openhpi

Other
6 stars 10 forks source link

Openhpid continuously logs warnings and errors if there is an error in configuration file #2722

Closed ngothan closed 5 years ago

ngothan commented 6 years ago

Description of problem: During my testing I made a mistake in configuration file of openhpid. And when I tried start openhpid with this wrong configuration file it writes that there is error. But after that is continuously writes down warnings and error massages. But as user I rather expect, if it just write the error or warning message and stop.

Version-Release number of selected component (if applicable): openhpi-3.8.0

How reproducible: 100%

Steps to Reproduce:

  1. make a mistake in /etc/openhpi/openhpi.conf
  2. openhpid -n -c /etc/openhpi/openhpi.conf

Actual results: openhpid: CRIT: conf.c:332: Processing handler: Expected string, integer, or float token. openhpid: CRIT: conf.c:480: /etc/openhpi/openhpi.conf:2: error: unexpected character '\', expected "handle" or "domain".

openhpid: CRIT: conf.c:480: /etc/openhpi/openhpi.conf:10: error: scanner: unterminated string constant.

openhpid: CRIT: plugin.c:465: Warning - no handlers openhpid: CRIT: plugin.c:465: Warning - no handlers openhpid: CRIT: threaded.c:83: Error on harvest of events. openhpid: CRIT: plugin.c:465: Warning - no handlers openhpid: CRIT: threaded.c:83: Error on harvest of events. openhpid: CRIT: plugin.c:465: Warning - no handlers openhpid: CRIT: threaded.c:83: Error on harvest of events. openhpid: CRIT: plugin.c:465: Warning - no handlers openhpid: CRIT: threaded.c:83: Error on harvest of events. openhpid: CRIT: plugin.c:465: Warning - no handlers ...... again again again

Expected results: openhpid: CRIT: conf.c:332: Processing handler: Expected string, integer, or float token. openhpid: CRIT: conf.c:480: /etc/openhpi/openhpi.conf:2: error: unexpected character '\', expected "handle" or "domain".

openhpid: CRIT: conf.c:480: /etc/openhpi/openhpi.conf:10: error: scanner: unterminated string constant.

openhpid: CRIT: plugin.c:465: Warning - no handlers openhpid: CRIT: threaded.c:83: Error on harvest of events. ...END