Skip to main content

Hello

since december update (i’m on 23.10) the centreon_vmware connector has changed to the new format with the json config file

now I’m having some issue with space usage on the pollers because of a log file for that vmware connector.

 

there is no log level settings or rotation on the file /var/log/centreon/centreon_vmware.log and this file is filling the disk space. (on a poller that file was consumming more than 6GB, I had to delete it)

 

is possible to add a rotate log config in a future update of the connector?

or is there a way to reduce verbosity (I see a lot of “info” log level with json verbosity in that log file)

Hi, there is actually a log level management that you can tune in /etc/{default,sysconfig}/centreon_vmware by setting --severity=error and then systemctl restart centreon_vmware.

Can you paste here a sample of the log messages that fill your log files?


hello

indeed there is that file in sysconfig, with “--severity=info”, I’ve changed it to error, kept a copy of the log file already 400MB and restarted, the file is not growing anymore.

 

in the log file there were these kind of messages, multiple per seconds sometimes (I’m monitoring quite lot of datastore and a few dozen hosts), this is a single line of log

p2025-01-16 10:56:10] 1info] vpshere 'XXXX' handler asking: {"connector_hostname":"localhost","connector_port":"5700","warning-write-latency":"","vsphere_password":null,"warning-status":"","filter":null,"sampling_period":null,"identity":"client-0b8f356a9f4e46438ff0c6503e9dXXX","container":"XXXX","list_counters":null,"critical-status":"","filter_datastore":"","unknown-write-latency":null,"display_ok_counters":null,"unknown_connector_status":null,"vsphere_username":null,"command":"datastorehost","warning_connector_status":null,"unknown-status":"$values->{status} !~ /^connected$/i","scope_datacenter":null,"esx_hostname":"xxxxxxxxxxxxxxx","datastore_name":"XXXXX-1","unknown-read-latency":null,"scope_cluster":null,"critical_connector_status":null,"time_shift":0,"filter_counters_block":null,"critical-read-latency":"","vsphere_address":null,"filter_counters":null,"warning-read-latency":"","critical-write-latency":"","timeout":null,"case_insensitive":null}

 

 


Reply