Log server priority and severity set to 0
Posted: Tue Oct 08, 2019 3:13 am
Hi,
I'm currently working on a project where I need to send log messages to Nagios server. I can send messages, but priority and severity are always set to zero eventhough I changed from DEBUG to ERROR. I'm completely new to Nagios as I'm just developing the Python code and I never worked with Nagios.
I also include what I'm currently logging:
2019-10-04 11:39:37,823 - __main__ - INFO - *** Process start ***
2019-10-04 11:39:37,823 - __main__ - INFO - Connecting to DB
2019-10-04 11:39:37,831 - __main__ - INFO - Connection created
2019-10-04 11:39:37,835 - __main__ - INFO - Query executed
2019-10-04 11:39:38,355 - __main__ - INFO - *** Process ends ***
I've done some research, but I can't find the reason to this.
Any help in the right direction will be highly appreciated.
Best regards,
Àlex
I'm currently working on a project where I need to send log messages to Nagios server. I can send messages, but priority and severity are always set to zero eventhough I changed from DEBUG to ERROR. I'm completely new to Nagios as I'm just developing the Python code and I never worked with Nagios.
I also include what I'm currently logging:
2019-10-04 11:39:37,823 - __main__ - INFO - *** Process start ***
2019-10-04 11:39:37,823 - __main__ - INFO - Connecting to DB
2019-10-04 11:39:37,831 - __main__ - INFO - Connection created
2019-10-04 11:39:37,835 - __main__ - INFO - Query executed
2019-10-04 11:39:38,355 - __main__ - INFO - *** Process ends ***
I've done some research, but I can't find the reason to this.
Any help in the right direction will be highly appreciated.
Best regards,
Àlex