Zabbix

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3  Next
Author Message
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Oct 31, 2010 8:42    Post subject: Zabbix Reply with quote
I used to run Cacti and took the trouble to monitor my DD-WRT's. I'm now running Zabbix which can do a lot more than just monitor.

I already created some scripts for it (postfix, sendmail, exim and ASSP)

If anyone else is using it or start using it. I'm too lazy to create templates for it, but I would still like them.

Look into Zabbix. It's probably better than what you're using now. There's not much energy in their forum though.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
Sponsor
poohpoohguy
DD-WRT Novice


Joined: 29 Jan 2011
Posts: 7

PostPosted: Sat Jan 29, 2011 20:25    Post subject: Reply with quote
i have installed zabbix service.
how do i access the report ?
is there other thing needed to be done as well ?
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sat Jan 29, 2011 21:39    Post subject: Reply with quote
That's only an agent....
You need to install zabbix on a full Linux server (Ubuntu 10.4?) with Apache.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
desiromeo
DD-WRT User


Joined: 24 Oct 2008
Posts: 213
Location: Suburbs

PostPosted: Sun Jan 30, 2011 8:26    Post subject: Reply with quote
Frater is there any way you can make a wiki for zabbix? Once apache is installed on ubuntu and have the zabbix agent enabled in OTRW then what? Is there any configuration setup that needs to be done? Im a complete noob and have learned everything i know about linux from ddwrt...and have been able to do all this just by following directions from wiki's. Im a Medical student by trade but love to mess around with this kind of stuff...and would love to learn how to code one day too!
_________________
ASUS RT-AC68U [Kong build 24850] = main router
Linksys E2000 [Build 15962M NEWD-2 K2.6 big] = client bridge
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sun Jan 30, 2011 9:16    Post subject: Reply with quote
you need to have a Linux server running Apache (not on DD-WRT, a real server/desktop). You could do it in vmware and create a virtual machine on your windows computer....

Sorry, way beyond the scope of DD-WRT.
You need to find it out yourself, I have too many projects at hand already.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
desiromeo
DD-WRT User


Joined: 24 Oct 2008
Posts: 213
Location: Suburbs

PostPosted: Sun Jan 30, 2011 23:56    Post subject: Reply with quote
Frater i feel like im ever so close to getting it to work...just need a little help.

I was reading the following and didnt know how to follow a certain step(in bold):

Quote:
This will install the zabbix agent now you need to configure your agent to communicate with server for this you need to edit the file located at /etc/zabbix/zabbix_agentd.conf

Make sure that the Server parameter points to your zabbix server address:

Server=xxx.xxx.xxx.xxx

Now Edit /etc/services:

vi /etc/services

Add:

zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp


Now you need to restart the zabbis agent using the following command

#/etc/init.d/zabbix-agent restart

That' it you have installed zabbix server and agent.

Now you can access zabbix using the following URL

http://yourserver/zabbix/ you should see the following screen


I'm also attaching a screenshot of something that might help you troubleshoot the problem. Thanks for all your help!

[EDIT]- Also where it says "Server=xxx.xxx.xxx.x"....Is that where i replace it with 127.0.0.1?



Screenshot.png
 Description:
 Filesize:  72.13 KB
 Viewed:  34346 Time(s)

Screenshot.png



_________________
ASUS RT-AC68U [Kong build 24850] = main router
Linksys E2000 [Build 15962M NEWD-2 K2.6 big] = client bridge
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Mon Jan 31, 2011 14:02    Post subject: Reply with quote
Don't worry about the agent....
I will help you with that.
First get your server running and let it start monitoring itself.

Quote:
Also where it says "Server=xxx.xxx.xxx.x"....Is that where i replace it with 127.0.0.1?

Yes, replace that with 127.0.0.1 on the zabbix server..
But it's only the agent....

On DD-WRT that file is in /opt/etc/zabbix/zabbix_agentd.conf and there it needs the IP of your zabbix server.

But first get the server running. It isn't yet.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
desiromeo
DD-WRT User


Joined: 24 Oct 2008
Posts: 213
Location: Suburbs

PostPosted: Mon Jan 31, 2011 16:47    Post subject: Reply with quote
Ok well im following this link http://www.howtoforge.com/zabbix_network_monitoring to help me get it running. After following as much as i could i am getting different error messages from zabbix this time..any input?

Ill keep trying tho...



Screenshot.png
 Description:
 Filesize:  55.3 KB
 Viewed:  34281 Time(s)

Screenshot.png



_________________
ASUS RT-AC68U [Kong build 24850] = main router
Linksys E2000 [Build 15962M NEWD-2 K2.6 big] = client bridge
can't flash
DD-WRT User


Joined: 14 Jan 2010
Posts: 73
Location: Flint, Michigan

PostPosted: Wed Feb 02, 2011 19:32    Post subject: Regarding a home server Reply with quote
Fratter,

I've been following the forums for information on Zabbix since you added it to OTRW. One question I have concerns the server side. Currently, I run OTRW from a WD 1TB USB drive w/ 900GB on ext3 for storage. With this much storage, I question the advantage of running a server vs. keeping the current setup with an off-site accessible Samba account. How do you organize your data storage? Is your web server dedicated to webhosting while the USB-disk provides data storage on the router or do you use them redundantly? This is basically a network design question regarding efficient data storage and access. Any feedback would be appreciated. Thanks in advance.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Thu Feb 03, 2011 6:46    Post subject: Reply with quote
can't flash wrote:
How do you organize your data storage?

I have an HTPC (Home Theater PC) with a Core i5 and 11.5 TB harddisk space running Windows 7. That data is shared on my LAN. That same machine is also running vmware 2.0 server and has 3 machines running. 2 x Ubuntu 10.4 Server (without GUI) and 1 x Windows 2000. A Western Digital harddisk which is in fact a little Linux machine powered by an ARM-processor and 1 TB of storage (the actual host of OTRW) is running lighttpd and has samba running. I have several other little appliances connected to my lan.
Most time is spent using my 7 year old Pentium4 machine which I use for browsing and developing.

My Router is not involved in mass storage for data nor hosting. It is running pound however, a reverse proxy, that handles http and https connections. It acts as a referee deciding which webserver is going to receive the traffic. The router is connected with another Asus RT16N using WDS. My LAN is connected to that WDS-bridge

Most of the traffic will go to 1 of the Ubuntu 10.4 systems running Apache with virtual hosting. That one is also running the zabbix server.
The other machine is running Zarafa. It's a further development of Exchange4Linux.

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
can't flash
DD-WRT User


Joined: 14 Jan 2010
Posts: 73
Location: Flint, Michigan

PostPosted: Sat Feb 05, 2011 18:34    Post subject: Home Server Reply with quote
Frater,

That is an impressive setup. So your servers are virtual machines running simultaneously on the same "box" as it were? What is the purpose of having three servers? Are you aiming for redundancy or just a separation of function between say public/private web hosting? Does Zabbix monitor your entire network or just the server on which it is running? Thanks for the information.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Sat Feb 05, 2011 20:05    Post subject: Re: Home Server Reply with quote
can't flash wrote:
Frater,

That is an impressive setup. So your servers are virtual machines running simultaneously on the same "box" as it were? What is the purpose of having three servers?
Seperation of services and the ability to take the machine and run it on another vmware machine. Cloning/backup of a machine can be easily automated.
_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 837

PostPosted: Mon Feb 14, 2011 16:02    Post subject: Reply with quote
I've looked into Zabbix a bit and it seems to me that the easiest path to get it wroking is to download the virtual machine from the zabbix site and run it under Virtualbox (www.virtualbox.org). The server component runs straight out of the box, at least for me. Virtualbox is per se very easy to install and configure.

Haven't got around to really test it against my router yet though.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Mon Feb 14, 2011 17:02    Post subject: Reply with quote
When I installed my HTPC I also installed virtualbox because I already suspected an early EOL (End of Life) of vmware server.
I was however disappointed in virtualbox because I was unable to start it as a system service.
This is a must for me, so I removed it after I tried some dirty workarounds.....

I believe Virtualbox is still being developed. How is the state of it? Is it able to start as a service now?

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 837

PostPosted: Tue Feb 15, 2011 9:37    Post subject: Reply with quote
Dont know if you can run it as a real 'service'. You can autostart a vm using a batchscript by running:

VBoxManage startvm "VM name" --type headless

Will start the vm 'invisibly' on the host
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum