monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem on using "check process"


From: Paul Sun
Subject: Problem on using "check process"
Date: Fri, 10 Jun 2016 01:58:12 +0000

Hi

 

We have been using MONIT for a long time, and we are running “check process” in order to determine and execute external scripting. However, we noticed that the “exec” action is no longer execute after running awhile, MONIT did not execute the action script.

 

The same MONIT configuration is used for MONIT 5.14 without any problem, and the problem is presented in MONIT 5.17.1 and 5.18. any idea?

 

-          RBK

 

MONIT CONFIG

============

# Path Ownership - PKT

#

check program pathowner_pkt with path "/home/testadm/script/check_owner_dir.sh testadm testadm /data2/PKT TESTP*"

   if status != 0 then exec "/home/testadm/script/change_owner_dir.sh testadm testadm /data2/PKT TESTP"

   group test

#

 

MONIT LOG

=========

 

2016-06-08T04:32:51.301760+00:00 app-trc001 monit[29249]: 'pathowner_pkt' '/home/testadm/script/check_owner_dir.sh testadm testadm /data2/PKT TESTP*' failed with exit status (99) -- File (TESTP*) in /data2/PKT is required to change ownership.

2016-06-08T04:32:51.301767+00:00 app-trc001 monit[29249]: 'pathowner_pkt' exec: /home/testadm/script/change_owner_dir.sh

 

2016-06-08T04:33:51.514799+00:00 app-trc001 monit[29249]: 'pathowner_pkt' '/home/testadm/script/check_owner_dir.sh testadm testadm /data2/PKT TESTP*' failed with exit status (99) -- File (TESTP*) in /data2/PKT is required to change ownership.

<<< MONIT didn’t call “exec: /home/testadm/script/change_owner_dir.sh” >>>

 

2016-06-08T04:34:51.730525+00:00 app-trc001 monit[29249]: 'pathowner_pkt' '/home/testadm/script/check_owner_dir.sh testadm testadm /data2/PKT TESTP*' failed with exit status (99) -- File (TESTP*) in /data2/PKT is required to change ownership.

<<< MONIT didn’t call “exec: /home/testadm/script/change_owner_dir.sh” >>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]