Question

Centreon Windows disk-global-snmp

  • 13 July 2023
  • 3 replies
  • 549 views

Badge +1

Hello the community 

 

I’m new in Centreon , we have installed the latest version 23.04 but we are having issue with it . 

We want Centreon to monitor disk space on one Windows server . This Server has mutliple disks attached (it’s a Guest VM on Nutanix) 

We use (but have tested all the SNMP  Disk Template for Windows) OS-WINDOWS-DISKS_GLOBAL-SNMP  to get all the disk . 

Problem is that it can find 3 disks of the 4 existing . The one who is skipped is the bigger one 15TB. 

I’ve tried to Clear the cache , by removing the file in var/lib/centreon/centplugins , but no effect. 

What is wird is that when you edit the Cache file in /Var/lib/centreon/centplugins  it shows the skiiped disk  

Here is the content of the cache file of the server , the concerned disk is E:\

{"hrstoragetype_7":".1.3.6.1.2.1.25.2.1.2","hrstoragedescr_4":"F:\\ Label:HOMES  Serial Number 9a6f5e4a","hrstoragetype_6":".1.3.6.1.2.1.25.2.1.3","hrstoragedescr_3":"E:\\ Label: Serial Number 16704a42","hrstoragedescr_6":"Virtual Memory","hrstoragedescr_1":"C:\\ Label:  Serial Number 88a67195","hrstoragetype_3":".1.3.6.1.2.1.25.2.1.4","oid_display":"hrstoragedescr","last_timestamp":1689238531,"oid_filter":"hrstoragedescr","hrstoragedescr_5":"G:\\ Label:New Volume  Serial Number 727a6a00","hrstoragetype_2":".1.3.6.1.2.1.25.2.1.7","hrstoragedescr_7":"Physical Memory","hrstoragetype_4":".1.3.6.1.2.1.25.2.1.4","relation_storageindex_fsstorageindex":{},"hrstoragetype_1":".1.3.6.1.2.1.25.2.1.4","all_ids":["1","2","3","4","5","6","7"],"hrstoragedescr_2":"D:\\","hrstoragetype_5":".1.3.6.1.2.1.25.2.1.4"}[root@localhost centplugins]#

 

If someone has any solutions or advise , it is warmly welcome . 

Best Regard

Mch


3 replies

Badge +1

maybe not what you want but sometimes get same error snmp/windows. we used to make a custom service by disk c: d:

with theses options:

DISKNAME  '^(E)'

EXTRAOPTIONS --regexp --filter-perfdata='storage.space|used|free'

Badge +2

Hello,

 

I’m might be wrong, but SNMP we’ll not be able to help you to monitor a disk that big.

 

You should use NSClient : https://docs.centreon.com/pp/integrations/plugin-packs/getting-started/how-to-guides/centreon-nsclient-tutorial/

 

And with a command like that :

 

/usr/lib/centreon/plugins//centreon_nsclient_restapi.pl   --plugin=apps::nsclient::restapi::plugin   --mode=query --hostname='X.X.X.X'   --port='XXX'   --proto='https'   --legacy-password='XXX'   --command=check_drivesize --arg="drive=X" --arg="warning=used > 80%" --arg="critical=used > 90%"

 

You’ll be able to monitor your drive.

Badge +1

Hi all, 

Thanks for your input , I will try both suggestions 

Best regards 

 

 

Reply