NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Monitoring Systems With Zabbix - Initial Configuration - Part 5
Topic: Monitoring   Posted:2006-04-18
Printer Friendly: Print

spacerspacer
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6

The agent files also end up in /usr/local/bin by default:

[root@srv-1 zabbix-1.1beta8]# cd /usr/local/bin/
[root@srv-1 bin]# ls zab*
zabbix_agent  zabbix_agentd  zabbix_get  zabbix_sender  zabbix_server
[root@srv-1 bin]# ls -l zab*
-rwxr-xr-x  1 root root 179347 Apr 18 10:56 zabbix_agent
-rwxr-xr-x  1 root root 249257 Apr 18 10:56 zabbix_agentd
-rwxr-xr-x  1 root root  18527 Apr 18 10:56 zabbix_get
-rwxr-xr-x  1 root root  22631 Apr 18 10:56 zabbix_sender
-rwxr-xr-x  1 root root 553797 Apr 18 10:27 zabbix_server
[root@srv-1 bin]# 

Note that we did not touch the server file with our agent compile. Let's start the agent and check the log:

[root@srv-1 bin]# ./zabbix_agentd
[root@srv-1 bin]# ls /tmp/zab*
/tmp/zabbix_agentd.log  /tmp/zabbix_agentd.tmp  /tmp/zabbix_server.log
[root@srv-1 bin]# cat /tmp/zabbix_agentd.tmp
netloadout1[lo] 0.000000
netloadout5[lo] 0.000000
netloadout15[lo] 0.000000
netloadin1[lo] 0.000000
netloadin5[lo] 0.000000
netloadin15[lo] 0.000000
netloadout1[eth0] 206.933333
netloadout5[eth0] 206.933333
netloadout15[eth0] 206.933333
netloadin1[eth0] 293.333333
netloadin5[eth0] 293.333333
netloadin15[eth0] 293.333333
netloadout1[sit0] 0
netloadout5[sit0] 0
netloadout15[sit0] 0
netloadin1[sit0] 0
netloadin5[sit0] 0
netloadin15[sit0] 0
cpu[idle1] 96.000000
cpu[idle5] 96.000000
cpu[idle15] 96.000000
cpu[user1] 3.466667
cpu[user5] 3.466667
cpu[user15] 3.466667
cpu[nice1] 0.133333
cpu[nice5] 0.133333
cpu[nice15] 0.133333
cpu[system1] 0.466667
cpu[system5] 0.466667
cpu[system15] 0.466667
[root@srv-1 bin]#

This will be a dedicated Zabbix server, and we will put the files in the root of the web server. Modify the db.inc.php file and copy:

[root@srv-1 html]# pwd
/var/www/html
[root@srv-1 html]# vi /usr/local/src/zab*server/frontends/php/include/db.inc.php
//      $DB_TYPE        ="POSTGRESQL";
$DB_TYPE        ="MYSQL";
$DB_SERVER      ="localhost";
$DB_DATABASE    ="zabbix";
//      $DB_DATABASE    ="osmiy";
$DB_USER        ="root";
$DB_PASSWORD    ="";
[root@srv-1 html]# cp -r /usr/local/src/zab*server/frontends/php/* ./
[root@srv-1 html]# ls
acknow.php      chart5.php        hosts.php   overview.php    services.php
actionconf.php  chart_sla.php     image.php   popup.php       srv_status.php
actions.php     charts.php        images      profile.php     sysmap.php
alarms.php      config.php        include     queue.php       sysmaps.php
audio           css.css           index.php   report1.php     tr_comments.php
audit.php       events.php        items.php   report2.php     tr_status.php
bulkloader.php  graph.php         latest.php  report3.php     triggers.php
chart.php       graphs.php        map.php     screenconf.php  users.php
chart2.php      history.php       maps.php    screenedit.php
chart4.php      hostprofiles.php  media.php   screens.php
[root@srv-1 html]# 

Note that we are using a MySQL user of root. Probabably better to use a different user, but for a dedicated system with only administrators logging on, this is probably fine.

Next




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS