Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Amir_Arama
Advisor
Jump to solution

run healthcheck Centrally and send output by email

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
1 Solution

Accepted Solutions
Danny
Champion 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
4 Replies
Danny
Champion 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
Amir_Arama
Advisor

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
G_W_Albrecht
Legend
Legend

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

CCSE CCTE CCSM SMB Specialist
0 Kudos
Danny
Champion 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
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events