Giter VIP home page Giter VIP logo

backuppc_monitor_zabbix's Introduction

Monitoring Backuppc with Zabbix

This is based on script found in thread https://www.zabbix.com/forum/showthread.php?t=17273

Tested with Zabbix 2.4 (http://www.zabbix.com/) and Backuppc v3 (http://backuppc.sourceforge.net/).

Install

  1. Add a line from 'sudo' file to your sudo config
  2. copy 'zabbix-backuppc.pl' and 'zabbix-discover-backuppc.pl' to '/usr/local/bin'
  3. make it executable with backuppc user
  4. You need to have 'EnableRemoteCommands=1' in Zabbix agent config
  5. Import 'backuppc_zbx_export_templates.xml' into Zabbix and configure it

The template contains

Backuppc

Information about the BackupPc itself.

Items

  • BackupPC - Average Backup Speed (Full)
  • BackupPC - Average Backup Speed (Incremental)
  • BackupPC - BackupPC Process
  • BackupPC - BackupPC_dump Process
  • BackupPC - BackupPC_link Process
  • BackupPC - BackupPC_nightly Process
  • BackupPC - Collect Data
  • BackupPC - Config Uptime
  • BackupPC - Full Backup Count
  • BackupPC - Full Backup Size
  • BackupPC - Hosts with full age more than 1 week
  • BackupPC - Hosts with No backups (2 Days)
  • BackupPC - Hosts with No backups (3 Days)
  • BackupPC - Hosts with No backups (4 Days)
  • BackupPC - Hosts with No backups (5 Days)
  • BackupPC - Incremental Backup Count
  • BackupPC - Incremental Backup Size
  • BackupPC - Jobs (Full Backup)
  • BackupPC - Jobs (Incremental Backup)
  • BackupPC - Jobs (Other Backup)
  • BackupPC - Memory Usage
  • BackupPC - Pool Directory Count
  • BackupPC - Pool Directory Count (Compressed)
  • BackupPC - Pool File Count
  • BackupPC - Pool File Count (Compressed)
  • BackupPC - Pool File Max Links
  • BackupPC - Pool File Max Links (Compressed)
  • BackupPC - Pool File Repeat
  • BackupPC - Pool File Repeat (Compressed)
  • BackupPC - Pool File Repeat Max
  • BackupPC - Pool File Repeat Max (Compressed)
  • BackupPC - Pool Size
  • BackupPC - Pool Size (Compressed)
  • BackupPC - Queue (Background)
  • BackupPC - Queue (Command)
  • BackupPC - Queue (User)
  • BackupPC - Uptime
  • BackupPC - Version

Triggers

  • BackupPC - Host without Backups (2 Days)
  • BackupPC - Host without Backups (3 Days)
  • BackupPC - Host without Backups (4 Days)
  • BackupPC - Host without Backups (5 Days)
  • BackupPC - Server not Running
  • BackupPC - {HOSTNAME} have hosts with full backup older than 1 week

Backuppc - backups

Discovery from individual backups

  • system.run["sudo -u backuppc /usr/local/bin/zabbix-discover-backuppc.pl"]

Items

  • {#BACKUPHOST} full backup age
  • {#BACKUPHOST} full backup BadFile
  • {#BACKUPHOST} full backup BadShare
  • {#BACKUPHOST} full backup duration
  • {#BACKUPHOST} full backup size
  • {#BACKUPHOST} full backup tar errors
  • {#BACKUPHOST} full backup xfer errors
  • {#BACKUPHOST} incremental backup age
  • {#BACKUPHOST} incremental backup BadFile
  • {#BACKUPHOST} incremental backup BadShare
  • {#BACKUPHOST} incremental backup duration
  • {#BACKUPHOST} incremental backup size
  • {#BACKUPHOST} incremental backup tar errors
  • {#BACKUPHOST} incremental backup xfer errors

Triggers

  • {#BACKUPHOST} has bad file in full backup
  • {#BACKUPHOST} has bad file in incremental backup
  • {#BACKUPHOST} has bad share in full backup
  • {#BACKUPHOST} has bad share in incremental backup
  • {#BACKUPHOST} has error in full backup
  • {#BACKUPHOST} has error in incremental backup
  • {#BACKUPHOST} has tar error in full backup
  • {#BACKUPHOST} has tar error in incremental backup

backuppc_monitor_zabbix's People

Contributors

szimszon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

backuppc_monitor_zabbix's Issues

Problems running the scripts ....

Hi I have installed the *.pl scripts as per instructions though when I try to run
[root@server bin]# sudo -u backuppc ./zabbix-backuppc.pl
Undefined subroutine &main::CheckPermission called at ./zabbix-backuppc.pl line 317.

Checpermission is part of Lib.pm ... so why am I having this problem?

Thanks

Value should be a JSON object.

Hi,

i'm trying your script but everytime get "Value should be a JSON object."
The script is in another folder because i have others script and visudo configured.

Server versione 3.0

I'm throught a proxy 3.0.2 and an agent 3.0.2
Basic script zabbix-backuppc.pl work correctly

system.run[sudo -u backuppc /etc/zabbix/externalscripts/zabbix-discover-backuppc.pl] [t|{ "data":[
{"{#BACKUPHOST}":"pc1"}
, {"{#BACKUPHOST}":"pc2"}
, {"{#BACKUPHOST}":"pc3"}
, {"{#BACKUPHOST}":"pc4"}
, {"{#BACKUPHOST}":"pc5"}
, {"{#BACKUPHOST}":"pc6"}
, {"{#BACKUPHOST}":"pc7"}
]}]

I try to find log of it on server, proxy or client but nothing.

Any suggestion?
Thanks

why error

Hi your script is awsome but i can't use... the zabbix can get information

Zabbix 3.0 and Backuppc 3

[root@Zabbix ~]# zabbix_get -s 172.16.1.170 -k backuppc.incrage[172.16.1.13]
ZBX_NOTSUPPORTED

root@backuppc:~# sudo -u backuppc /usr/local/bin/zabbix-backuppc.pl 
1

root@backuppc:~# sudo -u backuppc /usr/local/bin/zabbix-discover-backuppc.pl 
{  "data":[
    {"{#BACKUPHOST}":"172.16.1.14"}
,    {"{#BACKUPHOST}":"172.16.1.12"}
,    {"{#BACKUPHOST}":"172.16.1.40"}
,    {"{#BACKUPHOST}":"172.16.1.11"}
,    {"{#BACKUPHOST}":"172.16.1.9"}
,    {"{#BACKUPHOST}":"172.16.1.13"}
  ]}

Can you help me please.... 3 days... million google searches...

no data

Hey, i'm forcing issue with your backuppc template. I tried to solve it but i have no idea what wrong.
I did everything from istruction, and discovery seems to work it found my 2 hosts from backuppc, but thats all, i dont have any data.
output from sudo -u backuppc /usr/local/bin/zabbix-backuppc.pl is 1
output from sudo -u backuppc /usr/local/bin/zabbix-discover-backuppc.pl
{ "data":[
{"{#BACKUPHOST}":"localhost"}
, {"{#BACKUPHOST}":"10.199.0.34"}
]}
I'm at ubuntu 14lts backuppc from repo, zabbix 2.4
maybe you can tell me how to find issue, so i can fix it by myself:)
Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.