Skip to main content
Question

UNKNOWN: Illegal division by zero at /usr/lib/centreon/plugins//centreon_versa_snmp.pl line 9878.

  • September 18, 2024
  • 2 replies
  • 120 views

Forum|alt.badge.img

Hello,

I get this error “ Illegal division by zero at line 9878” when running this plugin I just downloaded.
centreon_versa_snmp.pl

 

Has anyone used this plugin before ? Is there a script issue ?

 

Thanks

2 replies

Forum|alt.badge.img+17
  • Centreon Lord Commander
  • September 18, 2024

hello

as it is, no one can help you with just that.

the plugin is a package with multiple scripts in it, so please provide more informations :

the exact command run by you check, you can get it in the detail panel in the resource view, just clic the  blue icon to copy it 

paste it here (you can hide your private information)

try running that same command in the ssh shell of the poller, use “su - centreon-engine” before running the command, and add “--verbose --debug” at the end of the command, paste the output

 

a developper or someone from centreon may ask for a snmpwalk of your device, for example : 

snmpwalk -v 2c -c yourcommunity yourIP -On .1.3.6.1.4.1.42359 > /tmp/versa.txt

(depending on your check command the OID can vary, but this is the root OID for versa devices)

 

just to add, there is a github for centreon plugins, if you don’t get any answer here, try submitting a bug issue Issues · centreon/centreon-plugins · GitHub

 


Forum|alt.badge.img+2

Merci Christophe pour ton message

 

Voici la commande :

/usr/lib/centreon/plugins//centreon_commvault_commserve_restapi.pl --plugin=apps::backup::commvault::commserve::restapi::plugin --mode=storage-pools --hostname='192.168.184.45' --api-username='*****' --api-password='*****' --port='***' --proto='***' --http-backend=curl --insecure --filter-name='' --warning-status='' --critical-status='%{status} !~ /online/i' --warning-usage='' --critical-usage='' --warning-usage-free='' --critical-usage-free='' --warning-usage-prct='' --critical-usage-prct='' --verbose

 

et forcement j’obtiens la meme chose lorsque je le lance en CLI ( logger en centreon-engine)

UNKNOWN: Illegal division by zero at /usr/lib/centreon/plugins//centreon_commvault_commserve_restapi.pl line 1547

 

j’avoue ne pas avoir le temp de débugger le script perl 

PS 

 

Merci si tu trouves une piste, (ce n'est pas urgent ni bloquant pour moi pour l’instant, mon projet supervision ne reprendra qu’en 2025)