BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sergie89
Quartz | Level 8

Hello all,

 

I'm looking for a script or something else what makes possible to validate all SAS services (status check) every hour and  send after each check a report.

 

Be example:

 

Day: 8/2/2018       Time:  15.15 

 

Status SAS services:

 

SAS Metadata                running

SAS Object Spawner    running

SAS Web Server            running

SAS Web App xx           running

 

etc.

 

We have also configured SAS environment Manager. But an overview of all sas services in a mail makes a lot easier.

 

Thanks in advance. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
shayes_ccllc
Fluorite | Level 6

@sergie89: You could create a simple shell script with something like this:

 

(date; echo; echo "Status SAS services:"; echo; /path/to/Lev1/sas.servers status) | mailx -s "SAS Status" your_name@yourcompany.com

 

Put that into a cron as the SAS Installer account to run every hour and you should be all set.

 

Cheers,

 

Spencer

View solution in original post

3 REPLIES 3
shayes_ccllc
Fluorite | Level 6

@sergie89: You could create a simple shell script with something like this:

 

(date; echo; echo "Status SAS services:"; echo; /path/to/Lev1/sas.servers status) | mailx -s "SAS Status" your_name@yourcompany.com

 

Put that into a cron as the SAS Installer account to run every hour and you should be all set.

 

Cheers,

 

Spencer

sergie89
Quartz | Level 8
@shayes_ccllc Thanks, it works fine! I will expand the shell script.
SimonDawson
SAS Employee
Be mindful of alert fatigue with a setup like this. It doesnt take long until these emails will have a mail rule putting them in a folder and they go unread.

Consider setting up a job to email into a ticketing system when a fault is detected rather than just a status.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1287 views
  • 1 like
  • 3 in conversation