debian/0000775000000000000000000000000012203116150007157 5ustar debian/compat0000664000000000000000000000000212203116150010355 0ustar 8 debian/rules0000775000000000000000000000104212203116150010234 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk DESTDIR = $(CURDIR)/debian/$(cdbs_curpkg) install/pandorafms-agent:: install -D -m755 pandora_agent $(DESTDIR)/usr/sbin/pandora_agent install -D -m755 tentacle_client $(DESTDIR)/usr/bin/tentacle_client install -D -m755 pandora_agent_exec $(DESTDIR)/usr/share/pandorafms/agent/pandora_agent_exec for f in plugins/*; do install -D -m755 $$f $(DESTDIR)/usr/share/pandorafms/agent/$$f; done install -D -m644 Linux/pandora_agent.conf $(DESTDIR)/etc/pandorafms/pandora_agent.conf debian/pandorafms-agent.docs0000664000000000000000000000000712203116150013254 0ustar README debian/changelog0000664000000000000000000000067012203116150011034 0ustar pandorafms-agent (4.1-1) unstable; urgency=low * New upstream release. * Fix plugin path. * Bump Standards-Version: 3.9.4. * Add shebang to plugins * Fix init.d script to prevent lintian warnings. -- Taku YASUI Tue, 13 Aug 2013 00:46:05 +0900 pandorafms-agent (4.0.1-1) unstable; urgency=low * Initial release (closes: #417509, #473868) -- Taku YASUI Thu, 10 May 2012 00:58:53 +0900 debian/pandorafms-agent.dirs0000664000000000000000000000005412203116150013267 0ustar var/lib/pandorafms/agent var/log/pandorafms debian/pandorafms-agent.init.d0000664000000000000000000000750012203116150013516 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: pandorafms-agent # Required-Start: $network $local_fs $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Pandora FMS agent # Description: Pandora FMS agent (linux) ### END INIT INFO # Author: Taku YASUI # Pandora FMS Configuration PANDORA_PATH=/var/lib/pandorafms/agent # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC=pandorafms-agent # Introduce a short description here NAME=pandorafms-agent # Introduce the short server's name here DAEMON=/usr/sbin/pandora_agent # Introduce the server's location here DAEMON_ARGS="$PANDORA_PATH" # Arguments to run the daemon with PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x $DAEMON ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started pidof -x $DAEMON > /dev/null && return 1 start-stop-daemon --start --quiet \ --background --pidfile $PIDFILE --make-pidfile \ --exec $DAEMON -- $DAEMON_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred pidof -x $DAEMON > /dev/null || return 1 kill `pidof -x $DAEMON` for i in `seq 1 5`; do if pidof -x $DAEMON > /dev/null; then sleep 1 else rm -f $PIDFILE return 0 fi done kill -9 `pidof -x $DAEMON` for i in `seq 1 5`; do if pidof -x $DAEMON > /dev/null; then sleep 1 else rm -f $PIDFILE return 0 fi done return 2 } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; #reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # #log_daemon_msg "Reloading $DESC" "$NAME" #do_reload #log_end_msg $? #;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/control0000664000000000000000000000261412203116150010565 0ustar Source: pandorafms-agent Section: admin Priority: extra Maintainer: Taku YASUI Build-Depends: debhelper (>= 8), cdbs, quilt Standards-Version: 3.9.4 Homepage: http://pandorafms.org/ Vcs-Git: git://git.debian.org/collab-maint/pandorafms-agent.git Vcs-Browser: http://git.debian.org/?p=collab-maint/pandorafms-agent.git;a=summary Package: pandorafms-agent Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, unzip, libterm-readkey-perl, libio-socket-ssl-perl Description: Pandora FMS - The Flexible Monitoring System (agent) Pandora FMS is a monitoring application to watch systems and applications. Pandora FMS allows you to know the status of any element of your bussiness systems. Pandora FMS watches your hardware, your software, your multilayer system and, of course, your Operating System. Pandora FMS can detect a network interface down or the movement of any NASDAQ new technology market value. If you wish, Pandora FMS can send a SMS message when your system or your application fails... or when Google stock value drops below 330 US$. . Pandora FMS will adjust, like an octopus, to your systems and requirements, because it has been designed to be open, modular, multiplattform and easy to customize. Pandora FMS is developed for system administrators. . Pandora FMS Agent is a agent program for Pandora FMS. You should install this package into every target servers. debian/patches/0000775000000000000000000000000012203116150010606 5ustar debian/patches/series0000664000000000000000000000004012203116150012015 0ustar 010_change_path 020_add_shebang debian/patches/010_change_path0000664000000000000000000000203612203116150013353 0ustar --- a/pandora_agent +++ b/pandora_agent @@ -145,7 +145,7 @@ 'autotime' => 0, 'temporal_min_size' => 1, 'timezone_offset' => 0, - 'pandora_exec' => 'pandora_agent_exec', + 'pandora_exec' => '/usr/share/pandorafms/agent/pandora_agent_exec', 'agent_threads' => 1, 'udp_server_port' => 41122, 'udp_server_auth_address' => '0.0.0.0', --- a/Linux/pandora_agent.conf +++ b/Linux/pandora_agent.conf @@ -8,9 +8,9 @@ # ================== server_ip localhost -server_path /var/spool/pandora/data_in +server_path /var/spool/pandorafms/data_in temporal /tmp -logfile /var/log/pandora/pandora_agent.log +logfile /var/log/pandorafms/pandora_agent.log #include /etc/pandora/pandora_agent_alt.conf #broker_agent name_agent @@ -143,7 +143,7 @@ # always copied to the secondary server. #secondary_mode on_error #secondary_server_ip localhost -#secondary_server_path /var/spool/pandora/data_in +#secondary_server_path /var/spool/pandorafms/data_in #secondary_server_port 41121 #secondary_transfer_mode tentacle #secondary_server_pwd mypassword debian/patches/020_add_shebang0000664000000000000000000000047212203116150013334 0ustar --- a/plugins/top.sh +++ b/plugins/top.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo ""; echo "top"; echo "generic_data_string"; --- a/plugins/who.sh +++ b/plugins/who.sh @@ -1,3 +1,5 @@ +#!/bin/sh + echo ""; echo "who"; echo "generic_data_string"; debian/README.Debian0000664000000000000000000000031512203116150011217 0ustar pandorafms-agent for Debian --------------------------- Before starting pandorafms-agent, please edit /etc/pandorafms/pandora_agent.conf -- Taku YASUI Thu, 10 May 2012 00:58:53 +0900 debian/pandorafms-agent.manpages0000664000000000000000000000007212203116150014121 0ustar man/man1/pandora_agent.1.gz man/man1/tentacle_client.1.gz debian/copyright0000664000000000000000000000177512203116150011124 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: pandorafms.agent Source: http://pandorafms.org/ Files: * Copyright: 2004-2011 Pandora FMS development team License: GPL-2.0 Files: debian/* Copyright: 2012 Taku YASUI License: GPL-2.0 License: GPL-2.0 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/pandorafms-agent.links0000664000000000000000000000022212203116150013443 0ustar etc/pandorafms/pandora_agent.conf var/lib/pandorafms/agent/pandora_agent.conf usr/share/pandorafms/agent/plugins var/lib/pandorafms/agent/plugins debian/watch0000664000000000000000000000011112203116150010201 0ustar version=3 http://sf.net/pandora/pandorafms_agent_unix-([.0-9]*)\.tar\.gz debian/source/0000775000000000000000000000000012203116150010457 5ustar debian/source/format0000664000000000000000000000001412203116150011665 0ustar 3.0 (quilt)