Solved

Centron Check not working

  • 31 October 2023
  • 1 reply
  • 143 views

Userlevel 1
Badge +8

Hi,

i tested this chekc.

 

on the Shell is WORKING

 

[root@MONITORING]#

/usr/lib/centreon/plugins/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=json-content --hostname=rbitq.service-now.com  --proto='https' --urlpath='/api/now/table/cmdb_ci_win_server?sysparm_query=name=TESTVM&sysparm_limit=1' --basic --credentials --username='interface' --password='PassW0rd' --lookup='$..install_status' --critical-numeric='1:' --format-ok='CMDB' --format-warning='Error : %{values}' --format-critical='NO CMDB %{count}' --http-backend='curl'

output:
CRITICAL: NO CMDB 0 | 'count'=0;;1:;0; 'time'=0.329s;;;0;

 

is worki

ng,

 

in Centreon web i create the Command and i tested in shell

 

su - centreon.engine

 

[root@MONITORING]# # su - centreon-engine


Last login: Tue Oct 31 13:53:44 CET 2023 on pts/0
-bash-4.2$

 

/usr/lib/centreon/plugins/centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=json-content --hostname=rbitq.service-now.com  --proto='https' --urlpath='/api/now/table/cmdb_ci_win_server?sysparm_query=name=TESTVM&sysparm_limit=1' --basic --credentials --username='interface' --password='PassW0rd' --lookup='$..install_status' --critical-numeric='1:' --format-ok='CMDB' --format-warning='Error : %{values}' --format-critical='NO CMDB %{count}' --http-backend='curl'


UNKNOWN: curl perform error : SSL connect error

 

with --debug

== Info: NSS error -5961 (PR_CONNECT_RESET_ERROR)
== Info: TCP connection reset by peer

 

i tested with --insecure, the same

 

thanks

 

 

 

icon

Best answer by ahartung 31 October 2023, 14:16

View original

1 reply

Userlevel 1
Badge +8

i found the issue ;)

 

our proxy :)

Reply