Go to All Forums

Linux shell script monitor all my custom processes


I see the process.sh file in the script folder but it's hard to edit it to suit my needs. Is there a simpler way to manage the processes that I have created and check if it's running or not, for example: process_name1, process_name2, process_name3 ...

 

Thanks,

Like (4) Reply
Replies (7)

Hi Thong,

You do not need to use the script 'process.sh' present in the agent directory.

Please refer to this documentation on how to add process monitoring in the Site24x7 web client. 

Once the process is discovered and added, you will be able to view if the process is running or not. In addition to it, you will also get additional metrics such as CPU, memory, thread count, and handle count of processes.

Hope this helps. Let us know for further queries, if any, in the below thread.

 

Regards,

Sriram

Like (0) Reply

Hi Sriram,

Thanks so much for your information. I used to follow the instructions and it only allowed to manage 10 processes. That's why I want to create a script that can be more manageable than that. 

Thanks,

 

Like (0) Reply

Dear Thong, 

  How many processes are you looking to monitor in the server?

-Jasper

Like (0) Reply

Dear Jasper,

I need to manage about 15 processes.

Thanks,

Like (0) Reply

Hi Thong,

10 processes is the default limit. To enable addition of five more processes, please contact our support.

 

Regards,

Sriram

Like (0) Reply

Dear Sriram,

Thank you very much. I have edited the sample shell script file on your website and I can manage the running process but the plugin integration only sends mail when the process is configured such as trouble, critical or down. When process came back to normal, there was no notification. Please let me know how to do that. I have attached two images to show you the configuration.

Best,

Thong Nguyen

 

Attachments
Plugin_Configuration.png
Size: 13.34 KB
Threshold_setting.png
Size: 18.84 KB
Like (0) Reply

Hi Thong,

Generally, when none of the threshold violations occur, the monitor will be back to Up state from the current down/critical/trouble state.

From your attachements, I could see that you have configured the monitor as Down when the metrics instances_arc_billing is lesser than 1. 

It will trigger Down if the value is 0 as the criteria set is less than 1. When the value of instances_arc_billing is greater or equal to one, it will check for other thresholds. If none of the thresholds are violated, the monitor will be back to Up state.

Hope this helps. Let us know for queries, if any, in the below thread.

 

Regards,

Anita

Like (0) Reply

Was this post helpful?