Skip to main content
Solved

Centreon Migration pl scripts issues

  • March 29, 2024
  • 4 replies
  • 63 views

Forum|alt.badge.img+1

Hello everyone,

I am currently migrating a Centreon 21.04.20 instance to the latest version of Centreon. When I restore my old services, the command outputs are altered.
 

For example, on SQL Database:
OLD CENTREON: 

NEW CENTREON:

Just returning “OK”

 

Another example for my forti services:

OLD CENTREON

Returning “ok” plus informations

 

NEW CENTREON:

Returning same information but “UNKNOWN”.

 

I tried to check scritps, i even tried to copy old script on new centreon but it isnt working.

 

Any help to find what could going wrong would be appreciated.

Thank you !

Best answer by omercier

Hi @BatInfo,

  • For the first issue (mssql) can you try with the --debug option?

Can you also compare /etc/freetds/freetds.conf on both servers?

  • For the second one, please use the string-value mode. The numeric-value mode is not supposed to work with such respsonse.

4 replies

omercier
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • Answer
  • March 29, 2024

Hi @BatInfo,

  • For the first issue (mssql) can you try with the --debug option?

Can you also compare /etc/freetds/freetds.conf on both servers?

  • For the second one, please use the string-value mode. The numeric-value mode is not supposed to work with such respsonse.

Forum|alt.badge.img+1
  • Author
  • Steward *
  • March 29, 2024

Hello @omercier

Thanks for your answer. 
 

The --debug option fixed my mssql issue. 

I checked freetds.conf and i adjusted this section where i added 2 servers (copy from old centreon)(the supervised server from my other screens is not mentionned in freetds.conf)

 

I dont know if im using --string-value correctly, but here is the output:

Not displaying the serial number 

Thanks, 


Forum|alt.badge.img+1
  • Author
  • Steward *
  • March 29, 2024

Ok it’s working much better with --debug option for serial forti number also:

Thanks a lot @omercier !


omercier
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • March 29, 2024

If you add --format-ok='%{details_ok}'  you’ll see the retrieved value.

You’ll find more information here or by adding the --help option.