プロジェクト

全般

プロフィール

操作問い合わせ #3518 » configとログ.txt

補足資料 - 匿名ユーザー, 2020/09/02 16:18

 
$B"#(Jjobarg_agentd.conf$B$NFbMF(J
===============================================================================================================
# Job Arranger for ZABBIX
# This is a configuration file for Job Arranger Agent process

############ ZABBIX PARAMETERS INCLUDE #################

### Option: Include
# You may include ONLY individual file in the configuration file.
# Do NOT include 'all files in a directory' nor wildcard like /*.conf even in included files.
#
# Mandatory: no
# Default:
# Include=
Include=/etc/zabbix/zabbix_agent2.conf

############ GENERAL PARAMETERS #################

### Option: TmpDir
# Temporary directory.
#
# Mandatory: yes
# Default:
# TmpDir=
TmpDir=/var/lib/jobarranger/tmp


### Option: Server
# List of comma delimited IP address (or hostname) of Job Arranger Server.
# Incoming connections for Job Arranger Agent will be accepted only from the hosts listed here.
#
# Mandatory: no
# Default:
# Server=
# Server=127.0.0.1
Server=192.168.57.150

### Option: Hostname
# Unique, case sensitive hostname.
# Required for agent processing and must match the registered hostname on the server side.
# Agent hostname is used if not specified here.
#
# Mandatory: no
# Default:
# Hostname=
Hostname=ZAG501

############ ADVANCED PARAMETERS ################

### Option: AllowRoot
# Allow the agent to run as 'root'. If disabled and the agent is started by 'root', the agent
# will try to switch to user 'zabbix(Default)' instead. Has no effect if started under a regular user.
# 0 - do not allow
# 1 - allow
#
# Mandatory: no
# Default:
# AllowRoot=0
AllowRoot=1

### Option: ListenIP
# IP address that Job Arranger Agent should listen on.
# This IP address is also used as SourceIP for connecting back to Job Arranger Server upon completion of Agent processing.
#
# Mandatory: no
# Default:
# ListenIP=0.0.0.0
ListenIP=192.168.57.151

### Option: Timeout
# Spend no more than Timeout seconds on processing
#
# Mandatory: no
# Range: 1-300
# Default: 5 (second)
# Timeout=5

### Option: DebugLevel
# Specifies debug level
# 0 - no debug
# 1 - critical information
# 2 - error information
# 3 - warnings
# 4 - for debugging (produces lots of information)
#
# Mandatory: no
# Range: 0-4
# Default: 3
# DebugLevel=3
DebugLevel=3

### Option: LogFileSize
# Maximum size of log file in MB.
# 0 - disable automatic log rotation.
#
# Mandatory: no
# Range: 0-1024
# Default: 1 (MB)
# LogFileSize=1
LogFileSize=10

############ JOB ARRANGER SPECIFIC PARAMETERS ################

### Option: JaLogFile
# Name of log file.
# If not set, syslog is used.
#
# Mandatory: no
# Default:
# JaLogFile=
JaLogFile=/var/log/jobarranger/jobarg_agentd.log

### Option: JaPidFile
# Name of PID file.
#
# Mandatory: no
# Default:
# JaPidFile=/tmp/jobarg_agentd.pid
JaPidFile=/var/run/jobarranger/jobarg_agentd.pid

### Option: JaServerPort
# Specify the listening port of the job server.
#
# Mandatory: no
# Range: 1024-32767
# Default: 10061
# JaServerPort=10061
JaServerPort=10061

### Option: JaListenPort
# Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Default: 10055
# JaListenPort=10055
JaListenPort=10055

### Option: JaSendRetry
# The number of times of a retry when a data transmitting error occurs.
#
# Mandatory: no
# Range: 0-3600
# Default: 30 (Number of times)
# JaSendRetry=30
JaSendRetry=30

### Option: JaDatabaseFile
# The file name used by SQLite.
#
# Mandatory: yes
# Default:
# JaDatabaseFile=
JaDatabaseFile=/var/lib/jobarranger/jobarg_agentd.db

### Option: JaJobHistory
# The period which keeps job execution history data in SQLite.
# This period should be reconcidered by a daily moving average.
#
# Mandatory: no
# Range: 1-365
# Default: 1 (Day)
# JaJobHistory=1

### Option: JaBackupTime
# Backup process' starting time of a SQLite database.
# Specify the backup processing interval time.
# Base starting time is UTC+0, and backup is performed in every this interval time from the starting time.
# This is used only when JaBackupRunTime is 24(Disabled).
#
# Mandatory: no
# Range: 1-24
# Default: 24 (Time)
# JaBackupTime=24

### Option: JaBackupRunTime
# Backup process' starting time of a SQLite database.
# Specify the backup processing time of the day.
# Backup is performed at this time of the day based on host local time.
# This is used only the value is in the range from 0 to 23.
#
# Mandatory: no
# Range: 0-23 (Time)
# Default: 24 (Disabled)
# JaBackupRunTime=24

### Option: JaExtjobPath
# Directory to place an extended job.
#
# Mandatory: yes
# Default:
# JaExtjobPath=
JaExtjobPath=/etc/jobarranger/extendedjob

### Option: JaFcopyTimeout
# The communication timeout value for a file transfer processing.
#
# Mandatory: no
# Range: 1-3600
# Default: 180 (second)
# JaFcopyTimeout=180

### Option: JaListenRetry
# Specifies the number of retries if a listen error occurs.
# Retry is performed every other second.
#
# Mandatory: no
# Range: 0-3600
# Default: 30 (Number of times)
# JaListenRetry=30

### Option: JaExecutionUser
# Specify the execution user of Job Arranger Agent.
# This value is ignored in the windows version job agent.
#
# Mandatory: no
# Default: zabbix
# JaExecutionUser=zabbix

### Option: JaCommandUser
# Specify the user to run the command.
# You must set the "AllowRoot=1" option when using this option.
#
# Mandatory: no
# Default:
# JaCommandUser=
JaCommandUser=jobarranger

### Option: JaCommandPassword
# Specify the password for Windows user run the command.
# You must set the "AllowRoot=1" option when using this option.
# This value is ignored in the Linux version job agent.
#
# Mandatory: no
# Default:
# JaCommandPassword=
===============================================================================================================


$B"#(JJob Agent $B:F5/F0;~$N%m%0(J
===============================================================================================================

15065:20200902:180544.288 [WARN] Got signal [signal:15(SIGTERM),sender_pid:8986,sender_uid:988,reason:0]. Exiting ...
15065:20200902:180546.289 [INFO] Job Arranger Agent stopped. Job Arranger 5.0.0 (revision 7532).
8990:20200902:180546.298 [INFO] Starting Job Arranger Agent. Job Arranger 5.0.0 (revision 7532).
8990:20200902:180546.298 [INFO] open the database. filename: /var/lib/jobarranger/jobarg_agentd.db
8990:20200902:180546.299 [INFO] In ja_jobdb_init() : not alter table jobs add column
8991:20200902:180546.305 [INFO] jobarg_agentd #0 started [executive]
8992:20200902:180546.306 [INFO] jobarg_agentd #1 started [listener]
8993:20200902:180546.306 [INFO] jobarg_agentd #2 started [jadbbackup]
===============================================================================================================


$B"#(JJob Agent$B$N%W%m%;%93NG'(J
===============================================================================================================
# ps -ef |grep job
root 8965 8911 0 18:05 pts/2 00:00:00 tail -f /var/log/jobarranger/jobarg_agentd.log
zabbix 8990 1 0 18:05 ? 00:00:00 /usr/sbin/jobarg_agentd -c /etc/jobarranger/jobarg_agentd.conf
zabbix 8991 8990 0 18:05 ? 00:00:00 /usr/sbin/jobarg_agentd -c /etc/jobarranger/jobarg_agentd.conf
zabbix 8992 8990 0 18:05 ? 00:00:00 /usr/sbin/jobarg_agentd -c /etc/jobarranger/jobarg_agentd.conf
zabbix 8993 8990 0 18:05 ? 00:00:00 /usr/sbin/jobarg_agentd -c /etc/jobarranger/jobarg_agentd.conf
root 9006 7218 0 18:06 pts/0 00:00:00 grep --color=auto job
===============================================================================================================


$B"#%8%g%V$N%F%9%H<B9T!J<B9T%f!<%6$N;XDj$J$7!K;~$N%m%0(J
===============================================================================================================
8992:20200902:180831.648 [INFO] In ja_agent_begin() jobid: 166, method: 1
8992:20200902:180831.649 [WARN] In ja_jobdb_get_status() can not find jobid: 166
8992:20200902:180831.649 [INFO] In ja_jobdb_insert() jobid: 166 is created
8992:20200902:180831.651 [INFO] jobid: 166, method: 1 is begin
8991:20200902:180832.425 [INFO] In ja_job_object_list_executive () jobid: 166, type: command, status: BEGIN
8991:20200902:180832.425 [INFO] jobid: 166, status: 0
8991:20200902:180836.431 [WARN] The process can not be started , jobid: 166 the message:Agent does not to run as 'root'
8991:20200902:180836.432 [ERROR] In ja_jobfile_chkend() process 9029 isn't existed, jobid: 166
8991:20200902:180836.432 [ERROR] In ja_agent_end() Agent does not to run as 'root', Server IP 192.168.57.150
8991:20200902:180837.434 [INFO] In ja_job_object_list_executive() jobid: 166, status: END
8991:20200902:180837.435 [INFO] In ja_agent_close() jobid: 166, status: 2
8991:20200902:180837.454 [INFO] In ja_job_object_list_executive() jobid: 166, status: CLOSE
===============================================================================================================


$B"#%8%g%V$N%F%9%H<B9T!J<B9T%f!<%6!'(Jjobscheduler $B$N;XDj$"$j!K;~$N%m%0(J
===============================================================================================================
8992:20200902:181004.475 [INFO] In ja_agent_begin() jobid: 170, method: 1
8992:20200902:181004.475 [WARN] In ja_jobdb_get_status() can not find jobid: 170
8992:20200902:181004.475 [INFO] In ja_jobdb_insert() jobid: 170 is created
8992:20200902:181004.477 [INFO] jobid: 170, method: 1 is begin
8991:20200902:181004.522 [INFO] In ja_job_object_list_executive () jobid: 170, type: command, status: BEGIN
8991:20200902:181004.522 [INFO] jobid: 170, status: 0
8991:20200902:181008.528 [WARN] The process can not be started , jobid: 170 the message:Agent does not to run as 'root'
8991:20200902:181008.528 [ERROR] In ja_jobfile_chkend() process 9047 isn't existed, jobid: 170
8991:20200902:181008.529 [ERROR] In ja_agent_end() Agent does not to run as 'root', Server IP 192.168.57.150
8991:20200902:181009.532 [INFO] In ja_job_object_list_executive() jobid: 170, status: END
8991:20200902:181009.532 [INFO] In ja_agent_close() jobid: 170, status: 2
8991:20200902:181009.551 [INFO] In ja_job_object_list_executive() jobid: 170, status: CLOSE
===============================================================================================================

    (1-1/1)