2014-08-07 Ramon Novoa <rnovoa@artica.es>

* pandora_agent_daemon: Fixes the ps call on HP-UX.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2014-08-07 09:55:15 +00:00
parent df12717958
commit 4f5e94b450
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-08-07 Ramon Novoa <rnovoa@artica.es>
* pandora_agent_daemon: Fixes the ps call on HP-UX.
2014-06-04 Koichiro KIKUCHI <koichiro@rworks.jp>
* pandora_agent: Allow spaces in module group names.

View File

@ -34,7 +34,7 @@ pidof_pandora () {
OS_NAME=`uname -s`
if [ $OS_NAME = "HP-UX" ]
then
PANDORA_PID=`ps -ex | grep "$DAEMON $PANDORA_PATH" | grep -v grep | head -1 | awk '{ print $1 }'`
PANDORA_PID=`ps -ef | grep "/usr/bin/perl /opt/PandoraFMS/usr/bin/pandora_agent" | grep -v grep | awk '{print $2}'`
else
if [ "$OS_NAME" = "SunOS" ]
then