Hi SteveB,
If you using template provides by PP, you should already have a command like this:
… --storage='D:' --name --regexp --display-transform-src='^(..).*' --display-transform-dst='$1' --warning-usage='80' --critical-usage='90' --verbose --filter-perfdata='storage.space|used|free
Can you verify this or send us your anonymized command so we can check the syntax, please?
Also you can also test with --mode=list-storages
to get the list of drives on your server (with name and id)
Kind regards
Hello,
The command with “--mode=list-storage” returns :
List storage:
'C:\ Label: Serial Number 883b0a96' bsize = 298859884544B] 4id = 1]
'D:\ Label:DATA Serial Number f0681fb7' 6size = -16363290640384B] 4id = 2]
so I test the command :
/usr/lib/centreon/plugins/centreon_windows_snmp.pl --plugin=os::windows::snmp::plugin --mode=storage --hostname=10.X.X.X --snmp-version='2c' --snmp-community='public' --storage=2 --display-transform-src='^(..).*' --display-transform-dst='$1' --warning-usage='80' --critical-usage='90' --filter-perfdata=storage.space
With this command, i have ther error : UNKNOWN: No storage found. Can be: filters, cache file.
Regards
Hi, this command works on my platform.
It’s probably the cache file who make problem.
the command must be launch with “centreon-engine” user like as centengine process.
Can you try to reload it with adding this parameter in command line “--reload-cache-time=0”? normally it’s automatically reload every 3 hours (180 minutes).
If not works, verify rights of cache files in “/var/lib/centreon/centplugins/”. All files must have centreon-engine owner like this:
-rw-rw-r-- 1 centreon-engine centreon-engine 1122 Apr 5 16:47 cache_snmpstandard_svwindopar.centreon.training_161_storage
Regards