3 Summary: MONyog MySQL Monitoring Tool
8 Group: Applications/Databases
9 Source0: https://static.webyog.com/downloads/MONyog-%{version}-0.i386.tar.gz
10 # NoSource0-md5: adadfca45532b163d4f1f24f9cdff9c0
12 Source1: https://static.webyog.com/downloads/MONyog-%{version}-0.x86_64.tar.gz
13 # NoSource1-md5: 4cc3950bca955474b73baa57c4c4d9d7
15 URL: https://www.webyog.com/product/monyog
16 ExclusiveArch: %{ix86} %{x8664}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _appdir %{_libdir}/%{name}
21 # monyog: file '/usr/sbin/monyog' has size=498000 instead of 29952257
22 %define _noautostrip .*%{_appdir}/bin/monyog
25 MONyog is a monitoring and advisory tool for MySQL Community, MySQL
26 Enterprise and MariaDB.
28 MONyog helps MySQL Database Administrators to manage more servers,
29 tune their MySQL servers and fix problems with MySQL database
30 applications. MONyog is agent-less, and does not require anything to
31 be installed on the MySQL servers. MONyog helps monitor enterprise
32 database environments and provides expert advice on how even those new
33 to MySQL can tighten security, optimize performance and reduce
34 downtime of their MySQL powered systems.
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_appdir}/bin,/etc/{rc.d/init.d,logrotate.d}}
49 cp -a MONyog.lua MONyog.mib res $RPM_BUILD_ROOT%{_appdir}
50 install -p bin/MONyog $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
51 install -p bin/MONyog-bin $RPM_BUILD_ROOT%{_appdir}/bin/%{name}
53 # home directory that is usable for mysql user (not to run the daemon as root)
54 # bin dir needs to be writable, as ssh temp files are created there
55 install -d $RPM_BUILD_ROOT/var/lib/%{name}/bin
56 ln -s %{_appdir}/res $RPM_BUILD_ROOT/var/lib/%{name}
57 ln -s %{_appdir}/bin/%{name} $RPM_BUILD_ROOT/var/lib/%{name}/bin
60 rm -rf $RPM_BUILD_ROOT
63 %banner -e -o %{name} <<EOF
65 ===========================================================================
66 Point your browser to http://<YOUR_HOST>:<MONYOG_PORT>/ to monitor MySQL servers.
67 Please refer to https://www.webyog.com/webyog/monyogDocs for online documentation.
68 ===========================================================================
73 %defattr(644,root,root,755)
75 %attr(754,root,root) /etc/rc.d/init.d/monyog
81 %attr(755,root,root) %{_appdir}/bin/monyog
83 %dir %attr(770,root,mysql) /var/lib/%{name}
84 %dir %attr(770,root,mysql) /var/lib/%{name}/bin
86 /var/lib/%{name}/bin/%{name}