Using Nagios with UVB

SUMMARY

UVB 8 is enabled for use with Nagios out of the box, you need only update a configuration file with your Nagios server address to begin monitoring each appliance.

ISSUE

Unitrends Virtual Backup v8 is enabled for use with Nagios out of the box, you need only update a configuration file with your Nagios server address to begin monitoring each appliance.

Perform these steps on each appliance you would like to monitor using Nagios.

To configure Nagios on a UVB appliance

  1. Log in to the appliance virtual machine either through the VM console or via SSH.
  2. Go to /etc/nagios.
  3. Edit the file nrpe.cfg and enter your Nagios server IP address for the following parameter:

    server_address = 127.0.01
     
  4. Restart the service.
  5. Next enable logging by editing the file /var/lib/phdvb/conf/pevent_controller.conf

  6. Uncomment the line enable-joblog = 0 (remove the #).

  7. Change the value 0 to 1

  8. Run the following two commands:

    sudo phdcfg markall

    sudo restart pevent-controller  

 A sample pevent_controller.conf fike follows:

  #

  # Copyright (c) 2011 PHD Virtual Technologies, Inc.

  #

  [PHDVB presentation_controller]

  # Configuration file format is key = value pairs.

  # Keys and their default values are listed below, uncomment and modify to

  # change any of the default parameters.

  include ./phdvb.conf

  include ./presentation.conf

  # name = presentation_controller

  # longname = Presentation Controller

  # loglevel = info

  # pidfile = /var/run/phdvb/presentation_controller.pid

  # lockfile = /var/lock/phdvb/presentation_controller.lock

  # uuidfile = /var/run/phdvb/presentation_controller.uuid

  # uuid = (dynamically generated on startup)

  # hostname = 10.10.124.41

  enable-joblog = 1

  # joblog-path = /var/log/phdvb/job.log

 

Reporting

You can generate reports using the information written to the Nagios syslog after each job run.

By monitoring this log, you can generate your own reports as needed.The following describes the values available in each log entry:

job_id=<job_id> name=<job_name>

type=<job_type>

status=<job_status> start_time=<job_start_time> end_time=<job_end_time> items_with_error=<comma separated list of vm names that failed>

 

An example log entry follows:

job id=410 name=Backup Job type=backup status=ok start_time=1398274922 end_time=1398274964
job id=414 name=Backup Job type=backup status=warning start_time=1398275024 end_time=1398275076
job id=418 name=Backup Job type=backup status=error start_time=1398275102 end_time=1398275131 items_with_error=0 disk vm
job id=422 name=Backup Job type=backup status=error start_time=1398275138 end_time=1398275167 items_with_error=ubuntu-server 13.04,0 disk vm

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact us