Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.01 KB

INSTALL.md

File metadata and controls

45 lines (29 loc) · 1.01 KB

icinga-sybase

Quick Install Guide

  1. Pull/clone the repository from GitHub

  2. Install the stored procedure on your Database Server

isql -U<username> -S<DSQUERY> -P<password> -i sp_dba_nagios.sql

You can now test that the stored procedure is loaded and working

isql -U<username> -S<DSQUERY> -P<password> -w1000
1> sp_dba_nagios 3,10,20
2> go
SYB Blocked Processes : 0 - ok
(return status = 0)
  1. Install the check_syb.ksh

Edit check_syb.ksh

  1. DSQUERY
  2. PATH to SYBASE.sh
  3. Database login for Icinga Agent, username and password

This is where you need some Icinga expertise, as we installed it into a plugins directory, modified the permissions for SELinux, (ls -alZ and chcon). We had a nagios unix account set up running an NRPE process to execute the command.

Your mileage will vary here.

You can now test the script works on the unix commandline

# ./check_syb.ksh 3 10 20
# SYB Blocked Processes : 0 - ok
  1. Configure Icinga to run the checks

This will be determined by your local set up.