=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== pandorafms-agent-4.1/FreeBSD/pandora_agent-41- sleep 1 pandorafms-agent-4.1/FreeBSD/pandora_agent:42: PANDORA_PID=`pgrep -f -j none $name` pandorafms-agent-4.1/FreeBSD/pandora_agent-43- echo $PANDORA_PID > $pidfile ############################################## pandorafms-agent-4.1/pandora_agent_daemon-36- then pandorafms-agent-4.1/pandora_agent_daemon:37: PANDORA_PID=`ps -ex | grep "$DAEMON $PANDORA_PATH" | grep -v grep | head -1 | awk '{ print $1 }'` pandorafms-agent-4.1/pandora_agent_daemon-38- else ############################################## pandorafms-agent-4.1/pandora_agent_daemon-41- ZONENAME_CMD="/bin/zonename" pandorafms-agent-4.1/pandora_agent_daemon:42: TRUNCATED_DAEMON=`echo "$DAEMON $PANDORA_PATH" | cut -c1-40` pandorafms-agent-4.1/pandora_agent_daemon-43- if [ -x $ZONENAME_CMD ] pandorafms-agent-4.1/pandora_agent_daemon-44- then pandorafms-agent-4.1/pandora_agent_daemon:45: ZONE=`$ZONENAME_CMD` pandorafms-agent-4.1/pandora_agent_daemon-46- else ############################################## pandorafms-agent-4.1/pandora_agent_daemon-50- then pandorafms-agent-4.1/pandora_agent_daemon:51: PANDORA_PID=`ps -f -z global | grep "$TRUNCATED_DAEMON" | grep -v grep | head -1 | awk '{ print $2 }'` pandorafms-agent-4.1/pandora_agent_daemon-52- else pandorafms-agent-4.1/pandora_agent_daemon:53: PANDORA_PID=`ps -Af | grep "$TRUNCATED_DAEMON" | grep -v grep | head -1 | awk '{ print $2 }'` pandorafms-agent-4.1/pandora_agent_daemon-54- fi ############################################## pandorafms-agent-4.1/pandora_agent_daemon-56- then pandorafms-agent-4.1/pandora_agent_daemon:57: for _pid in `ps -Af | grep "$DAEMON $PANDORA_PATH" | grep -v grep | awk '{ print $2 }'` pandorafms-agent-4.1/pandora_agent_daemon-58- do pandorafms-agent-4.1/pandora_agent_daemon:59: _ctid=`/usr/sbin/vzpid $_pid | awk '$1 == '$_pid' { print $2 }'` pandorafms-agent-4.1/pandora_agent_daemon-60- if [ "X$_ctid" = "X0" ] ############################################## pandorafms-agent-4.1/pandora_agent_daemon-66- else pandorafms-agent-4.1/pandora_agent_daemon:67: PANDORA_PID=`ps -Af | grep "$DAEMON $PANDORA_PATH" | grep -v grep | head -1 | awk '{ print $2 }'` pandorafms-agent-4.1/pandora_agent_daemon-68- fi ############################################## pandorafms-agent-4.1/OpenWRT/pandora_agent_daemon-18- COLUMNS=250 pandorafms-agent-4.1/OpenWRT/pandora_agent_daemon:19: PANDORA_PID=`ps | grep $DAEMON | grep -v grep | head -1 | awk '{ print $1 }'` pandorafms-agent-4.1/OpenWRT/pandora_agent_daemon-20- echo $PANDORA_PID ############################################## pandorafms-agent-4.1/DEBIAN/make_deb_package.sh-103- then pandorafms-agent-4.1/DEBIAN/make_deb_package.sh:104: md5=`md5sum $item | cut -d" " -f1` pandorafms-agent-4.1/DEBIAN/make_deb_package.sh-105- ############################################## pandorafms-agent-4.1/plugins/nagios_plugin_wrapper-34-if ($command ne ""){ pandorafms-agent-4.1/plugins/nagios_plugin_wrapper:35: my $module_data = `$command`; pandorafms-agent-4.1/plugins/nagios_plugin_wrapper-36- my $module_description = $module_data; ############################################## pandorafms-agent-4.1/plugins/pandora_update-100- my $cmd_aux="echo \"$daemon $app_path\" | cut -c1-40"; pandorafms-agent-4.1/plugins/pandora_update:101: my $truncated_daemon = `$cmd_aux`; pandorafms-agent-4.1/plugins/pandora_update-102- ############################################## pandorafms-agent-4.1/plugins/pandora_update-115- pandorafms-agent-4.1/plugins/pandora_update:116: $pid = `$cmd`; pandorafms-agent-4.1/plugins/pandora_update-117- return $pid; ############################################## pandorafms-agent-4.1/plugins/pandora_update-202- # Kill parent process (a.k.a the Agent) pandorafms-agent-4.1/plugins/pandora_update:203: my $output = `kill -9 $ppid`; pandorafms-agent-4.1/plugins/pandora_update-204- sleep SERVICE_STOP_WAIT; ############################################## pandorafms-agent-4.1/plugins/pandora_update-210- my $log = $opt_dir."/var/log/pandora/pandora_agent.log"; pandorafms-agent-4.1/plugins/pandora_update:211: $output = `nohup $running_binary $conf_path >/dev/null 2>$log &` pandorafms-agent-4.1/plugins/pandora_update-212- ############################################## pandorafms-agent-4.1/plugins/inventory-56-# Get a list of information file system in machine pandorafms-agent-4.1/plugins/inventory:57:sub get_file_system($$) { pandorafms-agent-4.1/plugins/inventory-58- my ($name, $modules) = @_; ############################################## pandorafms-agent-4.1/plugins/inventory-87- pandorafms-agent-4.1/plugins/inventory:88: my @services = `$script`; pandorafms-agent-4.1/plugins/inventory-89- foreach my $row (@services) { ############################################## pandorafms-agent-4.1/plugins/inventory-105- pandorafms-agent-4.1/plugins/inventory:106: my @services = `$script`; pandorafms-agent-4.1/plugins/inventory-107- foreach my $row (@services) { ############################################## pandorafms-agent-4.1/plugins/inventory-125- pandorafms-agent-4.1/plugins/inventory:126: my @services = `$script`; pandorafms-agent-4.1/plugins/inventory-127- foreach my $row (@services) { ############################################## pandorafms-agent-4.1/plugins/inventory-132- $user = $1; pandorafms-agent-4.1/plugins/inventory:133: $script = `passwd -S $user`; pandorafms-agent-4.1/plugins/inventory-134- if ( $script =~ /^(\S+)\sP./){ ############################################## pandorafms-agent-4.1/plugins/files_indir-16-if [ `uname -s` = "FreeBSD" ];then pandorafms-agent-4.1/plugins/files_indir:17: DIRETMP=`echo $DIRE | /sbin/md5`; pandorafms-agent-4.1/plugins/files_indir-18-else pandorafms-agent-4.1/plugins/files_indir:19: DIRETMP=`echo $DIRE | md5sum | awk '{ print $1 }'` pandorafms-agent-4.1/plugins/files_indir-20-fi ############################################## pandorafms-agent-4.1/plugins/files_indir-22- pandorafms-agent-4.1/plugins/files_indir:23:CURRENT=`ls -la ${DIRE} | wc -l | tr -d ' '` pandorafms-agent-4.1/plugins/files_indir-24- ############################################## pandorafms-agent-4.1/plugins/files_indir-26-then pandorafms-agent-4.1/plugins/files_indir:27: ANTERIOR=`cat $DIRETMP` pandorafms-agent-4.1/plugins/files_indir-28-else ############################################## pandorafms-agent-4.1/pandora_agent_exec-5-# Executes the given command and prints its output to stdout. If the pandorafms-agent-4.1/pandora_agent_exec:6:# execution times out or the command does not exist nothing is printed pandorafms-agent-4.1/pandora_agent_exec-7-# to stdout. This is part of Pandora FMS Plugin server, do not delete!. ############################################## pandorafms-agent-4.1/pandora_agent_exec-45- pandorafms-agent-4.1/pandora_agent_exec:46: $output = `$command`; pandorafms-agent-4.1/pandora_agent_exec-47- $ReturnCode = ($? >> 8) & 0xff; ############################################## pandorafms-agent-4.1/pandora_agent_installer-32-MODE=${1:-} pandorafms-agent-4.1/pandora_agent_installer:33:PANDORA_BASE=`echo ${2:-} | sed -e 's/\/$//'` pandorafms-agent-4.1/pandora_agent_installer-34-if [ "${3:-}" != "" ] ############################################## pandorafms-agent-4.1/pandora_agent_installer-52-UNIX_KIND=`uname -s` pandorafms-agent-4.1/pandora_agent_installer:53:if [ -z "`echo Linux HP-UX SunOS AIX Solaris Darwin BSD bsd FreeBSD | grep \"$UNIX_KIND\"`" ] pandorafms-agent-4.1/pandora_agent_installer-54-then ############################################## pandorafms-agent-4.1/pandora_agent_installer-304- # Create logfile pandorafms-agent-4.1/pandora_agent_installer:305: if [ ! -z "`touch $PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG`" ] pandorafms-agent-4.1/pandora_agent_installer-306- then ############################################## pandorafms-agent-4.1/debian/pandorafms-agent.init.d-66- pandorafms-agent-4.1/debian/pandorafms-agent.init.d:67: kill `pidof -x $DAEMON` pandorafms-agent-4.1/debian/pandorafms-agent.init.d-68- for i in `seq 1 5`; do ############################################## pandorafms-agent-4.1/debian/pandorafms-agent.init.d-76- pandorafms-agent-4.1/debian/pandorafms-agent.init.d:77: kill -9 `pidof -x $DAEMON` pandorafms-agent-4.1/debian/pandorafms-agent.init.d-78- for i in `seq 1 5`; do ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-214- print ("[ERROR] $msg\n\n"); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:215: `logger -i -t pandora_agent_daemon [ERROR] $msg 2>/dev/null`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-216- exit 1; ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-313- #If error then log into syslog! pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:314: `logger -i -t pandora_agent_daemon [ERROR] $msg 2>/dev/null`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-315- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-643- if ($Conf{'transfer_mode'} eq 'tentacle') { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:644: $output = `tentacle_client -v -a $Conf{'server_ip'} -p $Conf{'server_port'} $Conf{'server_opts'} "$file" 2>&1 >$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-645- } elsif ($Conf{'transfer_mode'} eq 'ssh') { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:646: $output = `scp -P $Conf{'server_port'} "$file" pandora@"$Conf{'server_ip'}:$Conf{'server_path'}" 2>&1 >$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-647- } elsif ($Conf{'transfer_mode'} eq 'ftp') { ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-659- } elsif ($Conf{'transfer_mode'} eq 'local') { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:660: $output = `cp "$file" "$Conf{'server_path'}/" 2>&1 >$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-661- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-717- if ($Conf{'transfer_mode'} eq 'tentacle') { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:718: $output = `cd "$Conf{'temporal'}"$CmdSep tentacle_client -v -g -a $Conf{'server_ip'} -p $Conf{'server_port'} $Conf{'server_opts'} $file 2>&1 >$DevNull` pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-719- } elsif ($Conf{'transfer_mode'} eq 'ssh') { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:720: $output = `scp -P $Conf{'server_port'} pandora@"$Conf{'server_ip'}:$Conf{'server_path'}/$file" $Conf{'temporal'} 2>&1 >$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-721- } elsif ($Conf{'transfer_mode'} eq 'ftp') { ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-733- } elsif ($Conf{'transfer_mode'} eq 'local') { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:734: $output = `cp $Conf{'server_path'}/$file $Conf{'temporal'} 2>&1 >$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-735- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-803- my $PID = $$; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:804: `renice "$Conf{'pandora_nice'}" "$PID"`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-805-} ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-823- log_message ('setup', 'Proxy mode enabled'); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:824: exec ($new_process); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-825- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-883- rmrf ("$ConfDir/collections/$collection"); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:884: `unzip -d "$ConfDir/collections/$collection" "$Conf{'temporal'}/$collection_file" 2>$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-885- unlink ("$Conf{'temporal'}/$collection_file"); ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1017- if ($os eq 'linux') { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1018: $os_version = `lsb_release -sd 2>$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1019- # AIX ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1103- my $cmd = PROC_CMDS->{$OS}; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1104: my @procs = `$cmd`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1105- return undef unless ($? eq 0); ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1146- my $cmd = PART_CMDS->{$OS}; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1147: my @parts = `$cmd`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1148- return undef unless ($? eq 0); ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1174-################################################################################ pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1175:sub module_precondition_exec ($) { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1176- my $module = shift; ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1183- if ($module->{'timeout'} == 0) { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1184: @data = `$module->{'params_precon'} 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1185- } else { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1186- my $cmd = quotemeta ($module->{'params_precon'}); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1187: @data = `$Conf{'pandora_exec'} $module->{'timeout'} $cmd 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1188- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1201-################################################################################ pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1202:sub module_exec ($) { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1203- my $module = shift; ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1215- if ($module->{'timeout'} == 0) { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1216: @data = `$module->{'params'} 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1217- } else { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1218- my $cmd = quotemeta ($module->{'params'}); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1219: @data = `$Conf{'pandora_exec'} $module->{'timeout'} $cmd 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1220- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1343- my $cmd = CPUUSAGE_CMDS->{$OS}; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1344: my @data = `$cmd 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1345- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1362- my $cmd = FREEMEMORY_CMDS->{$OS}; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1363: my @data = `$cmd 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1364- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1381- my $cmd = TOTALMEMORY_CMDS->{$OS}; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1382: my @data = `$cmd 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1383- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1407- pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1408: my $data = `$precondition->{'command'} 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1409- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1443- ($condition->{'operator'} eq '()' && $data > $condition->{'value_1'} && $data < $condition->{'value_2'})) { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1444: `$condition->{'command'} 2> $DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1445- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1603- my($port, $ipaddr) = sockaddr_in($sock->peername); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1604: $hishost = gethostbyaddr($ipaddr, AF_INET); pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1605- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1622- pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1623: my $output = `$plugin 2>$DevNull`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1624- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1646- print "kill -9 $tentacle_pid\n"; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1647: `kill -9 $tentacle_pid`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1648- } ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1659- my $cmd = DF_CMDS->{$OS} . ' ' . $Conf{'temporal'} . ' | awk \'NR > 1 {print $4}\''; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1660: my $temporal_freedisk = `$cmd`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1661- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1745-my $PID = $$; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1746:`renice "$Conf{'pandora_nice'}" "$PID"`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1747- ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1835- # Tested on Ubuntu, debian, Suse, Solaris 10 and AIX 5.1 pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1836: $address = `ifconfig -a | grep -v '127.0.0' | grep '[0-9]*\\.[0-9]*\\.[0-9]*' | awk '{ print \$2 }' | head -1 | sed -e 's/addr\\://' | sed -e 's/inet\\://'`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1837- chomp($address); ############################################## pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1859- if (defined ($Conf{'gis_exec'}) && (-e $Conf{'gis_exec'})) { pandorafms-agent-4.1/.pc/010_change_path/pandora_agent:1860: my $coord_str = `$Conf{'gis_exec'}`; pandorafms-agent-4.1/.pc/010_change_path/pandora_agent-1861- chomp($coord_str); ############################################## pandorafms-agent-4.1/pandora_agent-214- print ("[ERROR] $msg\n\n"); pandorafms-agent-4.1/pandora_agent:215: `logger -i -t pandora_agent_daemon [ERROR] $msg 2>/dev/null`; pandorafms-agent-4.1/pandora_agent-216- exit 1; ############################################## pandorafms-agent-4.1/pandora_agent-313- #If error then log into syslog! pandorafms-agent-4.1/pandora_agent:314: `logger -i -t pandora_agent_daemon [ERROR] $msg 2>/dev/null`; pandorafms-agent-4.1/pandora_agent-315- } ############################################## pandorafms-agent-4.1/pandora_agent-643- if ($Conf{'transfer_mode'} eq 'tentacle') { pandorafms-agent-4.1/pandora_agent:644: $output = `tentacle_client -v -a $Conf{'server_ip'} -p $Conf{'server_port'} $Conf{'server_opts'} "$file" 2>&1 >$DevNull`; pandorafms-agent-4.1/pandora_agent-645- } elsif ($Conf{'transfer_mode'} eq 'ssh') { pandorafms-agent-4.1/pandora_agent:646: $output = `scp -P $Conf{'server_port'} "$file" pandora@"$Conf{'server_ip'}:$Conf{'server_path'}" 2>&1 >$DevNull`; pandorafms-agent-4.1/pandora_agent-647- } elsif ($Conf{'transfer_mode'} eq 'ftp') { ############################################## pandorafms-agent-4.1/pandora_agent-659- } elsif ($Conf{'transfer_mode'} eq 'local') { pandorafms-agent-4.1/pandora_agent:660: $output = `cp "$file" "$Conf{'server_path'}/" 2>&1 >$DevNull`; pandorafms-agent-4.1/pandora_agent-661- } ############################################## pandorafms-agent-4.1/pandora_agent-717- if ($Conf{'transfer_mode'} eq 'tentacle') { pandorafms-agent-4.1/pandora_agent:718: $output = `cd "$Conf{'temporal'}"$CmdSep tentacle_client -v -g -a $Conf{'server_ip'} -p $Conf{'server_port'} $Conf{'server_opts'} $file 2>&1 >$DevNull` pandorafms-agent-4.1/pandora_agent-719- } elsif ($Conf{'transfer_mode'} eq 'ssh') { pandorafms-agent-4.1/pandora_agent:720: $output = `scp -P $Conf{'server_port'} pandora@"$Conf{'server_ip'}:$Conf{'server_path'}/$file" $Conf{'temporal'} 2>&1 >$DevNull`; pandorafms-agent-4.1/pandora_agent-721- } elsif ($Conf{'transfer_mode'} eq 'ftp') { ############################################## pandorafms-agent-4.1/pandora_agent-733- } elsif ($Conf{'transfer_mode'} eq 'local') { pandorafms-agent-4.1/pandora_agent:734: $output = `cp $Conf{'server_path'}/$file $Conf{'temporal'} 2>&1 >$DevNull`; pandorafms-agent-4.1/pandora_agent-735- } ############################################## pandorafms-agent-4.1/pandora_agent-803- my $PID = $$; pandorafms-agent-4.1/pandora_agent:804: `renice "$Conf{'pandora_nice'}" "$PID"`; pandorafms-agent-4.1/pandora_agent-805-} ############################################## pandorafms-agent-4.1/pandora_agent-823- log_message ('setup', 'Proxy mode enabled'); pandorafms-agent-4.1/pandora_agent:824: exec ($new_process); pandorafms-agent-4.1/pandora_agent-825- } ############################################## pandorafms-agent-4.1/pandora_agent-883- rmrf ("$ConfDir/collections/$collection"); pandorafms-agent-4.1/pandora_agent:884: `unzip -d "$ConfDir/collections/$collection" "$Conf{'temporal'}/$collection_file" 2>$DevNull`; pandorafms-agent-4.1/pandora_agent-885- unlink ("$Conf{'temporal'}/$collection_file"); ############################################## pandorafms-agent-4.1/pandora_agent-1017- if ($os eq 'linux') { pandorafms-agent-4.1/pandora_agent:1018: $os_version = `lsb_release -sd 2>$DevNull`; pandorafms-agent-4.1/pandora_agent-1019- # AIX ############################################## pandorafms-agent-4.1/pandora_agent-1103- my $cmd = PROC_CMDS->{$OS}; pandorafms-agent-4.1/pandora_agent:1104: my @procs = `$cmd`; pandorafms-agent-4.1/pandora_agent-1105- return undef unless ($? eq 0); ############################################## pandorafms-agent-4.1/pandora_agent-1146- my $cmd = PART_CMDS->{$OS}; pandorafms-agent-4.1/pandora_agent:1147: my @parts = `$cmd`; pandorafms-agent-4.1/pandora_agent-1148- return undef unless ($? eq 0); ############################################## pandorafms-agent-4.1/pandora_agent-1174-################################################################################ pandorafms-agent-4.1/pandora_agent:1175:sub module_precondition_exec ($) { pandorafms-agent-4.1/pandora_agent-1176- my $module = shift; ############################################## pandorafms-agent-4.1/pandora_agent-1183- if ($module->{'timeout'} == 0) { pandorafms-agent-4.1/pandora_agent:1184: @data = `$module->{'params_precon'} 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1185- } else { pandorafms-agent-4.1/pandora_agent-1186- my $cmd = quotemeta ($module->{'params_precon'}); pandorafms-agent-4.1/pandora_agent:1187: @data = `$Conf{'pandora_exec'} $module->{'timeout'} $cmd 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1188- } ############################################## pandorafms-agent-4.1/pandora_agent-1201-################################################################################ pandorafms-agent-4.1/pandora_agent:1202:sub module_exec ($) { pandorafms-agent-4.1/pandora_agent-1203- my $module = shift; ############################################## pandorafms-agent-4.1/pandora_agent-1215- if ($module->{'timeout'} == 0) { pandorafms-agent-4.1/pandora_agent:1216: @data = `$module->{'params'} 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1217- } else { pandorafms-agent-4.1/pandora_agent-1218- my $cmd = quotemeta ($module->{'params'}); pandorafms-agent-4.1/pandora_agent:1219: @data = `$Conf{'pandora_exec'} $module->{'timeout'} $cmd 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1220- } ############################################## pandorafms-agent-4.1/pandora_agent-1343- my $cmd = CPUUSAGE_CMDS->{$OS}; pandorafms-agent-4.1/pandora_agent:1344: my @data = `$cmd 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1345- ############################################## pandorafms-agent-4.1/pandora_agent-1362- my $cmd = FREEMEMORY_CMDS->{$OS}; pandorafms-agent-4.1/pandora_agent:1363: my @data = `$cmd 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1364- ############################################## pandorafms-agent-4.1/pandora_agent-1381- my $cmd = TOTALMEMORY_CMDS->{$OS}; pandorafms-agent-4.1/pandora_agent:1382: my @data = `$cmd 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1383- ############################################## pandorafms-agent-4.1/pandora_agent-1407- pandorafms-agent-4.1/pandora_agent:1408: my $data = `$precondition->{'command'} 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1409- ############################################## pandorafms-agent-4.1/pandora_agent-1443- ($condition->{'operator'} eq '()' && $data > $condition->{'value_1'} && $data < $condition->{'value_2'})) { pandorafms-agent-4.1/pandora_agent:1444: `$condition->{'command'} 2> $DevNull`; pandorafms-agent-4.1/pandora_agent-1445- } ############################################## pandorafms-agent-4.1/pandora_agent-1603- my($port, $ipaddr) = sockaddr_in($sock->peername); pandorafms-agent-4.1/pandora_agent:1604: $hishost = gethostbyaddr($ipaddr, AF_INET); pandorafms-agent-4.1/pandora_agent-1605- ############################################## pandorafms-agent-4.1/pandora_agent-1622- pandorafms-agent-4.1/pandora_agent:1623: my $output = `$plugin 2>$DevNull`; pandorafms-agent-4.1/pandora_agent-1624- ############################################## pandorafms-agent-4.1/pandora_agent-1646- print "kill -9 $tentacle_pid\n"; pandorafms-agent-4.1/pandora_agent:1647: `kill -9 $tentacle_pid`; pandorafms-agent-4.1/pandora_agent-1648- } ############################################## pandorafms-agent-4.1/pandora_agent-1659- my $cmd = DF_CMDS->{$OS} . ' ' . $Conf{'temporal'} . ' | awk \'NR > 1 {print $4}\''; pandorafms-agent-4.1/pandora_agent:1660: my $temporal_freedisk = `$cmd`; pandorafms-agent-4.1/pandora_agent-1661- ############################################## pandorafms-agent-4.1/pandora_agent-1745-my $PID = $$; pandorafms-agent-4.1/pandora_agent:1746:`renice "$Conf{'pandora_nice'}" "$PID"`; pandorafms-agent-4.1/pandora_agent-1747- ############################################## pandorafms-agent-4.1/pandora_agent-1835- # Tested on Ubuntu, debian, Suse, Solaris 10 and AIX 5.1 pandorafms-agent-4.1/pandora_agent:1836: $address = `ifconfig -a | grep -v '127.0.0' | grep '[0-9]*\\.[0-9]*\\.[0-9]*' | awk '{ print \$2 }' | head -1 | sed -e 's/addr\\://' | sed -e 's/inet\\://'`; pandorafms-agent-4.1/pandora_agent-1837- chomp($address); ############################################## pandorafms-agent-4.1/pandora_agent-1859- if (defined ($Conf{'gis_exec'}) && (-e $Conf{'gis_exec'})) { pandorafms-agent-4.1/pandora_agent:1860: my $coord_str = `$Conf{'gis_exec'}`; pandorafms-agent-4.1/pandora_agent-1861- chomp($coord_str);