Centreon: Update plugins - Problem with the command OS-Linux-SNMP-Memory

Created on 26 Apr 2019  路  3Comments  路  Source: centreon/centreon

BUG REPORT INFORMATION

Prerequisites

Versions

centreon-common-19.04.0-3.el7.centos.noarch
centreon-trap-19.04.0-3.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Central-20190412-141630.el7.centos.noarch
centreon-pp-manager-19.04.0-3.el7.centos.noarch
centreon-widget-grid-map-19.04.0-5.el7.centos.noarch
centreon-broker-influxdb-19.04.0-2.el7.centos.x86_64
centreon-broker-19.04.0-2.el7.centos.x86_64
centreon-broker-cbmod-19.04.0-2.el7.centos.x86_64
centreon-license-manager-common-19.04.0-1.el7.centos.noarch
centreon-plugin-Applications-Protocol-Dns-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Monitoring-Centreon-Database-20190412-141630.el7.centos.noarch
centreon-19.04.0-3.el7.centos.noarch
centreon-widget-hostgroup-monitoring-19.04.0-5.el7.centos.noarch
centreon-engine-daemon-19.04.0-2.el7.centos.x86_64
centreon-connector-perl-19.04.0-2.el7.centos.x86_64
centreon-plugin-Applications-Protocol-Ftp-20190412-141630.el7.centos.noarch
centreon-web-19.04.0-3.el7.centos.noarch
centreon-widget-httploader-19.04.0-5.el7.centos.noarch
centreon-widget-servicegroup-monitoring-19.04.0-7.el7.centos.noarch
centreon-broker-core-19.04.0-2.el7.centos.x86_64
centreon-engine-extcommands-19.04.0-2.el7.centos.x86_64
centreon-connector-ssh-19.04.0-2.el7.centos.x86_64
centreon-plugin-Applications-Monitoring-Centreon-Map4-Jmx-20190412-141630.el7.centos.noarch
centreon-plugin-Hardware-Printers-Generic-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Operatingsystems-Linux-Snmp-20190412-141630.el7.centos.noarch
centreon-poller-centreon-engine-19.04.0-3.el7.centos.noarch
centreon-auto-discovery-server-19.04.0-4.el7.centos.x86_64
centreon-widget-tactical-overview-19.04.0-7.el7.centos.noarch
centreon-widget-global-health-19.04.0-5.el7.centos.noarch
centreon-widget-engine-status-19.04.0-5.el7.centos.noarch
centreon-broker-storage-19.04.0-2.el7.centos.x86_64
centreon-broker-cbd-19.04.0-2.el7.centos.x86_64
centreon-plugin-Applications-Monitoring-Centreon-Poller-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Databases-Mysql-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Protocol-Ldap-20190412-141630.el7.centos.noarch
centreon-widget-live-top10-cpu-usage-19.04.0-5.el7.centos.noarch
centreon-widget-live-top10-memory-usage-19.04.0-5.el7.centos.noarch
centreon-release-19.04-1.el7.centos.noarch
centreon-perl-libs-19.04.0-3.el7.centos.noarch
centreon-connector-19.04.0-2.el7.centos.x86_64
centreon-database-19.04.0-3.el7.centos.noarch
centreon-license-manager-19.04.0-1.el7.centos.noarch
centreon-widget-service-monitoring-19.04.0-5.el7.centos.noarch
centreon-widget-host-monitoring-19.04.0-5.el7.centos.noarch
centreon-clib-19.04.0-1.el7.centos.x86_64
centreon-engine-19.04.0-2.el7.centos.x86_64
centreon-plugin-Operatingsystems-Windows-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Network-Cisco-Standard-Snmp-20190412-141630.el7.centos.noarch
centreon-plugin-Applications-Protocol-Http-20190412-141630.el7.centos.noarch
centreon-base-config-centreon-engine-19.04.0-3.el7.centos.noarch
centreon-widget-graph-monitoring-19.04.0-5.el7.centos.noarch

Operating System
CentOS Linux release 7.6.1810 (Core)

Steps to Reproduce

With the last update of the plugins. The command "OS-Linux-SNMP-Memory" doesn't work.

If I look the help of the new plugins (/usr/lib/centreon/plugins/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=memory --help). I see that --warning and --critical are replaced by --warning-* and --critical-*.

If I use --warning-usage=80 its works.

But the problem is that the command in the interface of centreon is'nt modified.

Describe the received result

[centreon@centreon ~]$ /usr/lib/centreon/plugins/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=memory --hostname=192.168.2.15 --snmp-version='2c' --snmp-community='public'  --warning='80' --critical='90'
Unknown option: warning at /usr/lib/centreon/plugins/centreon_linux_snmp.pl line 141.

Describe the expected result

If I use the --warning-usage --critical-usage options its works.

[centreon@centreon ~]$ /usr/lib/centreon/plugins/centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=memory --hostname=192.168.2.15 --snmp-version='2c' --snmp-community='public'  --warning-usage='80' --critical-usage='90'
translate_asn_type: unhandled asn type (120)
translate_asn_type: unhandled asn type (120)
translate_asn_type: unhandled asn type (120)
OK: Ram Total: 1.80 GB Used (-buffers/cache): 835.80 MB (45.46%), Buffer: 0.00 B, Cached: 631.71 MB, Shared: 24.65 MB | 'used'=876404736B;0:1542189875;0:1734963609;0;1927737344 'buffer'=0B;;;0; 'cached'=662396928B;;;0; 'shared'=25845760B;;;0;
kinquestion

Most helpful comment

Solved. Thank you.

All 3 comments

Hi @tiempososcuros

You should have an available update of the package Linux-SNMP within "Configuration > Plugin-packs".

Install it and then deploy your configuration to your poller(s) and that should do the tricks.

Solved. Thank you.

Solved. Thank you.

how did you do to solve your problem please

Was this page helpful?
0 / 5 - 0 ratings