+# TODO
+# - /var/log/nagios/archives -> /var/log/archive/nagios
+# - bundled jquery in themes
#
# Conditional build:
%bcond_without gd # without statusmap and trends, which require gd library
+%bcond_without doc # don't build html docs
# reeenable when http://tracker.nagios.org/view.php?id=51 is fixed
%bcond_with tests
-#
-Summary: Host/service/network monitoring program
+
+Summary: Open Source host, service and network monitoring program
Summary(pl.UTF-8): Program do monitorowania serwerów/usług/sieci
Summary(pt_BR.UTF-8): Programa para monitoração de máquinas e serviços
Name: nagios
-Version: 3.2.0
-Release: 5
-License: GPL v2
+Version: 4.3.3
+Release: 2
+License: GPL v2+
Group: Networking
-Source0: http://dl.sourceforge.net/nagios/%{name}-%{version}.tar.gz
-# Source0-md5: 3566167cc60ddeaad34e7d2e26ed4a58
+Source0: https://assets.nagios.com/downloads/nagioscore/releases/%{name}-%{version}.tar.gz
+# Source0-md5: b733310c87b8eb6ce0f7a5768829c94c
Source1: %{name}-apache.conf
Source2: %{name}.init
Source3: %{name}.sysconfig
-Source4: http://www.nagios.org/images/favicon.ico
-# Source4-md5: 1c4201c7da53d6c7e48251d3a9680449
-Source5: %{name}-config-20090908.tar.bz2
-# Source5-md5: 0ddb5a424c5618278ac6103f914b1f26
-Source6: %{name}-lighttpd.conf
+# http://git.pld-linux.org/projects/nagios-config/
+Source4: %{name}-config-20150805.tar.xz
+# Source4-md5: 16683172c72cc2c09662261c82abef40
+Source5: %{name}-lighttpd.conf
+Source6: http://www.google.com/mapfiles/shadow50.png
+# Source6-md5: eff99f302f21b95a900d321743fce72b
+Source7: http://www.google.com/mapfiles/marker.png
+# Source7-md5: edefef4bdfc29e1c953694651f05b466
+Source8: googlemap.js
+Source9: %{name}wall.php
Patch0: %{name}-resources.patch
Patch1: %{name}-iconv-in-libc.patch
Patch2: %{name}-webapps.patch
-Patch3: %{name}-cgi-http_charset.patch
+
Patch4: %{name}-cmd-typo.patch
Patch5: config.patch
-URL: http://www.nagios.org/
+Patch6: %{name}-googlemap.patch
+Patch7: %{name}-doc-usermacros.patch
+Patch8: archivelog-timeformat.patch
+
+Patch10: system-jquery.patch
+Patch11: do-not-fetch-rss.patch
+URL: https://www.nagios.org/projects/nagios-core/
BuildRequires: autoconf
BuildRequires: automake
+%{?with_doc:BuildRequires: doxygen}
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
%if %{with gd}
BuildRequires: gd-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
%endif
-BuildRequires: rpmbuild(macros) >= 1.268
-BuildRequires: sed >= 4.0
-BuildRequires: tar >= 1:1.15.1
+%if %{with tests}
+BuildRequires: perl-HTML-Lint
+BuildRequires: perl-Test-WWW-Mechanize-CGI
+%endif
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-common = %{version}-%{release}
-Requires: rc-scripts
+Requires: rc-scripts >= 0.4.5.5
Requires: sh-utils
Suggests: nagios-notify >= 0.13
+Suggests: nagios-plugin-check_load
+Suggests: nagios-plugin-check_ping
+Suggests: nagios-plugins
Provides: nagios-core
Obsoletes: netsaint
Conflicts: iputils-ping < 1:ss020124
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/%{name}
-%define _bindir %{_prefix}/sbin
-%define _sbindir %{_libdir}/%{name}/cgi
-%define _datadir %{_prefix}/share/%{name}
+%define cgidir %{_libdir}/%{name}/cgi
+%define htmldir %{_prefix}/share/%{name}
%define _localstatedir /var/lib/%{name}
+%define nagioshome %{_localstatedir}
%define _webapps /etc/webapps
%define _webapp %{name}
Summary: CGI webinterface for Nagios
Summary(pl.UTF-8): Interfejs WWW/CGI dla Nagiosa
Group: Applications/WWW
-# for dirs... and accessing local logs.
+# for dirs... and accessing local logs, nagios config
Requires: %{name} = %{version}-%{release}
Requires: %{name}-imagepaks
Requires: %{name}-theme
Requires: group(http)
+Requires: jquery
Requires: webapps
Requires: webserver
Requires: webserver(access)
Requires: webserver(auth)
Requires: webserver(cgi)
Requires: webserver(indexfile)
+Suggests: %{name}-doc
%description cgi
CGI webinterface for Nagios.
%description cgi -l pl.UTF-8
Interfejs CGI dla Nagiosa.
-%package theme-default
-Summary: Default Nagios theme
-Summary(pl.UTF-8): Domyślny motyw Nagiosa
+%package mrtggraphs
+Summary: MRTG Graphs: Nagios Statistics
+Group: Applications/Networking
+Requires: %{name} = %{version}-%{release}
+Provides: mrtg-start
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description mrtggraphs
+This pacakge graphs several Nagios statistics which can be useful for
+debugging and trending purposes. The nagiostats binary is used to
+generate the data.
+
+%package doc
+Summary: HTML Documentation for Nagios
+Group: Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+# does not require base
+
+%description doc
+HTML Documentation for Nagios.
+
+%package theme-classicui
+Summary: ClassicUI Nagios theme
Group: Applications/WWW
-Requires: nagios-cgi = %{version}-%{release}
+Requires: %{name}-cgi = %{version}-%{release}
Requires: webserver(php)
Provides: nagios-theme
Obsoletes: nagios-theme
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
-%description theme-default
+%description theme-classicui
Original theme from Nagios.
-%description theme-default -l pl.UTF-8
+%description theme-classicui -l pl.UTF-8
Oryginalny motyw z Nagiosa.
+%package theme-default
+Summary: Virtual package to handle Nagios theme migration
+Group: Applications/WWW
+Requires: nagios-theme
+Suggests: nagios-theme-classicui
+Suggests: nagios-theme-exfoliation
+Suggests: nagios-theme-nuvola
+Obsoletes: nagios-theme-default < 3.3.1-1.4
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description theme-default
+Virtual package to handle Nagios theme migration
+
%package devel
Summary: Include files that Nagios-related applications may compile against
Summary(pl.UTF-8): Pliki nagłówkowe, wykorzystywane przez aplikacje nagiosa
# doesn't require base
%description devel
-This package provides include files that Nagios-related applications
-may compile against.
+This package contains the header files, static libraries and
+development documentation for Nagios. If you are a NEB-module author
+or wish to write addons for Nagios using Nagios' own API's, you should
+install this package.
%description devel -l pl.UTF-8
Ten pakiet dostarcza pliki nagłówkowe, które mogą być wykorzystywane
aplicativos para o Nagios.
%prep
-%setup -q -a5
+%setup -qc -a4
+mv %{name}-%{version}/* .
+%undos cgi/*.c
+%undos include/*.h
+%undos base/*
%patch0 -p0
%patch1 -p1
%patch2 -p1
-%patch3 -p1
-%patch4 -p1
+
+#fixed
+#%patch4 -p1
%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+
+%patch10 -p1
+%patch11 -p1
-find -name .cvsignore | xargs rm
+find -name .cvsignore -o -name .gitignore | xargs rm
mv nagios-config-*/objects/*.cfg sample-config/template-object
mv nagios-config-*/*.cfg sample-config
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
sed -i -e '
- s,".*/var/rw/nagios.cmd,"%{_localstatedir}/rw/nagios.cmd,
+ s,".*/var/rw/%{name}.cmd,"%{_localstatedir}/rw/%{name}.cmd,
s,".*/libexec/eventhandlers,"%{_libdir}/%{name}/eventhandlers,
' $(find contrib/eventhandlers -type f)
sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE1} > apache.conf
-sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE6} > lighttpd.conf
+sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE5} > lighttpd.conf
# fixup cgi config
%{__sed} -i -e '
# kill trailing spaces
s, \+$,,
# use real paths
- s,/usr/local/nagios/share,@datadir@,g
+ s,/usr/local/%{name}/share,@datadir@,g
# we want all authorized users have default access
s,=nagiosadmin,=*,g
' sample-config/*.cfg.in
+#rm t/611cgistatus-hosturgencies.t
+
%build
cp -f /usr/share/automake/config.sub .
%{__aclocal}
%{__autoconf}
+%if %{with tests}
+cd tap
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+cd ..
+%endif
%configure \
CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+ --bindir=%{_sbindir} \
+ --sbindir=%{cgidir} \
+ --datadir=%{htmldir} \
--with-nagios-user=%{name} \
--with-nagios-grp=%{name} \
--with-command-user=%{name} \
%{__make} all
+%{?with_doc:%{__make} dox}
+
%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_webapps}/%{_webapp}} \
$RPM_BUILD_ROOT{%{_var}/log/%{name}/archives,%{_localstatedir}/rw} \
- $RPM_BUILD_ROOT%{_sysconfdir}/{plugins,objects} \
- $RPM_BUILD_ROOT%{_libdir}/%{name}/{eventhandlers,plugins} \
+ $RPM_BUILD_ROOT%{_sysconfdir}/{plugins,objects,nrpe.d} \
+ $RPM_BUILD_ROOT%{_libdir}/%{name}/{eventhandlers,plugins,brokers} \
%if "%{_lib}" != "lib"
$RPM_BUILD_ROOT%{_prefix}/lib/%{name}/{eventhandlers,plugins} \
%endif
-install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
-install include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
-
-%{__make} install-unstripped \
+%{__make} install-unstripped install-devel \
DESTDIR=$RPM_BUILD_ROOT \
INSTALL_OPTS="" \
INIT_OPTS="" \
COMMAND_OPTS=""
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-install %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}
+install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
# install templated configuration files
-for a in nagios.cfg resource.cfg commands.cfg contactgroups.cfg contacts.cfg templates.cfg timeperiods.cfg; do
- cp -a sample-config/$a $RPM_BUILD_ROOT%{_sysconfdir}
+for a in %{name}.cfg resource.cfg commands.cfg contactgroups.cfg contacts.cfg templates.cfg timeperiods.cfg; do
+ cp -p sample-config/$a $RPM_BUILD_ROOT%{_sysconfdir}
done
# webserver files
-install apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-install apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
-install lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
-cp -a sample-config/cgi.cfg $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
+cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
+cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+cp -p lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
+cp -p sample-config/cgi.cfg $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
+cp -p %{SOURCE6} $RPM_BUILD_ROOT%{htmldir}/images
+cp -p %{SOURCE7} $RPM_BUILD_ROOT%{htmldir}/images
+cp -p %{SOURCE8} $RPM_BUILD_ROOT%{htmldir}/images
+cp -p %{SOURCE9} $RPM_BUILD_ROOT%{htmldir}
> $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/passwd
echo 'nagios:' > $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/group
cp -a sample-config $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
find $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -name '*.in' | xargs rm
+# mrtg script
+install -d $RPM_BUILD_ROOT/etc/mrtg/conf.d
+cp -p sample-config/mrtg.cfg $RPM_BUILD_ROOT/etc/mrtg/conf.d/%{name}.cfg
+
# Object data/cache files
-for i in {objects.{cache,precache},{comments,downtime,retention,status}.dat,nagios.tmp}; do
+for i in {objects.{cache,precache},{retention,status}.dat,%{name}.{tmp,pid}}; do
> $RPM_BUILD_ROOT%{_localstatedir}/$i
done
-> $RPM_BUILD_ROOT%{_localstatedir}/rw/nagios.cmd
+> $RPM_BUILD_ROOT%{_localstatedir}/rw/%{name}.cmd
+> $RPM_BUILD_ROOT%{_localstatedir}/rw/%{name}.qh
+
+install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
+%{?with_doc:%{__cp} -a Documentation/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}}
%clean
rm -rf $RPM_BUILD_ROOT
%post
-for i in %{_localstatedir}/{objects.{cache,precache},{comments,downtime,retention,status}.dat}; do
+for i in %{_localstatedir}/{objects.{cache,precache},{retention,status}.dat}; do
[ ! -f $i ] && touch $i
chown root:nagios $i
chmod 664 $i
%pre common
# rename group netsaint -> nagios
-if [ "`getgid netsaint 2>/dev/null`" = "72" ]; then
+if [ "$(getgid netsaint 2>/dev/null)" = "72" ]; then
/usr/sbin/groupmod -n nagios netsaint
fi
# rename group nagios-data -> nagcmd
-if [ "`getgid nagios-data 2>/dev/null`" = "147" ]; then
+if [ "$(getgid nagios-data 2>/dev/null)" = "147" ]; then
/usr/sbin/groupmod -n nagcmd nagios-data
fi
%groupadd -g 72 nagios
%groupadd -g 147 -f nagcmd
-if [ -n "`id -u netsaint 2>/dev/null`" ] && [ "`id -u netsaint`" = "72" ]; then
- /usr/sbin/usermod -d %{_libdir}/nagios -l nagios -c "Nagios Daemon" -G nagcmd netsaint
+if [ -n "$(id -u netsaint 2>/dev/null)" ] && [ "$(id -u netsaint)" = "72" ]; then
+ /usr/sbin/usermod -d %{nagioshome} -l nagios -c "Nagios Daemon" -G nagcmd netsaint
+fi
+%useradd -u 72 -d %{nagioshome} -s /bin/false -c "Nagios Daemon" -g nagios -G nagcmd nagios
+# update nagios user home
+home=$(IFS=:; set -- $(getent passwd nagios); echo $6)
+if [ "$home" != %{nagioshome} ]; then
+ /usr/sbin/usermod -d %{nagioshome} nagios
fi
-%useradd -u 72 -d %{_libdir}/nagios -s /bin/false -c "Nagios Daemon" -g nagios -G nagcmd nagios
%postun common
if [ "$1" = "0" ]; then
mv -f %{_sysconfdir}/$a{.rpmsave,}
fi
done
-%{__sed} -i -e 's,^check_result_path=.*,check_result_path=%{_var}/spool/%{name}/checkresults,' %{_sysconfdir}/nagios.cfg
+%{__sed} -i -e 's,^check_result_path=.*,check_result_path=%{_var}/spool/%{name}/checkresults,' %{_sysconfdir}/%{name}.cfg
+
+
+%triggerpostun -- nagios-common < 4.0.8-2.2
+%banner -e %{name}-common <<EOF
+
+IMPORTANT: nagios user home changed to %{nagioshome}, you may need to move files from previous location %{_libdir}/%{name}.
+
+EOF
%files
%defattr(644,root,root,755)
%doc Changelog README* UPGRADING INSTALLING LICENSE
%attr(750,root,nagios) %dir %{_sysconfdir}/objects
-%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.cfg
+
+# leave main nagios config readable for -cgi.
+%attr(640,root,nagcmd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
+
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/commands.cfg
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/contactgroups.cfg
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/contacts.cfg
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/resource.cfg
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/templates.cfg
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timeperiods.cfg
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
-%attr(755,root,root) %{_bindir}/%{name}
-%attr(755,root,root) %{_bindir}/nagiostats
+%attr(755,root,root) %{_sbindir}/%{name}
+%attr(755,root,root) %{_sbindir}/nagiostats
+%dir %{_libdir}/%{name}/brokers
%attr(770,root,nagcmd) %dir %{_var}/log/%{name}
%attr(770,root,nagcmd) %dir %{_var}/log/%{name}/archives
%attr(770,root,nagcmd) %dir %{_localstatedir}
%attr(2770,root,nagcmd) %dir %{_localstatedir}/rw
-%attr(660,nagios,nagcmd) %ghost %{_localstatedir}/rw/nagios.cmd
+%attr(660,nagios,nagcmd) %ghost %{_localstatedir}/rw/%{name}.cmd
+%attr(660,nagios,nagcmd) %ghost %{_localstatedir}/rw/%{name}.qh
%attr(664,root,nagios) %ghost %{_localstatedir}/objects.cache
%attr(664,root,nagios) %ghost %{_localstatedir}/objects.precache
%attr(664,root,nagios) %ghost %{_localstatedir}/*.dat
%attr(664,root,nagios) %ghost %{_localstatedir}/%{name}.tmp
+%attr(664,root,nagios) %ghost %{_localstatedir}/%{name}.pid
-%dir %{_var}/spool
-%attr(770,root,nagios) %dir %{_var}/spool/%{name}
-%attr(770,root,nagios) %dir %{_var}/spool/%{name}/checkresults
+%attr(770,root,nagcmd) %dir %{_var}/spool/%{name}/checkresults
%{_examplesdir}/%{name}-%{version}
%defattr(644,root,root,755)
%attr(750,root,nagcmd) %dir %{_sysconfdir}
%attr(750,root,nagios) %dir %{_sysconfdir}/plugins
+%attr(750,root,nagios) %dir %{_sysconfdir}/nrpe.d
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{_libdir}/%{name}/eventhandlers
%dir %{_prefix}/lib/%{name}/eventhandlers
%endif
+%attr(770,root,nagcmd) %dir %{_var}/spool/%{name}
+
+%files mrtggraphs
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) /etc/mrtg/conf.d/%{name}.cfg
+
+%if %{with doc}
+%files doc
+%defattr(644,root,root,755)
+%{_docdir}/%{name}
+%endif
+
%files cgi
%defattr(644,root,root,755)
%dir %attr(750,root,http) %{_webapps}/%{_webapp}
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/cgi.cfg
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/passwd
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/group
-%dir %{_sbindir}
-%attr(755,root,root) %{_sbindir}/*.cgi
-
-%dir %{_datadir}
-%dir %{_datadir}/includes
-%dir %{_datadir}/images
-%dir %{_datadir}/stylesheets
-%{_datadir}/favicon.ico
-%{_datadir}/robots.txt
-%{_datadir}/contexthelp
-%{_datadir}/docs
-%{_datadir}/media
-%{_datadir}/ssi
+%dir %{cgidir}
+%attr(755,root,root) %{cgidir}/*.cgi
+
+%dir %{htmldir}
+%dir %{htmldir}/includes
+%dir %{htmldir}/images
+%dir %{htmldir}/stylesheets
+%{htmldir}/robots.txt
+%{htmldir}/contexthelp
+%{htmldir}/jsonquery.html
+%{htmldir}/media
+%{htmldir}/ssi
+%{htmldir}/images/favicon.ico
+%{htmldir}/images/marker.png
+%{htmldir}/images/shadow50.png
+%{htmldir}/nagioswall.php
+
+%{htmldir}/angularjs
+%{htmldir}/bootstrap-3.3.0
+%{htmldir}/d3
+%{htmldir}/spin
+%{htmldir}/graph-header.html
+%{htmldir}/histogram-form.html
+%{htmldir}/histogram-graph.html
+%{htmldir}/histogram-links.html
+%{htmldir}/histogram.html
+%{htmldir}/infobox.html
+%{htmldir}/map-directive.html
+%{htmldir}/map-form.html
+%{htmldir}/map-links.html
+%{htmldir}/map-popup.html
+%{htmldir}/trends-form.html
+%{htmldir}/trends-graph.html
+%{htmldir}/trends-host-yaxis.html
+%{htmldir}/trends-links.html
+%{htmldir}/trends-service-yaxis.html
+%{htmldir}/trends.html
+
+%files theme-classicui
+%defattr(644,root,root,755)
+%exclude %{htmldir}/nagioswall.php
+%{htmldir}/*.php
+%{htmldir}/includes/*
+%{htmldir}/images/*
+%exclude %{htmldir}/images/favicon.ico
+%exclude %{htmldir}/images/marker.png
+%exclude %{htmldir}/images/shadow50.png
+%{htmldir}/stylesheets/*
%files theme-default
%defattr(644,root,root,755)
-%{_datadir}/*.php
-%{_datadir}/includes/*
-%{_datadir}/images/*
-%{_datadir}/stylesheets/*
%files devel
%defattr(644,root,root,755)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
+%{_includedir}/%{name}/lib
+%{_libdir}/libnagios.a