Professional Documents
Culture Documents
(http://www.akashif.co.uk/feed/rss)
Technology Blog
(http://www.akashif.co.uk)
just writing my knowledge.
Recent Posts
Task Scheduler stops running scheduled tasks
(http://www.akashif.co.uk/windows-server-
1/17
3/6/2014
Zabbix 2.0.6 on
CentOS 6.4 using
source
2008/task-scheduler-stops-running-
scheduled-tasks)
PowerShell execute SQL Server SP wtih
Parameters
(http://www.akashif.co.uk/powershell/powershellexecute-sql-server-sp-wtih-parameters)
of scripts is disabled on this system
(http://www.akashif.co.uk/windows-server2008/file-cannot-be-loaded-because-theexecution-of-scripts-is-disabled-on-this-
wgethttp://sourceforge.net/projectssystem)
/zabbix/files/ZABBIX%20Latest%20Stable/2.0.6/zabbix2.0.6.tar.gz/download
tarzxvfzabbix2.0.6.tar.gz
Delete a Team Project Collection
cdzabbix2.0.6
(http://www.akashif.co.uk/windows-server-
2008/delete-a-team-project-collection)
1
2
import-pst-file-data-in-microsoft-outlook-2013)
Categories
CentOS
(http://www.akashif.co.uk/tech/centos)
Kannel
(http://www.akashif.co.uk/tech/kannel)
MySQL
(http://www.akashif.co.uk/tech/mysql)
yuminstallzlibdevelmysqldevelglibcdevelcurldevelgccautomakemysqllibidndevelopenssldevelnetsnm
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
(http://www.akashif.co.uk/windows/how-to-
groupaddg130zabbix
useraddu130gzabbixc'Zabbixmonitoring'zabbix
Outlook 2013
Php (http://www.akashif.co.uk/tech/php)
PowerShell
(http://www.akashif.co.uk/tech/powershell)
SQL Server
2/17
3/6/2014
(http://www.akashif.co.uk/tech/sql-server)
Windows
(http://www.akashif.co.uk/tech/windows)
Windows Server 2008
suc'rpmUvhhttp://download.fedor
aproject.org/pub/epel/6/i386/epelrelease68.noarch.rpm
(http://www.akashif.co.uk/tech/windowsyumenablerepo=epelinstalliksemeliksemeldevel
server-2008)
./configureenableserverwith
mysql
withnetsnmpwithjabberwithlibcurlwithopenipmienable
Recent
Comments
Enableserver:yes
Withdatabase:MySQL
WEBMonitoringvia:cURL
NativeJabber:yes
SNMP:netsnmp
IPMI:openipmi
Enableagent:yes
make
makeinstall
servicemysqldstart
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
mysqladminurootpassword
3/17
3/6/2014
mysqlurootp
createdatabasezabbixcharacter
grantallprivilegesonzabbix.*
quit;
1#comment-191)
Archives
March 2014
(http://www.akashif.co.uk/2014/03)
February 2014
(http://www.akashif.co.uk/2014/02)
cddatabase/mysql/
2013
mysqluzabbixzabbix<schema.sqlDecember
p
mysqluzabbixzabbix<images.sql(http://www.akashif.co.uk/2013/12)
p
mysqluzabbixzabbix<data.sqlp
November 2013
(http://www.akashif.co.uk/2013/11)
Configure Zabbix
zabbix 2.0.6 installation will place its conf
file at following location (atleast for me
September 2013
(http://www.akashif.co.uk/2013/08)
/usr/local/etc/zabbix_server.conf
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
(http://www.akashif.co.uk/2013/10)
(http://www.akashif.co.uk/2013/09)
August 2013
July 2013 (http://www.akashif.co.uk/2013/07)
January 2013
(http://www.akashif.co.uk/2013/01)
December 2012
(http://www.akashif.co.uk/2012/12)
DBName=
DBUser=
DBPassword=
October 2013
Tags
nano/usr/local/etc/zabbix_server.conf
DBName=zabbix
DBUser=zabbix
DBPassword=yourzabbixmysqlpassword
CentOS
4/17
3/6/2014
/usr/local/sbin/zabbix_agentd
/usr/local/sbin/zabbix_server
pse|grepzabbix
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
Kannel
(http://www.akashif.co.uk/tags/kannel)
chmod400/etc/zabbix/zabbix_server
.conf
chownzabbix/etc/zabbix/zabbix_server.conf
Linux Monitoring
(http://www.akashif.co.uk/tags/centos)
(http://www.akashif.co.uk/tags/linuxmonitoring)
MySQL
(http://www.akashif.co.uk/tags/mysql)
openSMPP
(http://www.akashif.co.uk/tags/opensmpp)
Outlook (http://www.akashif.co.uk/tags/outlook)
Parallels Desktop
(http://www.akashif.co.uk/tags/parallels-desktop) php
(http://www.akashif.co.uk/tags/php-2) PowerShell
(http://www.akashif.co.uk/tags/powershell)
Remote Desktop
(http://www.akashif.co.uk/tags/remote-desktop)
Server 2008
#!/bin/bash
(http://www.akashif.co.uk/tags/server#
#chkconfig:5545
2008) Sharepoint
#description:zabbix_server
(http://www.akashif.co.uk/tags/sharepoint) SMSC
#probe:false
(http://www.akashif.co.uk/tags/smsc) SQLbox
#Sourcefunctionlibrary.
(http://www.akashif.co.uk/tags/sqlbox) SQL
./etc/rc.d/init.d/functions
Server
#Sourcenetworkingconfiguration.
./etc/sysconfig/network
(http://www.akashif.co.uk/tags/sql
#Checkthatnetworkingisup.Ifyouarerunningwithoutanetwork,commentthisout.
server)
squid (http://www.akashif.co.uk/tags/squid)
["${NETWORKING}"="no"]&&exit
0
5/17
3/6/2014
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
TFS
RETVAL=0
progdir="/usr/local/sbin/"
(http://www.akashif.co.uk/tags/tfs)
prog="zabbix_server"
Windows
start(){
(http://www.akashif.co.uk/tags/windows)
#Startdaemons.
zabbix (http://www.akashif.co.uk/tags/zabbix)
if[n"`/sbin/pidof$prog`"];
then
echon"$prog:alreadyrunning"
failure$"$progstart"
echo
return1
fi
echon$"Starting$prog:"
#wecan'tseemtousedaemonhereemulateitsfunctionality
suc$progdir$prog$USER
RETVAL=$?
usleep100000
if[z"`/sbin/pidof$progdir$prog`"];then
RETVAL=1
fi
[$RETVALne0]&&failure$"$progstartup"
[$RETVALeq0]&&touch/var/lock/subsys/$prog&&success$"$progstartup"
echo
return$RETVAL
}
stop(){
RETVAL=0
pid=
#Stopdaemons.
echon$"Stopping$prog:"
pid=`/sbin/pidofs$prog`
if[n"$pid"];then
killTERM$pid
else
failure$"$progstop"
echo
return1
fi
RETVAL=$?
[$RETVALne0]&&failure$"$progstop"
[$RETVALeq0]&&rmf/var/lock/subsys/$prog&&success$"$progstop"
echo
return$RETVAL
}
restart(){
stop
sleep5
6/17
3/6/2014
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
start
}
#Seehowwewerecalled.
case"$1"in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
condrestart)
[f/var/lock/subsys/$prog]&&restart
;;
*)
echo$"Usage:$0{start|stop|restart|condrestart}"
exit1
esac
exit$?
nano/etc/init.d/zabbix_server
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
#!/bin/bash
#
#chkconfig:5545
#description:zabbix_agentd
#probe:false
#Sourcefunctionlibrary.
./etc/rc.d/init.d/functions
#Sourcenetworkingconfiguration.
./etc/sysconfig/network
#Checkthatnetworkingisup.Ifyouarerunningwithoutanetwork,commentthisout.
["${NETWORKING}"="no"]&&exit0
7/17
3/6/2014
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
RETVAL=0
progdir="/usr/local/sbin/"
prog="zabbix_agentd"
start(){
#Startdaemons.
if[n"`/sbin/pidof$prog`"];then
echon"$prog:alreadyrunning"
failure$"$progstart"
echo
return1
fi
echon$"Starting$prog:"
#wecan'tseemtousedaemonhereemulateitsfunctionality
suc$progdir$prog$USER
RETVAL=$?
usleep100000
if[z"`/sbin/pidof$progdir$prog`"];then
#Thechildprocesseshavediedafterfork()ing,e.g.
#becauseofabrokenconfigfile
RETVAL=1
fi
[$RETVALne0]&&failure$"$progstartup"
[$RETVALeq0]&&touch/var/lock/subsys/$prog&&success$"$progstartup"
echo
return$RETVAL
}
stop(){
RETVAL=0
pid=
#Stopdaemons.
echon$"Stopping$prog:"
pid=`/sbin/pidofs$prog`
if[n"$pid"];then
killTERM$pid
else
failure$"$progstop"
echo
return1
fi
RETVAL=$?
[$RETVALne0]&&failure$"$progstop"
[$RETVALeq0]&&rmf/var/lock/subsys/$prog&&success$"$progstop"
echo
return$RETVAL
}
restart(){
8/17
3/6/2014
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
stop
#waitforforkeddaemonstodie
usleep1000000
start
}
#Seehowwewerecalled.
case"$1"in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
condrestart)
[f/var/lock/subsys/$prog]&&restart
;;
*)
echo$"Usage:$0{start|stop|restart|condrestart}"
exit1
esac
exit$?
nano/etc/init.d/zabbix_agentd
whereiszabbix_server
/usr/local/sbin/zabbix_server
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
chkconfigaddzabbix_server
chkconfigaddzabbix_agentd
9/17
3/6/2014
chkconfiglevel35zabbix_serveron
chkconfiglevel35zabbix_agentdon
chkconfiglist
chkconfiglist|grepzabbix
chmod755/etc/init.d/zabbix_server
chmod755/etc/init.d/zabbix_agentd
servicezabbix_server{start|stop|restart|condrestart}
yuminstallphpmysqlphpgdphpbcmathphpmbstringphpxml
/sbin/chkconfigaddhttpd
/sbin/chkconfighttpdon
/sbin/chkconfigaddmysqld
/sbin/chkconfigmysqldon
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
cprfrontends/php//var/www/html/
10/17
3/6/2014
mv/var/www/html/php//var/www/html/zabbix
http://(http://)[SERVERIP]/zabbix
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/welcome.p
ng)
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/check_for_
pre_install.png)
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
11/17
3/6/2014
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/mysql.png)
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/host_name.
png)
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/summary.p
ng)
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
12/17
3/6/2014
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/conf_write_
fail.png)
Please Note you will face this error, this
write fail for zabbix conf.
do this
1
2
cd/var/www/html/zabbix/
chmod777conf
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/conf_write_
ok.png)
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
13/17
3/6/2014
(http://www.akashif.co.uk/wpcontent/uploads/2013/07/DashBoard.
png)
You are done.
CentOS
(http://www.akashif.co.uk/tech/centos)
Linux Monitoring
(http://www.akashif.co.uk/tags/linuxmonitoring), zabbix
(http://www.akashif.co.uk/tags/zabbix)
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
14/17
3/6/2014
Similar posts
(http://www.akashif.c
o.uk/mysql/mysqlillegal-mix-ofcollations)
(http://www.akashif.c
o.uk/centos/installand-configure-snmpon-centos)
(ht
tp:
/
/
w
osaekkap
w
2013-07-30
w.
(http://www.akashif.co.uk/centos/installingak
zabbix-2-x-on-centos/comment-page1#comment-182) as
hif
.c
i have the problem.
o. if i add new host
and show sms Get
uk value from agent
failed: cannot connect
to
/c
[[xx.xx.xx.xx]:10050]:
[4]
Interrupted
en
system call can to
you help me. if you
need please sents/
back to my email.
and i will sent picture
in to you.
st
thank you.
all
br.
in
Tom
gza
2 Comments
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
15/17
3/6/2014
za
Rep ly (/ cent o s/ inst alling - zab b ix - 2 - x - o ncent o s?r ep lyt o co m= 1b8 2 # r esp o nd )
bi
x2xAli Kashif
on
2013-07-31 ce
(http://www.akashif.co.uk/centos/installingnt
zabbix-2-x-on-centos/comment-pageos
1#comment-191)
/f
ee
i think you need to disable SELINUX,
d)
please try 2 things
1) flush current iptables
iprables -F
and also you need to follow this to
disable SELINUX,
http://www.akashif.co.uk/php/curl
-error-7-failed-to-connect-topermission-denied
(http://www.akashif.co.uk/php/curl
-error-7-failed-to-connect-topermission-denied)
above blog is written for different
purpose, but the process is same to
disable SELINUX.
try that. i suspect this will solve your
issue
Rep ly (/ cent o s/ inst alling - zab b ix - 2 - x - o ncent o s?r ep lyt o co m= 1 91 # r esp o nd )
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
16/17
3/6/2014
Leave a Reply
Your email address will not be published.
Required fields are marked *
Name *
Email *
Website
Comment
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""
Post Comment
http://www.akashif.co.uk/centos/installing-zabbix-2-x-on-centos
17/17