Jump to content
jimmythe6

zabbix integration kind of.

Recommended Posts

I was asked to post instructions but first let me get some stuff out of the way since I run a small single client system that is built for internal support only.

So that being said this is in no way secure. The zabbix system is internal only and so I dont need to setup any kind of security for it.

The Zabbix 3.0 agent does however allow for secure transfer of data so you might be able to setup the agents to report to an external ip and just lock the servers http ports down.

 

 

To get zabbix to let you attach the screens without building them one by one in the screen creator is giving guest rights to all devices. this will keep it from asking for a password when you open the windows in labtech.

 

Anyway the idea here is to have zabbix screens report inside labtech like so.

r2ySyNG.png

 

ok first off you will need to have a working zabbix server all setup and ready to go.

If you dont have zabbix go get it or this wont work for you.

 

Hopefully you've already setup screens for your devices now you're ready to get them integrated into LT.

 

Create an EDF for the url to live. For this I used MAPURLC as the EDF name

then create a custom tab as a web page. for the URL use %eMAPURLC%

tkl6wpW.png

 

now that its done go to zabbix and go to the screen you want to import into Labtech.

get the URL at the top make sure you select a screen dont just copy the default or the sid wont get selected.

URL without sid

N4Yu30K.png

URL With sid

0anj0Ie.png

 

post the URLS In your EDFS

ZhX1hTe.png

I have a few screens that i have configured but im sure you get the idea. if you want the zabbix menu to show up just don't select the fullscreen option.

 

 

For network Devices the custom tab plugin doesnt have the option to pull edfs so you will need to use an sql query instead in the URL field.

$SQL$$SELECT `MAPURLC` FROM `v_extradatanetdevice` WHERE `id` = %id%$

The only thing you should need to change is the MAPURLC in the line to match the name of the EDF you created for network devices.

 

YZ7vocC.png

Share this post


Link to post
Share on other sites

agreed. we were using prtg but zabbix seems to be a lot better for this kind of thing.

I've been thinking though and after a few tests I think the way to go is take the zabbix info and import it into grafana then put it into LT.

Takes the need to have multiple windows out. It will take a lot more time but i think will be worth it in the end.

I'm thinking of putting together a step by step of configuring zabbix and grafana soon.

HrT4rNm.png

Share this post


Link to post
Share on other sites

unfortunately.... Sorry about the delay.

As soon as I can get this stupid cisco ASA and cx modules working right, its been almost a month and last week it decided it wanted to completely stop working....... finally got it mostly fixed but still have a bit to go. along with scanner upgrades, ap replacements, and I wont even get into the stupid dell wyse thin client problems...... Luckily ill have some down time next week since they are sending me out of town..

On the pluss side they put out a new version of grafana so should be getting the how-to for that done tonight.

Share this post


Link to post
Share on other sites

I've decided to do this in parts since I've been pretty strapped for time... so, I'll go over each server type and how to get it up and running, then fit them all together into the main dashboards that you will want in labtech.

 

I’ve been working on getting things cleaned up and looking good to have something more to show but our firewall had other plans so ill go off of what I got so far.

 

Labtech is great but Unfortunately it lacks in a good historical archive, charting and syslog scanning.

So my goal was to get all of these integrated into LT as best as I could since they are really helpful to have when looking at bench-marking or watching for items that aren't necessarily ticket events but do cause delays or disruptions in service.

 

so for the historical stuff I was using PRTG but with 100 sensors I couldn't do everything i needed. So I started using Zabbix and it seems to fill the void nicely plus it plays nice with the custom tabs which prtg doesn't work well at all with.

 

I used the pre built zabbix server for mine but i don't recommend you do at all. It's easy to get going but in the end you will have problems with drive space and resources. it will break on you a few weeks after you have it installed so id recommend building it from scratch. I'm using Debian 8.

 

The install instructions are here.

https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages

they give a pretty good rundown of the install process.

 

 

 

you can get Debian 8 here.

 

http://cdimage.debian.org/debian-cd/8.4.0/amd64/iso-dvd/

 

just grab the first dvd. If you're ok using the minimal install feel free but these instructions might not be any help with getting the server going if you do.

once you start the installation just go through the first language setup etc...

name your system

enter your domain name password etc...and add a user

once you get to the disk partitioning id recommend using the all files on one partition option. I had an issue with the var partition filling on a previous install so this will keep things a bit easier to deal with.

7xL5kBS.png

on the next yes for the network mirror you will need it later.

7E7mO2T.png

next you will have the option to select software. the only thing i select is SSH server and standard system utilities.

ogT1Vi4.png

once its done you can log in. either log in as the root user or log in as the user you created. you will want to install the net-tool package.

if you are logged in as the user you will need to type

su

then enter the root password.

then

apt-get install net-tools

once thats done you can run

ifconfig

which will get you an ip address to use ssh instead of the console. it's at least easier for me to use putty for copying and pasting in commands not to mention winscp to transfer and update files.

you should see something like this.

UmbE7mA.png

If you're using the ssh session you will not be able to log into it as root. so just log in as your user.

type

su

and use your root password

then type

wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+jessie_all.deb

dpkg -i zabbix-release_3.0-1+jessie_all.deb

apt-get update

 

BsofDys.png

It will install all of the prerequisite stuff automatically but will not configure them correctly so ill get to more on that in a sec.

put in a password for the mysql server and remember it.

nSnWeon.png

once done type

cd /usr/share/doc/zabbix-server-mysql

zcat create.sql.gz | mysql -uroot zabbix -p

use the password you created and it should build the database.

 

now are almost ready to start the server the only thing left is to update the php.ini file with your time zone and the zabbix.conf with the user name and password for your accounts.

you can start the server just to make sure the front end works but typing

service zabbix-server start

be sure to use http://ip.address/zabbix'>http://ip.address/zabbix you should see.

R6tLXzR.png

if you try to continue though you will get errors.

ktdQij1.png

the php.ini file is located at

/etc/php5/apache2/php.ini

if your'e used to using vi then you most likely dont need this doc.

I usually just use winscp to edit stuff. so load winscp you wont be able to use root on winscp so in the putty session typ

su

chmod 777 /etc/php5/apache2/php.ini

then you will be able to just edit the file right from winscp and save it.

The line you are looking for is

[Date]

; Defines the default timezone used by the date functions

; http://php.net/date.timezone'>http://php.net/date.timezone

;date.timezone =

 

just change it to

[Date]

; Defines the default timezone used by the date functions

; http://php.net/date.timezone

date.timezone =Pacific/Pitcairn

you can find your time zone info here.

 

http://php.net/manual/en/timezones.php

 

once you save it then you will need to change the zabbix config.

su

chmod 777 /etc/zabbix/zabbix_server.conf

 

open the config file uncomment (take out the #) and update the settings for your db with the root user and password.

DBHost=localhost

DBName=zabbix

DBUser=root

DBPassword=password

 

once thats done then save the settings and you can either reboot or reload everything

su

service zabbix-server restart

service apache2 restart

 

go to

http://ip.address/zabbix

 

AvJ7HZd.png

click next step then put in your db info again.

2dDmren.png

next again

f9YVvqm.png

You're done yay!

OS05CWb.png

The default user and pass is

user: admin

pass: zabbix

 

you can download the windows agents here http://www.suiviperf.com/zabbix/index.php

the labtech install scripts are attached as well. you will want to change the SERVER and SERVERACTIVE ips to the ip of your zabbix server in the script.

you will also most likely want to update the agent info to the 3.0. it wasn't available at the time i put this all in place.

 

now that the server is working you can either manually add hosts by clicking on configuration and hosts. then click the add host button.

or

setup auto discovery which is way easier. I'll update with how to do that as soon as i get some more time.

Zabbix.zip

Share this post


Link to post
Share on other sites

Hells yes... Grafana is the way to go 1000% percent.

 

agreed. we were using prtg but zabbix seems to be a lot better for this kind of thing.

I've been thinking though and after a few tests I think the way to go is take the zabbix info and import it into grafana then put it into LT.

Takes the need to have multiple windows out. It will take a lot more time but i think will be worth it in the end.

I'm thinking of putting together a step by step of configuring zabbix and grafana soon.

HrT4rNm.png

Share this post


Link to post
Share on other sites

Can't wait to see the rest of this, it looks fantastic! Would love a bit of a writeup on getting it working with grafana too :D

Share this post


Link to post
Share on other sites

Sorry I've been busy for the past year getting a couple new warehouses up and running and a citrix farm rebuilt. the project is finally coming to and end hopefully in the next few weeks baring any fires. I was also waiting until we upgraded to LT11 to see if maybe they added something that would take grafana and zabbix place but doesn't look like they did.

Share this post


Link to post
Share on other sites

I'm back on this kick as I just wasted about $500 per month on Auvik for the past 12 months.  

Edited by apbirch67
well because

Share this post


Link to post
Share on other sites

How is money spent on Auvik "wasted"? I'm not familiar with Zabbix, so if it can do for free the device discovery, statistics, configuration backups, remote management tunneling and layout mapping that Auvik provides, then I suppose it could be considered money wasted. But Auvik is pretty amazing, we have been rolling it out more and more as time goes on.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...