Hello community! We're looking for a contributor to help us to translate this
content in french. If it's you, let us know and ping us on slack
or propose a PR on the documentation github.
Log into Centreon and add a new Host through Configuration > Hosts.
Fill the "Name", "Alias" & "IP Address / DNS" fields according to your IBM AS400 settings
Select the operatingsystems-as400-connector-custom template to apply to the Host
Once the template applied, some Macros marked as 'Mandatory' hereafter have to be configured.
Mandatory
Name
Description
AS400PASSWORD
AS400USERNAME
CENTREONCONNECOTRHOST
(Default: 'localhost')
CENTREONCONNECTORPORT
(Default: '8091')
CENTREONCONNECTORPROTO
(Default: 'http')
EXTRAOPTIONS
(Default: 'Any extra option you may want to add to every command_line (eg. a --verbose flag)')
How to check in the CLI that the configuration is OK and what are the main options for ?
Once the plugin is installed, log into your Centreon Poller CLI using the
centreon-engine user account and test the Plugin by running the following
command:
OK: Job queues total: 2 - All job queues are ok |'jobqueues.total.count'=2;;;0;'QGPL~QBASE#jobqueue.jobs.active.count'=0;;;0;'QGPL~QBASE#jobqueue.jobs.scheduled.count'=0;;;0;'QGPL~QBASE#jobqueue.jobs.held.count'=0;;;0;'QGPL~QPGMR#jobqueue.jobs.active.count'=0;;;0;'QGPL~QPGMR#jobqueue.jobs.scheduled.count'=0;;;0;'QGPL~QPGMR#jobqueue.jobs.held.count'=0;;;0; Job queue 'QBASE'[library: QGPL] status: RELEASED, active jobs: 0, scheduled jobs: 0, held jobs: 0 Job queue 'QPGMR'[library: QGPL] status: RELEASED, active jobs: 0, scheduled jobs: 0, held jobs: 0
This command checks two different JOBQ (--jobq="QGPL:QBASE" --jobq="QGPL:QPGMR") on a
given AS400 system (--as400-hostname=10.1.2.3) using some credentials (--as400-username='myuser' --as400-password='mypassword').
All available options for a given mode can be displayed by adding the
--help parameter to the command: