2010-05-20 Ramon Novoa <rnovoa@artica.es>

* unix/pandora_agent_installer, unix/DEBIAN/control,
          unix/DEBIAN/make_deb_package.sh, unix/pandora_agent.spec,
          unix/pandora_agent, linux/DEBIAN/make_deb_package.sh,
          linux/pandora_agent.spec: Updated for the release of Pandora FMS 3.1 RC1.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2772 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2010-05-20 13:09:50 +00:00
parent 233e02d4b5
commit c637d5e73b
8 changed files with 21 additions and 13 deletions

View File

@ -1,3 +1,10 @@
2010-05-20 Ramon Novoa <rnovoa@artica.es>
* unix/pandora_agent_installer, unix/DEBIAN/control,
unix/DEBIAN/make_deb_package.sh, unix/pandora_agent.spec,
unix/pandora_agent, linux/DEBIAN/make_deb_package.sh,
linux/pandora_agent.spec: Updated for the release of Pandora FMS 3.1 RC1.
2010-05-20 Miguel de Dios <miguel.dedios@artica.es> 2010-05-20 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: fixed the permissions to DEBIAN temp package. * DEBIAN/make_deb_package.sh: fixed the permissions to DEBIAN temp package.

View File

@ -38,7 +38,7 @@ mkdir -p temp_package/usr/bin
echo "Make directory system tree for package." echo "Make directory system tree for package."
cp DEBIAN temp_package -R cp DEBIAN temp_package -R
chmod 777 -R temp_package/DEBIAN chmod 755 -R temp_package/DEBIAN
PANDORA_LOG=temp_package/var/log/pandora/pandora_agent.log PANDORA_LOG=temp_package/var/log/pandora/pandora_agent.log
PANDORA_BIN=temp_package/usr/bin/pandora_agent PANDORA_BIN=temp_package/usr/bin/pandora_agent

View File

@ -2,11 +2,11 @@
#Pandora FMS Linux Agent #Pandora FMS Linux Agent
# #
%define name pandorafms_agent %define name pandorafms_agent
%define version 3.0.0 %define version 3.1rc1
Summary: Pandora FMS Linux agent Summary: Pandora FMS Linux agent
Name: %{name} Name: %{name}
Version: %{version} Version: %{version}
Release: 4 Release: 1
License: GPL License: GPL
Vendor: ArticaST <http://www.artica.es> Vendor: ArticaST <http://www.artica.es>
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz

View File

@ -1,5 +1,5 @@
package: PandoraFMS-Agent package: PandoraFMS-Agent
Version: 3.1.0 Version: 3.1rc1
Architecture: all Architecture: all
Priority: optional Priority: optional
Section: admin Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
pandora_agent_version="3.1.0" pandora_version="3.1rc1"
echo "Test if you has the tools for to make the packages." echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
@ -38,7 +38,7 @@ mkdir -p temp_package/usr/bin
echo "Make directory system tree for package." echo "Make directory system tree for package."
cp DEBIAN temp_package -R cp DEBIAN temp_package -R
chmod 777 -R temp_package/DEBIAN chmod 755 -R temp_package/DEBIAN
PANDORA_LOG=temp_package/var/log/pandora/pandora_agent.log PANDORA_LOG=temp_package/var/log/pandora/pandora_agent.log
PANDORA_BIN=temp_package/usr/bin/pandora_agent PANDORA_BIN=temp_package/usr/bin/pandora_agent
@ -119,7 +119,7 @@ echo "END"
echo "Make the package \"Pandorafms console\"." echo "Make the package \"Pandorafms console\"."
dpkg-deb --build temp_package dpkg-deb --build temp_package
mv temp_package.deb pandorafms.agent_$pandora_agent_version.deb mv temp_package.deb pandorafms.agent_$pandora_version.deb
echo "Delete the \"temp_package\" temp dir for job." echo "Delete the \"temp_package\" temp dir for job."
rm -rf temp_package rm -rf temp_package

View File

@ -36,6 +36,7 @@ use constant AGENT_BUILD => '100222';
use constant TOTALMEMORY_CMDS => { use constant TOTALMEMORY_CMDS => {
# command # command
linux => ['cat /proc/meminfo | grep MemTotal: | awk \'{ print $2 }\''], linux => ['cat /proc/meminfo | grep MemTotal: | awk \'{ print $2 }\''],
solaris => ['MEM=`prtconf | grep Memory | awk \'{print $3}\'` bash -c \'echo $(( 1024 * $MEM ))\''],
hpux => ['swapinfo -t | grep memory | awk \'{print $2}\''] hpux => ['swapinfo -t | grep memory | awk \'{print $2}\'']
}; };
@ -59,7 +60,7 @@ use constant CPUUSAGE_CMDS => {
use constant PROC_CMDS => { use constant PROC_CMDS => {
# command, command name index, cpu usage index, memory usage index # command, command name index, cpu usage index, memory usage index
linux => ['ps aux', 10, 2, 5], linux => ['ps aux', 10, 2, 5],
solaris => ['prstat 1 1 | awk -F/ \'{print $1}\' | sed \'s/% / /g\' | sed \'s/K / /g\'', 9, 8, 2], solaris => ['prstat 1 1 | awk -F/ \'{print $1}\' | sed \'s/% / /g\' | sed \'s/K / /g\'', 10, 9, 3],
hpux => ['ps -elf', 15, -1, 9], hpux => ['ps -elf', 15, -1, 9],
aix => ['ps aux', 10, 2, 5], aix => ['ps aux', 10, 2, 5],
}; };
@ -70,7 +71,7 @@ use constant PART_CMDS => {
linux => ['df', 5, 1, 3], linux => ['df', 5, 1, 3],
solaris => ['df -k', 5, 1, 3], solaris => ['df -k', 5, 1, 3],
hpux => ['df -P', 5, 1, 3], hpux => ['df -P', 5, 1, 3],
aix => ['df -k', 6, 1, 2] aix => ['df -kP', 5, 1, 3]
}; };
# OS and OS version # OS and OS version

View File

@ -2,11 +2,11 @@
#Pandora FMS Linux Agent #Pandora FMS Linux Agent
# #
%define name pandorafms_agent_unix %define name pandorafms_agent_unix
%define version 3.0.0 %define version 3.1rc1
Summary: Pandora FMS Linux agent, PERL version Summary: Pandora FMS Linux agent, PERL version
Name: %{name} Name: %{name}
Version: %{version} Version: %{version}
Release: 2 Release: 1
License: GPL License: GPL
Vendor: ArticaST <http://www.artica.es> Vendor: ArticaST <http://www.artica.es>
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
@ -43,7 +43,7 @@ mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/ cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/ cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/ cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
# Checking old config file (if exists) # Checking old config file (if exists)
if [ -f /etc/pandora/pandora_agent.conf ] ; then if [ -f /etc/pandora/pandora_agent.conf ] ; then

View File

@ -188,7 +188,7 @@ install () {
chmod 755 $PANDORA_BASE$TENTACLE chmod 755 $PANDORA_BASE$TENTACLE
echo "Installing Tentacle Client manual" echo "Installing Tentacle Client manual"
if [ -e ../man/man1/tentacle_client.1.gz ] if [ -f ../man/man1/tentacle_client.1.gz ]
then then
cp ../man/man1/tentacle_client.1.gz $PANDORA_BASE/usr/share/man/man1 cp ../man/man1/tentacle_client.1.gz $PANDORA_BASE/usr/share/man/man1
else else