Just small adjustments. (0.21.5)
This commit is contained in:
parent
d7ffeac943
commit
5dfbc462ed
3 changed files with 2 additions and 11 deletions
|
|
@ -17,7 +17,7 @@ log_level = INFO
|
|||
; logfile to use
|
||||
logfile = /home/hanez/code/linspector/linspector/log/linspector.log
|
||||
; number of logfiles to keep (default: 10)
|
||||
logfile_count = 2
|
||||
logfile_count = 1
|
||||
; logfile format. this overrides the default configured in the code
|
||||
;logfile_format = [{time:YYYY-MM-DD HH:mm:ss.SSSSSS ZZ}] [{elapsed}] [{level}] [linspector] [{name}:{function}:{line}]: {message}
|
||||
; log level for file based logging
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
[monitor]
|
||||
title = Random 0
|
||||
description = Random 0 Service Check
|
||||
service = misc.random
|
||||
host = 127.0.0.0
|
||||
interval = 0
|
||||
|
||||
[args]
|
||||
message = Hello World!
|
||||
|
|
@ -42,6 +42,6 @@ class RandomService(Service):
|
|||
self.__log.info('identifier=' + identifier +
|
||||
' host=' + monitor.get_host() +
|
||||
' service=' + service +
|
||||
' status=' + ('OK' if status == 0 else 'ERROR') + ' sha512=' +
|
||||
' status=' + ('OK' if status == 0 else 'ERROR') + ' message=' +
|
||||
sha512)
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue