2009-11-04 Raul Mateos <raulofpandora@gmail.com>

* pandora_agent_daemon: Changed "Uso" string to "Usage" string. Unify headers
	and customized according to each UNIX/Linux versions.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2084 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2009-11-04 18:30:18 +00:00
parent f999cc1564
commit 03166964b4
12 changed files with 64 additions and 50 deletions

View File

@ -1,3 +1,8 @@
2009-11-04 Raul Mateos <raulofpandora@gmail.com>
* 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 <miguel.dedios@artica.es> 2009-11-04 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: move the script to make the deb package into * 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 the DEBIAN and change some things into the sourcecode for the directory

View File

@ -1,8 +1,9 @@
#!/usr/bin/ksh #!/usr/bin/ksh
# Startup Script for Pandora Agent
# Sancho Lerena, <slerena@gmail.com> # Pandora FMS AIX Agent, startup script
# Version para AIX # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.3 # v1.3.1 Build 091104
# http://www.pandorafms.com
# DONT USE WITH OPENSSH # DONT USE WITH OPENSSH
@ -55,7 +56,7 @@ case "$1" in
$0 start $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 exit 1
esac esac

View File

@ -1,8 +1,11 @@
#!/bin/csh #!/bin/csh
# Script de arranque de Agente Pandora
# Sancho Lerena, <slerena@gmail.com> # Pandora FMS IPSO/BSD, startup script
# Version para IPSO/BSD (csh) # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# version 1.1 # IPSO/BSD (csh)
# v1.2 Build 091104
# http://www.pandorafms.com
set PANDORA_PATH=/opt/pandora_agent set PANDORA_PATH=/opt/pandora_agent
set DAEMON=pandora_agent.sh set DAEMON=pandora_agent.sh
@ -35,7 +38,7 @@ switch ($1)
$0 start $0 start
breaksw breaksw
default: default:
echo "Uso: ./pandora_agent {start|stop|restart|force-reload}" echo "Usage: ./pandora_agent {start|stop|restart|force-reload}"
breaksw breaksw
endsw endsw

View File

@ -1,8 +1,9 @@
#!/bin/sh #!/bin/sh
# Script de arranque de Agente Pandora
# Sancho Lerena, <slerena@gmail.com> # Pandora FMS HP-UX Agent, startup script
# Version para HPUX # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.1 # v1.2 Build 091104
# http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PANDORA_PATH=/usr/share/pandora_agent/ PANDORA_PATH=/usr/share/pandora_agent/
@ -42,7 +43,7 @@ case "$1" in
$0 start $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 exit 1
esac esac

View File

@ -4,7 +4,7 @@
# Copyright (c) 2006-2009 Artica ST, <info@artica.es> # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# Linux Version (generic), for SuSe and Debian/Ubuntu. # Linux Version (generic), for SuSe and Debian/Ubuntu.
# other Linux distros could not work properly without modifications # other Linux distros could not work properly without modifications
# v3.0 Build 090810 # v3.0.1 Build 091104
# http://www.pandorafms.com # http://www.pandorafms.com
### BEGIN INIT INFO ### 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 exit 1
esac esac

View File

@ -1,8 +1,9 @@
#!/bin/sh #!/bin/sh
# Script de arranque de Agente Pandora
# Sancho Lerena, <slerena@gmail.com> # Pandora FMS Generic Agent, startup script
# Version para Linux (generico) # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.0.3 # v1.0.4 Build 091104
# http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PANDORA_PATH=/usr/share/pandora_agent_sim PANDORA_PATH=/usr/share/pandora_agent_sim
@ -36,7 +37,7 @@ case "$1" in
$0 start $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 exit 1
esac esac

View File

@ -1,8 +1,10 @@
#!/bin/sh #!/bin/sh
# Init script for Pandora FMS agent
# Generic GNU/Linux version # Pandora FMS openWRT Agent, startup script
# Sancho Lerena, <slerena@gmail.com> # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.3 # openWRT (Generic)
# v1.3.1 Build 091104
# http://www.pandorafms.com
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: pandora_agent # Provides: pandora_agent
@ -60,7 +62,7 @@ case "$1" in
$0 start $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 exit 1
esac esac

View File

@ -1,8 +1,10 @@
#!/usr/bin/ksh #!/usr/bin/ksh
# Startup Script for Pandora Agent
# Sancho Lerena, <slerena@gmail.com> # Pandora FMS Solaris Agent, startup script
# Version para Solaris # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.3 # Solaris Version (generic)
# v1.3.1 Build 091104
# http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
@ -47,7 +49,7 @@ case "$1" in
$0 start $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 exit 1
esac esac

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
# Pandora FMS Linux Agent, startup script # Pandora FMS AIX Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es> # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# AIX 5.x Version (generic), # AIX 5.x Version (generic),
# v3.0 Build 090810 # v3.0.1 Build 091104
# http://www.pandorafms.com # http://www.pandorafms.com
@ -12,7 +12,7 @@ PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log 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 { function pidof_pandora {
PANDORA_PID=`ps -Alf | grep $DAEMON | grep -v grep | head -1 | awk '{ print $4 }'` 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 exit 1
esac esac

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
# Pandora FMS Linux Agent, startup script # Pandora FMS HP-UX Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es> # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# AIX 5.x Version (generic), # HP-UX Version (generic)
# v3.0 Build 090810 # v3.0.1 Build 091104
# http://www.pandorafms.com # http://www.pandorafms.com
@ -12,7 +12,7 @@ PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log 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 { function pidof_pandora {
PANDORA_PID=`ps -Af | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'` 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 exit 1
esac esac

View File

@ -4,7 +4,7 @@
# Copyright (c) 2006-2009 Artica ST, <info@artica.es> # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# Linux Version (generic), for SuSe and Debian/Ubuntu. # Linux Version (generic), for SuSe and Debian/Ubuntu.
# other Linux distros could not work properly without modifications # other Linux distros could not work properly without modifications
# v3.0 Build 090810 # v3.0.1 Build 091104
# http://www.pandorafms.com # http://www.pandorafms.com
### BEGIN INIT INFO ### BEGIN INIT INFO
@ -21,7 +21,7 @@ PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log 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 () ( function pidof_pandora () (
COLUMNS=250 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 exit 1
esac esac

View File

@ -1,18 +1,17 @@
#!/bin/sh #!/bin/sh
# Pandora FMS Linux Agent, startup script # Pandora FMS SunOS Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es> # Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# AIX 5.x Version (generic), # SunOS Version (generic)
# v3.0 Build 090810 # v3.0.1 Build 091104
# http://www.pandorafms.com # http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PANDORA_PATH=/etc/pandora PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log 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 { function pidof_pandora {
PANDORA_PID=`ps -Af | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'` 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 exit 1
esac esac