Bonjour,
Nous avons actuellement une sonde du genre
/usr/lib/centreon/plugins/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=expected-content --hostname=hostname --proto='https' --port='443' --urlpath='/api/' --expected-string='"status":"pass"' --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE"
OK: HTTP test(s) | 'size'=29B;;;0; 'time'=0.538s;;;0;
/usr/lib/centreon/plugins/centreon_protocol_http.pl \
--plugin=apps::protocols::http::plugin \
--mode=json-content \
--hostname=url \
--proto='https' --port='443' \
--urlpath='/api' \
--header='Accept: application/json' \
--lookup='$.status' \
--threshold-value='values' \
--warning-string='' \
--critical-string='^(?!pass$)' \
--ssl-opt='SSL_verify_mode => SSL_VERIFY_NONE'
OK: 1 element(s) found | 'count'=1;;;0; 'time'=0.599s;;;0;curl -s https://url
<?xml version="1.0" encoding="UTF-8"?>
<root><status>pass</status><version>0.10</version></root>
Nous aimerions utiliser le mode collection mais je me perd un peu dans HTTP Collections tutorial - How to monitor an API | Community
Merci,

