Skip to main content

How zabbix to collect commvault's alert, and one by one client?


Forum|alt.badge.img+3

Backgroup:

Commvault is nice backup platform, and it is helpfull to us who are IT admins.

IT team charges the backup operation daily, and include over 400 clients; usually, the backup faild or other alert are gerented everyday, and only autherization user is able to login commvault software to check and fixe the alerts, but it not kindly way to share or push client’s owner to move on.

Originally, IT team want to use Zabbix collect the alert from Commvault, and now the way is successful.

 

Forum|alt.badge.img+3

Commvault is able to send alert by SNMP V3 to other platform, and create alert 

Create new Alert rules, and send notification by SNMP;

attaction: “client name” is used to collect owne alert from alert pools, and “Threshold and Notification Criteria Selection” is alert information head to be used for create “Problems” in Zabbix.

Summary alert rule as below:

 


Forum|alt.badge.img+3
  • Zabbix install SNMP

yum -y install net-snmp net-snmp-agent-libs net-snmp-devel net-snmp-libs net-snmp-perl net-snmp-utils snmptt

yum -y install perl-Sys-Syslog

 


Forum|alt.badge.img+3
  • Configrate snmptraped in zabbix plantform

vim /etc/snmp/snmptrapd.conf

screenshot information should match with Commvault SNMP settings

 


Forum|alt.badge.img+3
  • change snmptt.ini

net_snmp_perl_enable=1

date_time_format = %Y/%m/%d %H:%M:%S


Forum|alt.badge.img+3
  • Add parsing rules in snmptt.conf

    EVENT general .iso.org.dod.internet.private.enterprises.14604.2.2.0.1003 "Commvault" Normal
    FORMAT ZBXTRAP $aA Host:$5 Hex-STRING:$6
    SDESC
    Commvault backup job Alert
    EDESC


Forum|alt.badge.img+3
  • change zabbix_server.conf to readsnmptt.log

 

 

StartSNMPTrapper=1

SNMPTrapperFile=/var/log/snmptt/snmptt.log


Forum|alt.badge.img+3
  • reboot service

systemctl restart snmptrapd

systemctl enable snmptrapd

systemctl restart snmptt

systemctl enable snmptt


Forum|alt.badge.img+3
  • Add new template

 

 


Forum|alt.badge.img+3
  • Add Commvault alert client
  • SNMP IP address must be commvault SNMP sent

 

  • Configration the alert Preprocessing
  • Change String

JavaScript as below:

var word = 'Hex-STRING:';
var index = value.indexOf(word) + word.length;
if (index !== -1) {
    value=value.substring(index).trim(); 
    value=value.replace(/\s+/g, '');
    var isHex = /^[0-9a-fA-F]+$/g.test(value);
    if (isHex) {
    var hexPairs = value.match(/.{1,2}/g);
    var decimalArray = hexPairs.map(function(pair) {
        return parseInt(pair, 16);
    });
    var uint8Array = new Uint8Array(decimalArray);
    var decoder = new TextDecoder('utf-8');
    return value = decoder.decode(uint8Array);
    } else {
    return value;
    }
}

=======================================

The Commvault Client is able to collect all alerts from commvault SNMP.


Forum|alt.badge.img+3
  • add client to collect owner alerts
  • {$CV_HOSTNAME}: the value come from commvault client’s “name”

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings