2 # - check_bpi checker package
3 # - this piece of shit is insecure, don't use it in enviroment you don't trust:
4 # config_functions/fix_config.php allows you to write config file, which is
5 # included to any page of nagios bpi
6 # why it's even "featured" upload of nagios.org? ah yes,
7 # exchange.nagios.org itself is similar shit.
8 # - it doesn't even check for errors for simple file operation:
9 # file_put_contents(CONFIGFILE, $new);
10 # print "<p>File successfully written!</p>";
12 Summary: Nagios Business Process Intelligence Featured Popular
17 Group: Applications/WWW
18 Source0: http://assets.nagios.com/downloads/exchange/nagiosbpi/nagiosbpi.zip
19 # Source0-md5: 571771978a3bc00604abdee4bbe1c8c4
21 URL: http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _webapps /etc/webapps
28 %define _webapp nagiosbpi
29 %define _sysconfdir %{_webapps}/%{_webapp}
30 %define appdir %{_datadir}/nagios/%{_webapp}
33 Nagios Business Process Intelligence is an advanced grouping tool that
34 allows you to set more complex dependencies to determine groups
35 states. Nagios BPI provides an interface to effectively view the
36 'real' state of the network. Rules for group states can be determined
37 by the user, and parent-child relationships are easily identified when
38 you need to 'drill down' on a problem. This tool can also be used in
39 conjunction with a check plugin to allow for notifications through
43 # use versioned build dir
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{appdir}}
53 cp -p *.php *.js *.css constants.conf $RPM_BUILD_ROOT%{appdir}
54 cp -a config_functions functions images $RPM_BUILD_ROOT%{appdir}
57 cp -p bpi.conf $RPM_BUILD_ROOT%{_sysconfdir}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %dir %attr(770,root,http) %{_sysconfdir}
66 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bpi.conf