From 10d840e2f87324f73ae91ce25795b85438922bc5 Mon Sep 17 00:00:00 2001 From: marostegui Date: Thu, 14 Jun 2007 14:26:26 +0000 Subject: [PATCH] 2007-06-14 Manuel Arostegui * linux/INSTALL: Added how to use the new installer. * aix/pandora_agent_installer: Changed few things to make it works with the new name of the agent. * aix/pandora_agent: This is the old pandora_agent.sh which has been renamed to pandora_agent * aix/pandora_agent_daemon: Changed few thing to make it works with the new name of the agent. * aix/INSTALL: Added how to use the new installer. * aix/pandora_agent.sh: Renamed to pandora_agent. * hp-ux/pandora_agent: This is the old pandora_agent.sh which has been renamed to pandora_agent * hp-ux/pandora_agent_daemon: Changed few thing to make it works with the new name of the agent. * hp-ux/INSTALL: Added how to use the new installer. * hp-ux/pandora_agent.sh: Renamed to pandora_agent. * solaris/pandora_agent_installer: Changed few thing to make it works with the new name of the agent. * solaris/pandora_agent: This is the old pandora_agent.sh which has been renamed to pandora_agent * solaris/pandora_agent_daemon: Changed few thing to make it works with the new name of the agent. * solaris/INSTALL: Added how to use the new installer. * solaris/pandora_agent.sh: Renamed to pandora_agent. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@511 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 41 +++++++++++++++++++ pandora_agents/aix/INSTALL | 18 +++++++- .../aix/{pandora_agent.sh => pandora_agent} | 2 +- pandora_agents/aix/pandora_agent_daemon | 4 +- pandora_agents/aix/pandora_agent_installer | 8 ++-- pandora_agents/hp-ux/INSTALL | 4 +- .../hp-ux/{pandora_agent.sh => pandora_agent} | 2 +- pandora_agents/hp-ux/pandora_agent_daemon | 2 +- pandora_agents/linux/INSTALL | 15 +++++++ pandora_agents/solaris/INSTALL | 19 ++++++++- .../{pandora_agent.sh => pandora_agent} | 4 +- pandora_agents/solaris/pandora_agent_daemon | 2 +- .../solaris/pandora_agent_installer | 8 ++-- 13 files changed, 107 insertions(+), 22 deletions(-) rename pandora_agents/aix/{pandora_agent.sh => pandora_agent} (99%) rename pandora_agents/hp-ux/{pandora_agent.sh => pandora_agent} (98%) rename pandora_agents/solaris/{pandora_agent.sh => pandora_agent} (98%) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index 5d6db080e4..0fe61d31d6 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,44 @@ +2007-06-14 Manuel Arostegui + + * linux/INSTALL: Added how to use the new installer. + + * aix/pandora_agent_installer: Changed few things + to make it works with the new name of the agent. + + * aix/pandora_agent: This is the old pandora_agent.sh + which has been renamed to pandora_agent + + * aix/pandora_agent_daemon: Changed few thing to make it + works with the new name of the agent. + + * aix/INSTALL: Added how to use the new installer. + + * aix/pandora_agent.sh: Renamed to pandora_agent. + + * hp-ux/pandora_agent: This is the old pandora_agent.sh + which has been renamed to pandora_agent + + * hp-ux/pandora_agent_daemon: Changed few thing to make it + works with the new name of the agent. + + * hp-ux/INSTALL: Added how to use the new installer. + + * hp-ux/pandora_agent.sh: Renamed to pandora_agent. + + * solaris/pandora_agent_installer: Changed few thing to make it + works with the new name of the agent. + + * solaris/pandora_agent: This is the old pandora_agent.sh + which has been renamed to pandora_agent + + * solaris/pandora_agent_daemon: Changed few thing to make it + works with the new name of the agent. + + * solaris/INSTALL: Added how to use the new installer. + + * solaris/pandora_agent.sh: Renamed to pandora_agent. + + 2007-06-14 Manuel Arostegui * linux/pandora_agent_installer, pandora_agent_daemon: diff --git a/pandora_agents/aix/INSTALL b/pandora_agents/aix/INSTALL index 97cce28fb4..cd3a796620 100644 --- a/pandora_agents/aix/INSTALL +++ b/pandora_agents/aix/INSTALL @@ -14,7 +14,7 @@ pandora_user.conf A script file (the pandora agent) -pandora_agent.sh +pandora_agent And a startup script @@ -22,6 +22,20 @@ pandora_agent_daemon Pandora Agents use pandora_agent.conf to load initial data and load module data. Modules are atomic source of information. Please refer to Pandora Agents configuration - Quick Guide for more information. -pandora_user.conf is low level configuration. It will be executed in each iteration of pandora_agent.sh script. Please read it and see how it works. +pandora_user.conf is low level configuration. It will be executed in each iteration of pandora_agent script. Please read it and see how it works. There are a startup script called "pandora_agent_daemon" used to load Pandora Agent at boot time, and to stop ip. It depends on what type of Unix are you running. Test it before including it your init level script directory, it accepts start / stop / restart commands, like usual in Unix System V systems. + +Installing Pandora Agent. + +There's a installer for the pandora agent, which is called: +pandora_agent_installer + +You can easily install the PandoraFMS Agent using: +./pandora_agent_installer --install + +To uninstall the agent just use: +./pandora_agent_installer --uninstall + +If you want to reinstall the pandora agent you already installed in your system: +./pandora_agent_installer --force-install diff --git a/pandora_agents/aix/pandora_agent.sh b/pandora_agents/aix/pandora_agent similarity index 99% rename from pandora_agents/aix/pandora_agent.sh rename to pandora_agents/aix/pandora_agent index 1a3cbf996f..657f9dda3b 100755 --- a/pandora_agents/aix/pandora_agent.sh +++ b/pandora_agents/aix/pandora_agent @@ -22,7 +22,7 @@ then echo " " echo "FATAL ERROR: I need an argument to PANDORA AGENT home path" echo " " - echo " example: /usr/share/pandora_agent/pandora_agent.sh /etc/pandora " + echo " example: /usr/share/pandora_agent/pandora_agent /etc/pandora " echo " " exit else diff --git a/pandora_agents/aix/pandora_agent_daemon b/pandora_agents/aix/pandora_agent_daemon index c97631fc74..b5bfab01c9 100755 --- a/pandora_agents/aix/pandora_agent_daemon +++ b/pandora_agents/aix/pandora_agent_daemon @@ -9,11 +9,11 @@ # DOESNT WORK WHEN MAKES A CALL THAT USE @ CHARACTER # USE DIRECTLY PANDORA AGENT SCRIPT -# for example: pandora_agent.sh /usr/share/pandora_agent/ & +# for example: pandora_agent /usr/share/pandora_agent/ & PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PANDORA_PATH=/usr/share/pandora_agent/ -DAEMON=pandora_agent.sh +DAEMON=pandora_agent PIDFILE=/var/locks/pandora_agent.pid diff --git a/pandora_agents/aix/pandora_agent_installer b/pandora_agents/aix/pandora_agent_installer index f674bd1fba..d976b6447c 100755 --- a/pandora_agents/aix/pandora_agent_installer +++ b/pandora_agents/aix/pandora_agent_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION=1.0 -PANDORA_BIN=/usr/bin/pandora_agent.sh +PANDORA_BIN=/usr/bin/pandora_agent PANDORA_HOME=/usr/share/pandora_agent PANDORA_TEMP=/var/spool/pandora PANDORA_CFG=/etc/pandora @@ -31,7 +31,7 @@ then exit 1 fi -if [ ! -f "pandora_agent.sh" ] +if [ ! -f "pandora_agent" ] then echo " " echo "You need to place on main distribution directory before install" @@ -88,13 +88,13 @@ install () { # Copying agent and securing it echo "Copying Pandora Agent to $PANDORA_BIN..." - cp pandora_agent.sh $PANDORA_BIN + cp pandora_agent $PANDORA_BIN chmod 700 $PANDORA_BIN # Copying moduleS echo "Copying Pandora Agent configuration file to $PANDORA_HOME/pandora_agent.conf..." cp pandora_agent.conf $PANDORA_HOME - cp pandora_agent.sh $PANDORA_HOME + cp pandora_agent $PANDORA_HOME cp pandora_agent_daemon $PANDORA_HOME chmod 600 $PANDORA_HOME/pandora_agent.conf echo "Linking Pandora Agent configuration to $PANDORA_CFG/pandora_agent.conf..." diff --git a/pandora_agents/hp-ux/INSTALL b/pandora_agents/hp-ux/INSTALL index 97cce28fb4..3e806dc762 100644 --- a/pandora_agents/hp-ux/INSTALL +++ b/pandora_agents/hp-ux/INSTALL @@ -14,7 +14,7 @@ pandora_user.conf A script file (the pandora agent) -pandora_agent.sh +pandora_agent And a startup script @@ -22,6 +22,6 @@ pandora_agent_daemon Pandora Agents use pandora_agent.conf to load initial data and load module data. Modules are atomic source of information. Please refer to Pandora Agents configuration - Quick Guide for more information. -pandora_user.conf is low level configuration. It will be executed in each iteration of pandora_agent.sh script. Please read it and see how it works. +pandora_user.conf is low level configuration. It will be executed in each iteration of pandora_agent script. Please read it and see how it works. There are a startup script called "pandora_agent_daemon" used to load Pandora Agent at boot time, and to stop ip. It depends on what type of Unix are you running. Test it before including it your init level script directory, it accepts start / stop / restart commands, like usual in Unix System V systems. diff --git a/pandora_agents/hp-ux/pandora_agent.sh b/pandora_agents/hp-ux/pandora_agent similarity index 98% rename from pandora_agents/hp-ux/pandora_agent.sh rename to pandora_agents/hp-ux/pandora_agent index 00dee895ad..8fdd79f5b8 100644 --- a/pandora_agents/hp-ux/pandora_agent.sh +++ b/pandora_agents/hp-ux/pandora_agent @@ -22,7 +22,7 @@ then echo " " echo "FATAL ERROR: I need an argument to PANDORA AGENT home path" echo " " - echo " example: /usr/share/pandora_ng/pandora_agent.sh /usr/share/pandora_ng " + echo " example: /usr/share/pandora_ng/pandora_agent /usr/share/pandora_ng " echo " " exit else diff --git a/pandora_agents/hp-ux/pandora_agent_daemon b/pandora_agents/hp-ux/pandora_agent_daemon index d283f5e048..ede55e9ba2 100644 --- a/pandora_agents/hp-ux/pandora_agent_daemon +++ b/pandora_agents/hp-ux/pandora_agent_daemon @@ -6,7 +6,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PANDORA_PATH=/usr/share/pandora_agent/ -DAEMON=pandora_agent.sh +DAEMON=pandora_agent PIDFILE=/var/run/pandora_agent.pid diff --git a/pandora_agents/linux/INSTALL b/pandora_agents/linux/INSTALL index 97cce28fb4..2f240d6e81 100644 --- a/pandora_agents/linux/INSTALL +++ b/pandora_agents/linux/INSTALL @@ -25,3 +25,18 @@ Pandora Agents use pandora_agent.conf to load initial data and load module data. pandora_user.conf is low level configuration. It will be executed in each iteration of pandora_agent.sh script. Please read it and see how it works. There are a startup script called "pandora_agent_daemon" used to load Pandora Agent at boot time, and to stop ip. It depends on what type of Unix are you running. Test it before including it your init level script directory, it accepts start / stop / restart commands, like usual in Unix System V systems. + +Installing Pandora Agent. +========================= +There's a installer for the pandora agent, which is called: +pandora_agent_installer + +You can easily install the PandoraFMS Agent using: +./pandora_agent_installer --install + +To uninstall the agent just use: +./pandora_agent_installer --uninstall + +If you want to reinstall the pandora agent you already installed in your system: +./pandora_agent_installer --force-install + diff --git a/pandora_agents/solaris/INSTALL b/pandora_agents/solaris/INSTALL index 97cce28fb4..611e308657 100644 --- a/pandora_agents/solaris/INSTALL +++ b/pandora_agents/solaris/INSTALL @@ -14,7 +14,7 @@ pandora_user.conf A script file (the pandora agent) -pandora_agent.sh +pandora_agent And a startup script @@ -22,6 +22,21 @@ pandora_agent_daemon Pandora Agents use pandora_agent.conf to load initial data and load module data. Modules are atomic source of information. Please refer to Pandora Agents configuration - Quick Guide for more information. -pandora_user.conf is low level configuration. It will be executed in each iteration of pandora_agent.sh script. Please read it and see how it works. +pandora_user.conf is low level configuration. It will be executed in each iteration of pandora_agent script. Please read it and see how it works. There are a startup script called "pandora_agent_daemon" used to load Pandora Agent at boot time, and to stop ip. It depends on what type of Unix are you running. Test it before including it your init level script directory, it accepts start / stop / restart commands, like usual in Unix System V systems. + +Installing Pandora Agent. +========================= +There's a installer for the pandora agent, which is called: +pandora_agent_installer + +You can easily install the PandoraFMS Agent using: +./pandora_agent_installer --install + +To uninstall the agent just use: +./pandora_agent_installer --uninstall + +If you want to reinstall the pandora agent you already installed in your system: +./pandora_agent_installer --force-install + diff --git a/pandora_agents/solaris/pandora_agent.sh b/pandora_agents/solaris/pandora_agent similarity index 98% rename from pandora_agents/solaris/pandora_agent.sh rename to pandora_agents/solaris/pandora_agent index 8fd6695617..d3ded3ac53 100755 --- a/pandora_agents/solaris/pandora_agent.sh +++ b/pandora_agents/solaris/pandora_agent @@ -4,7 +4,7 @@ # v1.2 # (c) Sancho Lerena 2003-2006, slerena@gmail.com # Este codigo esta licenciado bajo la licencia GPL 2.0 o posterior -# This code is licenced under GPL 2.0 licence or later +# This code is licenced under GPL 2.0 licence # ********************************************************************** AGENT_VERSION="1.3" @@ -22,7 +22,7 @@ then echo " " echo "FATAL ERROR: I need an argument to PANDORA AGENT home path" echo " " - echo " example: /usr/share/pandora_agent/pandora_agent.sh /etc/pandora " + echo " example: /usr/share/pandora_agent/pandora_agent /etc/pandora " echo " " exit else diff --git a/pandora_agents/solaris/pandora_agent_daemon b/pandora_agents/solaris/pandora_agent_daemon index b6d51b4184..36139ffe42 100755 --- a/pandora_agents/solaris/pandora_agent_daemon +++ b/pandora_agents/solaris/pandora_agent_daemon @@ -7,7 +7,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PANDORA_PATH=/usr/share/pandora_agent/ -DAEMON=pandora_agent.sh +DAEMON=pandora_agent PIDFILE=/var/run/pandora_agent.pid diff --git a/pandora_agents/solaris/pandora_agent_installer b/pandora_agents/solaris/pandora_agent_installer index ac0a95c59e..d40e2cee3d 100755 --- a/pandora_agents/solaris/pandora_agent_installer +++ b/pandora_agents/solaris/pandora_agent_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION=1.0 -PANDORA_BIN=/usr/bin/pandora_agent.sh +PANDORA_BIN=/usr/bin/pandora_agent PANDORA_HOME=/usr/share/pandora_agent PANDORA_TEMP=/var/spool/pandora PANDORA_CFG=/etc/pandora @@ -31,7 +31,7 @@ then exit 1 fi -if [ ! -f "pandora_agent.sh" ] +if [ ! -f "pandora_agent" ] then echo " " echo "You need to place on main distribution directory before install" @@ -88,13 +88,13 @@ install () { # Copying agent and securing it echo "Copying Pandora Agent to $PANDORA_BIN..." - cp pandora_agent.sh $PANDORA_BIN + cp pandora_agent $PANDORA_BIN chmod 700 $PANDORA_BIN # Copying moduleS echo "Copying Pandora Agent configuration file to $PANDORA_HOME/pandora_agent.conf..." cp pandora_agent.conf $PANDORA_HOME - cp pandora_agent.sh $PANDORA_HOME + cp pandora_agent $PANDORA_HOME cp pandora_agent_daemon $PANDORA_HOME chmod 600 $PANDORA_HOME/pandora_agent.conf echo "Linking Pandora Agent configuration to $PANDORA_CFG/pandora_agent.conf..."