diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index d5ff039cc8..4e683e5ef2 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,8 @@ +2009-11-04 Raul Mateos + + * pandora_agent_daemon: Changed "Uso" string to "Usage" string. Unify headers + and customized according to each UNIX/Linux versions. + 2009-11-04 Miguel de Dios * DEBIAN/make_deb_package.sh: move the script to make the deb package into the DEBIAN and change some things into the sourcecode for the directory diff --git a/pandora_agents/aix/pandora_agent_daemon b/pandora_agents/aix/pandora_agent_daemon index b5bfab01c9..e463948834 100755 --- a/pandora_agents/aix/pandora_agent_daemon +++ b/pandora_agents/aix/pandora_agent_daemon @@ -1,8 +1,9 @@ #!/usr/bin/ksh -# Startup Script for Pandora Agent -# Sancho Lerena, -# Version para AIX -# v1.3 + +# Pandora FMS AIX Agent, startup script +# Copyright (c) 2006-2009 Artica ST, +# v1.3.1 Build 091104 +# http://www.pandorafms.com # DONT USE WITH OPENSSH @@ -55,7 +56,7 @@ case "$1" in $0 start ;; *) - echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" + echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" exit 1 esac diff --git a/pandora_agents/bsd-ipso/pandora_agent_daemon b/pandora_agents/bsd-ipso/pandora_agent_daemon index 4f4f1a4191..f0b4370731 100755 --- a/pandora_agents/bsd-ipso/pandora_agent_daemon +++ b/pandora_agents/bsd-ipso/pandora_agent_daemon @@ -1,8 +1,11 @@ #!/bin/csh -# Script de arranque de Agente Pandora -# Sancho Lerena, -# Version para IPSO/BSD (csh) -# version 1.1 + +# Pandora FMS IPSO/BSD, startup script +# Copyright (c) 2006-2009 Artica ST, +# IPSO/BSD (csh) +# v1.2 Build 091104 +# http://www.pandorafms.com + set PANDORA_PATH=/opt/pandora_agent set DAEMON=pandora_agent.sh @@ -35,7 +38,7 @@ switch ($1) $0 start breaksw default: - echo "Uso: ./pandora_agent {start|stop|restart|force-reload}" + echo "Usage: ./pandora_agent {start|stop|restart|force-reload}" breaksw endsw diff --git a/pandora_agents/hp-ux/pandora_agent_daemon b/pandora_agents/hp-ux/pandora_agent_daemon index ede55e9ba2..183dfcb8ff 100644 --- a/pandora_agents/hp-ux/pandora_agent_daemon +++ b/pandora_agents/hp-ux/pandora_agent_daemon @@ -1,8 +1,9 @@ #!/bin/sh -# Script de arranque de Agente Pandora -# Sancho Lerena, -# Version para HPUX -# v1.1 + +# Pandora FMS HP-UX Agent, startup script +# Copyright (c) 2006-2009 Artica ST, +# v1.2 Build 091104 +# http://www.pandorafms.com PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PANDORA_PATH=/usr/share/pandora_agent/ @@ -42,7 +43,7 @@ case "$1" in $0 start ;; *) - echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" + echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" exit 1 esac diff --git a/pandora_agents/linux/pandora_agent_daemon b/pandora_agents/linux/pandora_agent_daemon index 454e402d11..ad0d048b30 100755 --- a/pandora_agents/linux/pandora_agent_daemon +++ b/pandora_agents/linux/pandora_agent_daemon @@ -4,7 +4,7 @@ # Copyright (c) 2006-2009 Artica ST, # Linux Version (generic), for SuSe and Debian/Ubuntu. # other Linux distros could not work properly without modifications -# v3.0 Build 090810 +# v3.0.1 Build 091104 # http://www.pandorafms.com ### BEGIN INIT INFO @@ -80,7 +80,7 @@ case "$1" in ;; *) - echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" + echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" exit 1 esac diff --git a/pandora_agents/meta_agent/pandora_agent_daemon b/pandora_agents/meta_agent/pandora_agent_daemon index cab30d1f62..205f9e2116 100755 --- a/pandora_agents/meta_agent/pandora_agent_daemon +++ b/pandora_agents/meta_agent/pandora_agent_daemon @@ -1,8 +1,9 @@ #!/bin/sh -# Script de arranque de Agente Pandora -# Sancho Lerena, -# Version para Linux (generico) -# v1.0.3 + +# Pandora FMS Generic Agent, startup script +# Copyright (c) 2006-2009 Artica ST, +# v1.0.4 Build 091104 +# http://www.pandorafms.com PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PANDORA_PATH=/usr/share/pandora_agent_sim @@ -36,7 +37,7 @@ case "$1" in $0 start ;; *) - echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" + echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" exit 1 esac diff --git a/pandora_agents/openWRT/contrib/pandora_agent_daemon b/pandora_agents/openWRT/contrib/pandora_agent_daemon index 8499d34752..d6b18e6c37 100755 --- a/pandora_agents/openWRT/contrib/pandora_agent_daemon +++ b/pandora_agents/openWRT/contrib/pandora_agent_daemon @@ -1,8 +1,10 @@ #!/bin/sh -# Init script for Pandora FMS agent -# Generic GNU/Linux version -# Sancho Lerena, -# v1.3 + +# Pandora FMS openWRT Agent, startup script +# Copyright (c) 2006-2009 Artica ST, +# openWRT (Generic) +# v1.3.1 Build 091104 +# http://www.pandorafms.com ### BEGIN INIT INFO # Provides: pandora_agent @@ -60,7 +62,7 @@ case "$1" in $0 start ;; *) - echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|force-reload}" + echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|force-reload}" exit 1 esac diff --git a/pandora_agents/solaris/pandora_agent_daemon b/pandora_agents/solaris/pandora_agent_daemon index 36139ffe42..63a0774ee4 100755 --- a/pandora_agents/solaris/pandora_agent_daemon +++ b/pandora_agents/solaris/pandora_agent_daemon @@ -1,8 +1,10 @@ #!/usr/bin/ksh -# Startup Script for Pandora Agent -# Sancho Lerena, -# Version para Solaris -# v1.3 + +# Pandora FMS Solaris Agent, startup script +# Copyright (c) 2006-2009 Artica ST, +# Solaris Version (generic) +# v1.3.1 Build 091104 +# http://www.pandorafms.com PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin @@ -47,7 +49,7 @@ case "$1" in $0 start ;; *) - echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" + echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}" exit 1 esac diff --git a/pandora_agents/unix/AIX/pandora_agent_daemon b/pandora_agents/unix/AIX/pandora_agent_daemon index 29054126af..03c8002205 100755 --- a/pandora_agents/unix/AIX/pandora_agent_daemon +++ b/pandora_agents/unix/AIX/pandora_agent_daemon @@ -1,9 +1,9 @@ #!/bin/sh -# Pandora FMS Linux Agent, startup script +# Pandora FMS AIX Agent, startup script # Copyright (c) 2006-2009 Artica ST, # AIX 5.x Version (generic), -# v3.0 Build 090810 +# v3.0.1 Build 091104 # http://www.pandorafms.com @@ -12,7 +12,7 @@ PANDORA_PATH=/etc/pandora DAEMON=/usr/bin/pandora_agent LOGFILE=/var/log/pandora_agent.log -# This function replace pidof, not working in the same way in different linux distros +# This function replace pidof, not working in the same way in different UNIX function pidof_pandora { PANDORA_PID=`ps -Alf | grep $DAEMON | grep -v grep | head -1 | awk '{ print $4 }'` @@ -70,7 +70,7 @@ case "$1" in ;; *) - echo "Uso: /etc/rc.pandora_agent_daemon {start|stop|restart|status|force-reload}" + echo "Usage: /etc/rc.pandora_agent_daemon {start|stop|restart|status|force-reload}" exit 1 esac diff --git a/pandora_agents/unix/HPUX/pandora_agent_daemon b/pandora_agents/unix/HPUX/pandora_agent_daemon index 72d81cfa2f..adc04e496f 100755 --- a/pandora_agents/unix/HPUX/pandora_agent_daemon +++ b/pandora_agents/unix/HPUX/pandora_agent_daemon @@ -1,9 +1,9 @@ #!/bin/sh -# Pandora FMS Linux Agent, startup script +# Pandora FMS HP-UX Agent, startup script # Copyright (c) 2006-2009 Artica ST, -# AIX 5.x Version (generic), -# v3.0 Build 090810 +# HP-UX Version (generic) +# v3.0.1 Build 091104 # http://www.pandorafms.com @@ -12,7 +12,7 @@ PANDORA_PATH=/etc/pandora DAEMON=/usr/bin/pandora_agent LOGFILE=/var/log/pandora_agent.log -# This function replace pidof, not working in the same way in different linux distros +# This function replace pidof, not working in the same way in different UNIX function pidof_pandora { PANDORA_PID=`ps -Af | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'` @@ -70,7 +70,7 @@ case "$1" in ;; *) - echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" + echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" exit 1 esac diff --git a/pandora_agents/unix/Linux/pandora_agent_daemon b/pandora_agents/unix/Linux/pandora_agent_daemon index 454e402d11..5cd2595ecc 100755 --- a/pandora_agents/unix/Linux/pandora_agent_daemon +++ b/pandora_agents/unix/Linux/pandora_agent_daemon @@ -4,7 +4,7 @@ # Copyright (c) 2006-2009 Artica ST, # Linux Version (generic), for SuSe and Debian/Ubuntu. # other Linux distros could not work properly without modifications -# v3.0 Build 090810 +# v3.0.1 Build 091104 # http://www.pandorafms.com ### BEGIN INIT INFO @@ -21,7 +21,7 @@ PANDORA_PATH=/etc/pandora DAEMON=/usr/bin/pandora_agent LOGFILE=/var/log/pandora_agent.log -# This function replace pidof, not working in the same way in different linux distros +# This function replace pidof, not working in the same way in different Linux distros function pidof_pandora () ( COLUMNS=250 @@ -80,7 +80,7 @@ case "$1" in ;; *) - echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" + echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" exit 1 esac diff --git a/pandora_agents/unix/SunOS/pandora_agent_daemon b/pandora_agents/unix/SunOS/pandora_agent_daemon index 72d81cfa2f..18223534eb 100755 --- a/pandora_agents/unix/SunOS/pandora_agent_daemon +++ b/pandora_agents/unix/SunOS/pandora_agent_daemon @@ -1,18 +1,17 @@ #!/bin/sh -# Pandora FMS Linux Agent, startup script +# Pandora FMS SunOS Agent, startup script # Copyright (c) 2006-2009 Artica ST, -# AIX 5.x Version (generic), -# v3.0 Build 090810 +# SunOS Version (generic) +# v3.0.1 Build 091104 # http://www.pandorafms.com - PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PANDORA_PATH=/etc/pandora DAEMON=/usr/bin/pandora_agent LOGFILE=/var/log/pandora_agent.log -# This function replace pidof, not working in the same way in different linux distros +# This function replace pidof, not working in the same way in different UNIX function pidof_pandora { PANDORA_PID=`ps -Af | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'` @@ -70,7 +69,7 @@ case "$1" in ;; *) - echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" + echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}" exit 1 esac