centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

new(plugin): add infor m3 monitor api plugin

Open cgagnaire opened this issue 1 year ago • 1 comments

Adds a new plugin to monitor Infor M3 throught the /monitor endpoint.

centreon_plugins.pl --plugin=apps::infor::m3::monitor::api::plugin --mode=services --hostname='toto.domain' --port='12345' --proto='http'  --filter-name='.*' --critical-status='%{status} !~ /up/' --verbose
OK: All services are ok
Service 'BCIDispatcher' status is 'up' [description: M3 Foundation LWS connections dispatcher]
Service 'MIDispatcher' status is 'up' [description: M3 Foundation MI jobs dispatcher]
Service 'Transaction Server' status is 'up' [description: M3 Foundation locks and transactions server]
centreon_plugins.pl --plugin=apps::infor::m3::monitor::api::plugin --mode=jvms --hostname='toto.domain' --port='12345' --proto='http' --filter-id='.*' --filter-type='^((?!M3Coordinator).)*$' --filter-system='.*' --critical-jvm-status='%{status} =~ /locked/' --warning-jvm-cpu-usage='75' --filter-counters='^((?!m3coordinator).)*$' --filter-perfdata='jvms' --verbose
OK: JVMs statuses normal: 46, offline: 2, started: 0, locked: 0 - JVMs types autojobs: 6, interactivejobs: 5, batchjobs: 18, mijobs: 19 - All JVMs are ok | 'jvms.status.normal.count'=46;;;0;48 'jvms.status.offline.count'=2;;;0;48 'jvms.status.started.count'=0;;;0;48 'jvms.status.locked.count'=0;;;0;48 'jvms.type.autojobs.count'=6;;;0;48 'jvms.type.interactivejobs.count'=5;;;0;48 'jvms.type.batchjobs.count'=18;;;0;48 'jvms.type.mijobs.count'=19;;;0;48
JVM '10.120.8.22:10611-228872' status is 'normal' [type: mijobs, system: SYS1], CPU usage: 0 %, Jobs: 0, Threads: 88, Heap Size: 31.21 MB, Uptime: 5h 58m 1s
JVM '10.120.8.22:14631-228633' status is 'normal' [type: mijobs, system: SYS2], CPU usage: 0 %, Jobs: 0, Threads: 88, Heap Size: 28.24 MB, Uptime: 6h 26m 35s
JVM '10.120.8.22:14990-228423' status is 'normal' [type: batchjobs, system: SYS2], CPU usage: 0 %, Jobs: 0, Threads: 89, Heap Size: 28.81 MB, Uptime: 13h 43m 1s
...
centreon_plugins.pl --plugin=apps::infor::m3::monitor::api::plugin --mode=autojobs --hostname='toto.domain' --port='12345' --proto='http' --filter-name='.*' --filter-jvm-id='.*' --warning-autojob-cpu-usage='75' --filter-perfdata=jobs
OK: Auto jobs : 76 - All auto jobs are ok | 'jobs.auto.count'=76;;;0;

cgagnaire avatar Mar 13 '24 10:03 cgagnaire

Hi @cgagnaire,

Thanks for the contribution :100:

Your contribution will be discussed during the next weekly sessions of refinement with the team.

Thanks :+1:

Regards,

omercier avatar Mar 15 '24 12:03 omercier