mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-08-25 19:58:41 +02:00
* android bsd-ipso bsd-ipso/AUTHORS bsd-ipso/pandora_agent_daemon bsd-ipso/pandora_agent.conf bsd-ipso/pandora_user.conf bsd-ipso/COPYING bsd-ipso/pandora_agent.sh bsd-ipso/README aix aix/pandora_agent_installer aix/pandora_agent aix/AUTHORS aix/pandora_agent_daemon aix/pandora_agent.conf aix/pandora_user.conf aix/COPYING aix/README mac_osx mac_osx/pandora_agent_installer mac_osx/plugins mac_osx/plugins/ipmi2xml mac_osx/plugins/ipmi2xml/ipmi2xml.php mac_osx/plugins/ipmi2xml/README.txt mac_osx/plugins/XServeRAID mac_osx/plugins/XServeRAID/xserve-raid-tools-1.2-1.uwhep.sl4.i386.rpm mac_osx/plugins/XServeRAID/xserve-raid-tools-1.2-1.rhel3.i386.rpm mac_osx/plugins/XServeRAID/pandora_agent.conf mac_osx/plugins/XServeRAID/check_xserve mac_osx/plugins/XServeRAID/xserve-raid-tools-1.2.tar.gz mac_osx/plugins/XServeRAID/README.txt mac_osx/plugins/SGE mac_osx/plugins/SGE/SGEStatus.sh mac_osx/plugins/SGE/README mac_osx/plugins/grep_log mac_osx/plugins/ppc_sensors mac_osx/pandora_agent mac_osx/AUTHORS mac_osx/pandora_agent.conf mac_osx/ChangeLog mac_osx/COPYING mac_osx/pandora_fms mac_osx/pandora_fms/StartupParameters.plist mac_osx/pandora_fms/pandora_fms mac_osx/Pandora FMS.pmdoc mac_osx/Pandora FMS.pmdoc/01pandora-contents.xml mac_osx/Pandora FMS.pmdoc/01pandora.xml mac_osx/Pandora FMS.pmdoc/index.xml mac_osx/README mac_osx/tentacle_client shellscript shellscript/linux shellscript/bsd-ipso shellscript/hp-ux shellscript/aix shellscript/meta_agent shellscript/mac_osx shellscript/solaris shellscript/openWRT openWRT openWRT/pandora_agent_async openWRT/pandora_serialread openWRT/contrib openWRT/contrib/pandora_agent_installer openWRT/contrib/S55pandora openWRT/contrib/pandora_agent_daemon openWRT/pandora_getsync openWRT/pandora_agent openWRT/AUTHORS openWRT/pandora_agent.conf openWRT/pandora_arduino.c openWRT/pandora_user.conf openWRT/COPYING openWRT/README.openwrt openWRT/README linux linux/pandora_agent_installer linux/plugins linux/plugins/inventory linux/plugins/pandora_df linux/plugins/grep_log linux/DEBIAN linux/DEBIAN/control linux/DEBIAN/postinst linux/DEBIAN/prerm linux/DEBIAN/conffiles linux/DEBIAN/make_deb_package.sh linux/DEBIAN/md5sums linux/pandora_agent linux/AUTHORS linux/pandora_agent_daemon linux/pandora_agent.conf linux/COPYING linux/pandora_agent.spec linux/README linux/tentacle_client hp-ux hp-ux/pandora_agent_installer hp-ux/pandora_agent hp-ux/AUTHORS hp-ux/pandora_agent_daemon hp-ux/pandora_agent.conf hp-ux/COPYING hp-ux/README meta_agent meta_agent/data_out meta_agent/pandora_agent_sim.sh meta_agent/AUTHORS meta_agent/pandora_agent_daemon meta_agent/INSTALL meta_agent/pandora_agent_1.conf meta_agent/pandora_agent_2.conf meta_agent/COPYING meta_agent/pandora_agent_3.conf meta_agent/pandora_agent_4.conf meta_agent/pandora_agent_5.conf meta_agent/README meta_agent/muestra_config.sh solaris solaris/pandora_agent_installer solaris/data_out solaris/pandora_agent solaris/AUTHORS solaris/pandora_agent_daemon solaris/pandora_agent.conf solaris/pandora_user.conf solaris/COPYING solaris/README: Reorganise the shellscript moving all the sh scripts to one folder git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3778 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
75 lines
2.1 KiB
Plaintext
Executable File
75 lines
2.1 KiB
Plaintext
Executable File
# Pandora User-Defined adquisition script
|
|
# This code is under GPL licence
|
|
# This is the default user script file
|
|
# If you're using this is because default config doest fit all your needs
|
|
# You can use the following variables
|
|
#
|
|
# All STDOUT output will be written in final XML file sent to Pandora Server.
|
|
#
|
|
# Please refer documentatation for more example and a more depth usage instructions
|
|
#
|
|
|
|
# ================================
|
|
# Check for WEBPage content change
|
|
# ================================
|
|
|
|
#MYMD5=`echo -e "GET / HTTP/1.0\n\n\n" | nc -w 30 www.artica.es 80 | grep -v "Date:" | md5sum | awk '{ print $1 }'`
|
|
#VALIDMD5=e85c0b9018a22c1086c8e0179cd224b1
|
|
#if [ "$MYMD5" != "$VALIDMD5" ]
|
|
#then
|
|
# MD5SUM=0
|
|
#else
|
|
# MD5SUM=1
|
|
#fi
|
|
#echo "<module>"
|
|
#echo "<name>www.artica.es_WEBContenct</name>"
|
|
#echo "<type>generic_proc</type>"
|
|
#echo "<data>$MD5SUM</data>"
|
|
#echo "</module>"
|
|
|
|
# MODULE END ========================
|
|
|
|
# ================================
|
|
# Check for DNS Entry change
|
|
# ================================
|
|
|
|
#HOSTNAME=arcadia.genterara.com
|
|
#MAXHOPS=1
|
|
#MAXHOPS2=`expr $MAXHOPS + 1`
|
|
#SALIDA=`traceroute -n $HOSTNAME -w 5 -m $MAXHOPS2 2> /dev/null | awk '{ print $1 }' | tail -1`
|
|
# if SALIDA != MAXHOPS, error (more than MAXHOPS hop, if this is our local IP, no more than MAXHOPS hop its needed
|
|
#if [ "$SALIDA" == "$MAXHOPS" ]
|
|
#then
|
|
# DNS_STATUS=1
|
|
#else
|
|
# DNS_STATUS=0
|
|
#fi
|
|
#echo "<module>"
|
|
#echo "<name>DNS_CHECK</name>"
|
|
#echo "<type>generic_proc</type>"
|
|
#echo "<data>$DNS_STATUS</data>"
|
|
#echo "</module>"
|
|
|
|
# MODULE END ========================
|
|
|
|
|
|
# ================================
|
|
# Check for DNS Entry change
|
|
# on local interface ppp0
|
|
# ================================
|
|
|
|
# PLC_DNS=`dig @194.179.1.101 plc.genterara.com A +short | tail -1 `
|
|
# PLC_LOCAL=`ifconfig ppp0 | head -2 | tail -1 | tr -s ":" " " | awk ' { print $3 } '`
|
|
# if [ "$PLC_DNS" == "$PLC_LOCAL" ]
|
|
# then
|
|
# PLC_STATUS=1
|
|
# else
|
|
# PLC_STATUS=0
|
|
# fi
|
|
#
|
|
# echo "<module>"
|
|
# echo "<name>PLC_DNS_CHECK</name>"
|
|
# echo "<type>generic_proc</type>"
|
|
# echo "<data>$PLC_STATUS</data>"
|
|
# echo "</module>"
|
|
# MODULE END ======================== |