diff --git a/gorgone/config/gorgoned-central-ssh.yml b/gorgone/config/gorgoned-central-ssh.yml index 144c3f47562..47409e07c25 100644 --- a/gorgone/config/gorgoned-central-ssh.yml +++ b/gorgone/config/gorgoned-central-ssh.yml @@ -43,7 +43,7 @@ configuration: - ^/usr/bin/php -q /usr/share/centreon/cron/centreon-helios\.php >> /var/log/centreon-helios\.log 2>&1\s*$ - ^centreon - ^mkdir - - ^/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host + - ^/usr/share/centreon/(www/modules/centreon-autodiscovery-server/script|bin)/run_save_discovered_host - ^/usr/share/centreon/bin/centreon -u \"centreon-gorgone\" -p \S+ -w -o CentreonWorker -a processQueue$ - name: proxy diff --git a/gorgone/config/gorgoned-central-zmq.yml b/gorgone/config/gorgoned-central-zmq.yml index a7a0c1d12e0..5a62b56b218 100644 --- a/gorgone/config/gorgoned-central-zmq.yml +++ b/gorgone/config/gorgoned-central-zmq.yml @@ -67,7 +67,7 @@ configuration: - ^/usr/bin/php -q /usr/share/centreon/cron/centreon-helios\.php >> /var/log/centreon-helios\.log 2>&1\s*$ - ^centreon - ^mkdir - - ^/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host + - ^/usr/share/centreon/(www/modules/centreon-autodiscovery-server/script|bin)/run_save_discovered_host - ^/usr/share/centreon/bin/centreon -u \"centreon-gorgone\" -p \S+ -w -o CentreonWorker -a processQueue$ - name: proxy diff --git a/gorgone/config/gorgoned-poller.yml b/gorgone/config/gorgoned-poller.yml index 735e864311d..1a68772230d 100644 --- a/gorgone/config/gorgoned-poller.yml +++ b/gorgone/config/gorgoned-poller.yml @@ -25,7 +25,7 @@ configuration: - ^/usr/bin/php -q /usr/share/centreon/cron/centreon-helios\.php >> /var/log/centreon-helios\.log 2>&1\s*$ - ^centreon - ^mkdir - - ^/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host + - ^/usr/share/centreon/(www/modules/centreon-autodiscovery-server/script|bin)/run_save_discovered_host - ^/usr/share/centreon/bin/centreon -u \"centreon-gorgone\" -p \S+ -w -o CentreonWorker -a processQueue$ - name: engine diff --git a/gorgone/config/gorgoned-remote-ssh.yml b/gorgone/config/gorgoned-remote-ssh.yml index fea645f45af..bbf31ac3594 100644 --- a/gorgone/config/gorgoned-remote-ssh.yml +++ b/gorgone/config/gorgoned-remote-ssh.yml @@ -30,7 +30,7 @@ configuration: - ^/usr/bin/php -q /usr/share/centreon/cron/centreon-helios\.php >> /var/log/centreon-helios\.log 2>&1\s*$ - ^centreon - ^mkdir - - ^/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host + - ^/usr/share/centreon/(www/modules/centreon-autodiscovery-server/script|bin)/run_save_discovered_host - ^/usr/share/centreon/bin/centreon -u \"centreon-gorgone\" -p \S+ -w -o CentreonWorker -a processQueue$ - name: proxy diff --git a/gorgone/config/gorgoned-remote-zmq.yml b/gorgone/config/gorgoned-remote-zmq.yml index 2eb9872d8f0..b9b00d9e2eb 100644 --- a/gorgone/config/gorgoned-remote-zmq.yml +++ b/gorgone/config/gorgoned-remote-zmq.yml @@ -35,7 +35,7 @@ configuration: - ^/usr/bin/php -q /usr/share/centreon/cron/centreon-helios\.php >> /var/log/centreon-helios\.log 2>&1\s*$ - ^centreon - ^mkdir - - ^/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host + - ^/usr/share/centreon/(www/modules/centreon-autodiscovery-server/script|bin)/run_save_discovered_host - ^/usr/share/centreon/bin/centreon -u \"centreon-gorgone\" -p \S+ -w -o CentreonWorker -a processQueue$ - name: proxy diff --git a/gorgone/contrib/gorgone_config_init.pl b/gorgone/contrib/gorgone_config_init.pl index b5702888331..94ddb133ad6 100644 --- a/gorgone/contrib/gorgone_config_init.pl +++ b/gorgone/contrib/gorgone_config_init.pl @@ -133,7 +133,7 @@ sub write_gorgone_config { - ^/usr/bin/php -q /usr/share/centreon/cron/centreon-helios\.php >> /var/log/centreon-helios\.log 2>&1\s*$ - ^centreon - ^mkdir - - ^/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host + - ^/usr/share/centreon/(www/modules/centreon-autodiscovery-server/script|bin)/run_save_discovered_host - ^/usr/share/centreon/bin/centreon -u \"centreon-gorgone\" -p \S+ -w -o CentreonWorker -a processQueue$ - name: proxy diff --git a/gorgone/docs/api/gorgone-openapi.yaml b/gorgone/docs/api/gorgone-openapi.yaml index a7e6a203ce5..7b5a5222002 100644 --- a/gorgone/docs/api/gorgone-openapi.yaml +++ b/gorgone/docs/api/gorgone-openapi.yaml @@ -1035,7 +1035,7 @@ components: command_line: type: string description: "Command line to execute" - example: "/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host --job-id=14" + example: "/usr/share/centreon/bin/run_save_discovered_host --job-id=14" required: - job_id - target diff --git a/gorgone/docs/api/index.html b/gorgone/docs/api/index.html index e2f378ac27d..9bc604ca4fa 100644 --- a/gorgone/docs/api/index.html +++ b/gorgone/docs/api/index.html @@ -477,7 +477,7 @@
Forbidden
Local Gorgone instance
Remote Gorgone instance
-{- "job_id": 14,
- "target": 2,
- "command_line": "perl /usr/lib/centreon/plugins/centreon_generic_snmp.pl --plugin=os::linux::local::plugin --mode=discovery-snmp --subnet='10.1.2.3/24' --snmp-port='161' --snmp-version='2c' --snmp-community='public'",
- "timeout": 300,
- "execution": {
- "mode": 0,
- "parameters": {
- "cron_definition": "*/10 * * * *"
}
}, - "post_execution": {
- "commands": [
- {
- "action": "COMMAND",
- "command_line": "/usr/share/centreon/www/modules/centreon-autodiscovery-server/script/run_save_discovered_host --job-id=14"
}
]
}
}
{- "token": "1d48a26a0fc37c1d8658222378044007d9c12311ba49b214de633739be05353415eee946f41b43babb6cb2a083a45c0d6359f361874af39a45b07542de8e2165"
}
{- "job_id": 14,
- "target": 2,
- "command_line": "perl /usr/lib/centreon/plugins/centreon_generic_snmp.pl --plugin=os::linux::local::plugin --mode=discovery-snmp --subnet='10.1.2.3/24' --snmp-port='161' --snmp-version='2c' --snmp-community='public'",
- "timeout": 300,
- "execution": {
- "mode": 0,
- "parameters": {
- "cron_definition": "*/10 * * * *"
}
}, - "post_execution": {
- "commands": [
- {
- "action": "COMMAND",
- "command_line": "/usr/share/centreon/bin/run_save_discovered_host --job-id=14"
}
]
}
}
{- "token": "1d48a26a0fc37c1d8658222378044007d9c12311ba49b214de633739be05353415eee946f41b43babb6cb2a083a45c0d6359f361874af39a45b07542de8e2165"
}
Launch a host discovery job identified by id (even if in cron mode).
job_id required | integer Example: 2 ID of the job |
OK
Unauthorized
@@ -493,7 +493,7 @@Remote Gorgone instance
{- "token": "1d48a26a0fc37c1d8658222378044007d9c12311ba49b214de633739be05353415eee946f41b43babb6cb2a083a45c0d6359f361874af39a45b07542de8e2165"
}