Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nickel

script for healthcheck

hi,

i need some advice

i would like to run healthcheck remotely from mgmt server to some GWs, save the file locally, and send all outputs via smtp to my email. how can i accomplish this?

on healthcheck the remote option give me list of all gws, and i want to directly tell the script on what GWS/ip's to run the script remotely. is it possible?

thanks

0 Kudos
3 Replies
Highlighted
Employee++
Employee++

Are you asking if you can modify the script from sk121447 or write a wrapper for the same?

0 Kudos
Highlighted
Nickel

Hi
I dont mind how, i just need a way to acomplish my goal.
Its best to run script that runs healthcheck.sh remotely on specific gws. And after that possible in another script to send result files via mail attachment.(couldnt find a way to send attachment with sendmail)
Its also possible to run healthcheck scheduled on each gw locally. And then with another script to send result as attachment via email altough its less elegant..
0 Kudos
Highlighted
Employee+
Employee+

You can use the healthcheck.sh script from sk121447 on the management server to check the gateways.  Once the check is complete, the files are pulled back to the management server.

You could always write a script that runs via cron to look for those healthcheck logs (in /var/log) then email them to yourself.