bsa_jug
asked on
errpt alert mails
Is there some method when a error is logged in errpt an mail can be generated sending that error to the admin mail
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry I misread you asked for e-mail notification. This is for snmp sendtrap.
I have it this way a script
#!/bin/ksh
errpt | pg > errpt.txt
mail -s "errpt output" mel@mail < errpt.txt
Then save the script, then added to crontab
0 8 * * * /error.sh
madunix
#!/bin/ksh
errpt | pg > errpt.txt
mail -s "errpt output" mel@mail < errpt.txt
Then save the script, then added to crontab
0 8 * * * /error.sh
madunix
madunix,
is it really a good idea to send the complete errorlog once a day?
is it really a good idea to send the complete errorlog once a day?
ASKER
Thx woolmilkporc , the suggestion worked good
Open in new window