Comprehensive data protection for all workloads
Post Reply
samuk
Expert
Posts: 127
Liked: never
Joined: Mar 18, 2009 2:15 pm
Full Name: Sam
Contact:

Veam Backup & SNMP

Post by samuk »

Hi,

I am trying to get alerts via SNMP into our 3rd party monitoring solution.

I have create a txt file to be used as the mib from here: http://www.veeam.com/forums/viewtopic.php?f=2&t=2495

*I have configured the SNMP settings within Veeam to

Receiver: IP of the machine that i am going to use a mib browser on
Community String: Public
Port 162

I am able to SNMP walk from the machine to this server, but when i try to walk using the mib browser to the ip of the veeam server i get:

(noSuchName) There is no such variable name in this MIB. (2)


Anyone got any idea's?
Gostev
Chief Product Officer
Posts: 31806
Liked: 7300 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Veam Backup & SNMP

Post by Gostev »

That MIB file is no longer correct. I have deleted the topic.
Vitaly, could you please post the up-to-date MIB here.
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veam Backup & SNMP

Post by Vitaliy S. »

Here is the updated MIB file to use for monitoring SNMP traps:

Code: Select all

VEEAM-MIB DEFINITIONS ::= BEGIN

IMPORTS
   enterprises
      FROM RFC1155-SMI
   TRAP-TYPE 
      FROM RFC-1215
   OBJECT-TYPE 
      FROM RFC-1212
   DisplayString 
      FROM RFC1213-MIB; 

veeam         OBJECT IDENTIFIER ::= { enterprises 31023 }
products      OBJECT IDENTIFIER ::= { veeam 1 }
backup        OBJECT IDENTIFIER ::= { products 1 }
traps         OBJECT IDENTIFIER ::= { backup 1 }

onBackupJobCompleted TRAP-TYPE 
   ENTERPRISE traps 
   VARIABLES { backupJobId, backupJobName, backupJobResult, backupJobComment }
   DESCRIPTION 
      "This trap is sent on backup/replica job completed." 
   ::= 1 

onVmBackupCompleted TRAP-TYPE 
   ENTERPRISE traps 
   VARIABLES { backupJobName, vmName, sourceHostName, vmBackupResult, vmBackupComment }
   DESCRIPTION 
      "This trap is sent on vm backup/replica completed." 
   ::= 2 

backupJobId OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255))
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Backup job id."
   ::= { backup 101 }

backupJobName OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255)) 
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Backup job name."
   ::= { backup 102 }
   
backupJobResult OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255)) 
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Backup job result."
   ::= { backup 103 }
   
backupJobComment OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255)) 
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Backup job comment."
   ::= { backup 104 }

vmName OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255)) 
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Vm name."
   ::= { backup 105 }

sourceHostName OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255)) 
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Source host name."
   ::= { backup 106 }

vmBackupResult OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255)) 
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Vm backup result."
   ::= { backup 107 }

vmBackupComment OBJECT-TYPE
   SYNTAX     DisplayString (SIZE (0..255)) 
   ACCESS     read-only 
   STATUS     mandatory
   DESCRIPTION
      "Vm backup comment."
   ::= { backup 108 }

END
samuk
Expert
Posts: 127
Liked: never
Joined: Mar 18, 2009 2:15 pm
Full Name: Sam
Contact:

Re: Veam Backup & SNMP

Post by samuk »

thanks guys..

I am still getting the same message.. any idea what i am doing wrong?

Is that the correct port? 162 and have i setup veeam ok in SNMP settings. see 1st post.
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veam Backup & SNMP

Post by Vitaliy S. »

Sam,

Yes, that's the default port for SNMP. Could you tell me what is the name of the failed object? As far as I know those kinds of errors should look like this:

Code: Select all

   Error in packet
   Reason: (noSuchName) There is no such variable name in this MIB.
   This name doesn't exist: sysUpTime
It would be great if you could PM the entire error message.

Thanks!
samuk
Expert
Posts: 127
Liked: never
Joined: Mar 18, 2009 2:15 pm
Full Name: Sam
Contact:

Re: Veam Backup & SNMP

Post by samuk »

Is the file above still valid for version 5 of veeam backup?
Gostev
Chief Product Officer
Posts: 31806
Liked: 7300 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Veam Backup & SNMP

Post by Gostev »

I believe so, but keep in mind that the above is simply a copy of MIB file that you can find in the Veeam Backup installation folder! The file will correspond the actual Veeam Backup version you have installed. Thanks!
samuk
Expert
Posts: 127
Liked: never
Joined: Mar 18, 2009 2:15 pm
Full Name: Sam
Contact:

Re: Veam Backup & SNMP

Post by samuk »

Is there a list of SNMP Trap OID's available?

As i want to filter the snmp events captured?
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Veam Backup & SNMP

Post by Vitaliy S. »

Unfortunately, there are no OID samples available right now
samuk
Expert
Posts: 127
Liked: never
Joined: Mar 18, 2009 2:15 pm
Full Name: Sam
Contact:

Re: Veam Backup & SNMP

Post by samuk »

Will the OID value be comming soon?

Also does Veeam Backup write its results to any logs files etc..?
Gostev
Chief Product Officer
Posts: 31806
Liked: 7300 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Veam Backup & SNMP

Post by Gostev »

Disclaimer: I know nothing about SNMP and OID. But after quick Googling on what SNMP OID is, I understand that all the OID information is already available in the MIB file above. So, you can just copy what you need from there.

Sure, Veeam Backup does have log files of course (see Help | Support Information). Also, Veeam Backup writes vCenter Server events with backup job results, Windows Events Log events with the same information, and can optionally populate selected custom attribute of each VM with the job results.

And of course email and SNMP notifications are available as well.
Post Reply

Who is online

Users browsing this forum: No registered users and 275 guests