Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Amir_Arama
Contributor

run healthcheck Centrally and send output by email

Jump to solution

Hi,

is there easy way to run healthcheck in central way on All GWs, or Selected GWs, and then sent output by email with attachment/s.

it is so necessary, yet i didn't found any tool to do that inside checkpoint.

if you know a way i would appretiate it

thx

 

 

0 Kudos
Reply
1 Solution

Accepted Solutions
Danny
Champion
Champion

You asked for an easy way, not an automated one. However, you could simply combine solutions that have been already posted on this board to get what you "want?".

Let's assume you already installed healthcheck.sh on every gateway in /home/admin, then you could start from running the example below as a scheduled job:

for i in `grep 'sic_name\|ipaddr' $FWDIR/conf/objects.C|grep -A1 sic_name|grep 'ipaddr '|tr -d ':ipadr ()\t'`; do cprid_util -server $i -verbose rexec -rcmd /bin/bash -c '/home/admin/healthcheck.sh'; done > healthcheck_all_$(date +%Y%m%d%H%M); YOUR_EMAIL_ROUTINE

View solution in original post

0 Kudos
Reply
4 Replies
Danny
Champion
Champion

Of course. Just install my SmartConsole Extension, select a specific gateway, run the health check, copy & paste the result into a mail. Done.

0 Kudos
Reply
Amir_Arama
Contributor

thanks Danny. i use your extention. i wanted something automatic that will run on like 10 gws and will send all outputs by one mail. instead of running, and waiting, and copy paste send.. that's a lot of time consuming actions.

0 Kudos
Reply
G_W_Albrecht
Champion
Champion

In that case all is clear: You have to develop the tool yourself (like Danny did) and proudly present it here when finished 😎!

0 Kudos
Reply
Danny
Champion
Champion

You asked for an easy way, not an automated one. However, you could simply combine solutions that have been already posted on this board to get what you "want?".

Let's assume you already installed healthcheck.sh on every gateway in /home/admin, then you could start from running the example below as a scheduled job:

for i in `grep 'sic_name\|ipaddr' $FWDIR/conf/objects.C|grep -A1 sic_name|grep 'ipaddr '|tr -d ':ipadr ()\t'`; do cprid_util -server $i -verbose rexec -rcmd /bin/bash -c '/home/admin/healthcheck.sh'; done > healthcheck_all_$(date +%Y%m%d%H%M); YOUR_EMAIL_ROUTINE

View solution in original post

0 Kudos
Reply