Skip to main content

Hello,

 

I am pretty begginer in this area, but I would try to learn more. 

It monitors disk occupancy at 99% by giving Critical and Warning limits in percent. In contrast, I recently had to change from % to Byte.  After this change, the monitoring works properly, but the displayed chart no longer does. 

 

How it was set and look like:

/usr/lib/nagios/plugins/centreon-plugins/centreon_plugins.pl
--plugin=os::windows::snmp::plugin
--mode=storage
--hostname=10.10.10.10
--snmp-version='2c'
--snmp-community='Test'
--storage='D:'
--name
--display-transform-src='^(..).*'
--display-transform-dst='$1'
--warning-usage='85'
--critical-usage='90'
--explode-perfdata-max='used,size'
--filter-perfdata='size|used|free'
--regexp

Graphics chart looks like this

 

After changing to ranges in bytes (graphics is just example - diffirent disk):

/usr/lib/nagios/plugins/centreon-plugins/centreon_plugins.pl
--plugin=os::windows::snmp::plugin
--mode=storage
--hostname=10.10.10.10
--snmp-version='2c'
--snmp-community='Test'
--storage='D:'
--name
--display-transform-src='^(..).*'
--display-transform-dst='$1'
--warning-usage='100000000000:'
--critical-usage='50000000000:'
--explode-perfdata-max='used,size'
--filter-perfdata='size|used|free'
--units='B'
--free
--regexp

Currently, it does not show used and size on the chart. 

Hi,

It is possible that this is very simple, if not the solution then I will ask for a hint where the error may be lurking. 


Hello,

What are the metrics returned by your new command?


Hello,

 

Sorry for late answer: 

Returned: 

'free'=153791295488B;50000000000:;25000000000:;0;2199020105728

Before change it was like this (it is not the same volume but from other one):

 

'used'=42913751040B;0:63142656204;0:66856930099;0;74285477888 'size'=74285477888B;;;;

 


Reply