01-23-2012
Script to automate NAS space alerts
Hi sb008,
Yes..i need to get alerts in mail..plz help me..!!
Thanks in Advance.
Regards,
Rajesh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
Discussion started by: hogger84
3 Replies
2. Shell Programming and Scripting
Hi,
New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate.
I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Discussion started by: uncertain
2 Replies
3. Shell Programming and Scripting
Hi All,
Can I automate a script when some one trying to 'vi' (open) a file.
For Example, I am having a file named 'SecuredShell.sh'.
when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated.
Can this be possible. if Yes please guide... (2 Replies)
Discussion started by: little_wonder
2 Replies
4. Shell Programming and Scripting
Hi,
Here below the logs from the mail server:
less /var/log/messages:
Sep 6 04:03:31 server-59 out: 1252227811|webmaster@zilia.com|antonino.granata@gmail.com|2175|success|1
Sep 6 04:03:33 server-59 in: 1252227813|news@tarot.com|junk@thess.com|30376|success|1
Sep 6 04:03:35 server-59... (8 Replies)
Discussion started by: gsiva
8 Replies
5. Windows & DOS: Issues & Discussions
Dear all,
I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies
6. AIX
Hello AIXians :)
I want to complete this task using a script.
The task is:
We have a file called (alerts.log), this file is receiving all new alerts from ORACLE application all the day, I want to send email to a specific mail address when this file receives all alerts that starts with... (5 Replies)
Discussion started by: Mohannad
5 Replies
7. Shell Programming and Scripting
Hi,
So I've created /etc/rc.local
#!/bin/sh
polipo -c /opt/etc/polipo/polipo.conf
exit 0
if I run it with ./rc.local it does what its supposed to do and the proxy starts but not at startup.
any idea whats wrong?
thanks (1 Reply)
Discussion started by: deon
1 Replies
8. Shell Programming and Scripting
Hi,
Below is my script, which is used to invoke a test using curl command.
#/usr/bin/sh
MAILTO=user@xyz.com
URL='https://myserver.xyz.net/test/dir/test123.tws'
SOAPFILE=/tmp/soap.txt
curl -k -s -S --header 'Content-Type: text/xml;charset=UTF-8' --data @"${SOAPFILE}" "${URL}"
... (3 Replies)
Discussion started by: System Admin 77
3 Replies
9. Shell Programming and Scripting
Can someone get me script to find swap space for linux servers (1 Reply)
Discussion started by: Moon1234
1 Replies
10. UNIX for Dummies Questions & Answers
Good Day
Kindly assist:
I am creating an Alert that will notify supervisors of staff members who are due for probation report. I am using Operating System Script(Unix) as source.I have already developed the script.
Now the challenge is if there are 3 employee records then the alert... (2 Replies)
Discussion started by: nosi27
2 Replies
LEARN ABOUT DEBIAN
logcheck
Logcheck(8) System Manager's Manual Logcheck(8)
NAME
logcheck -- program to scan system logs for interesting lines
SYNOPSIS
logcheck [OPTIONS]
DESCRIPTION
The logcheck program helps spot problems and security violations in your logfiles automatically and will send the results to you periodi-
cally in an e-mail. By default logcheck runs as an hourly cronjob just off the hour and after every reboot.
logcheck supports three level of filtering: "paranoid" is for high-security machines running as few services as possible. Don't use it if
you can't handle its verbose messages. "server" is the default and contains rules for many different daemons. "workstation" is for shel-
tered machines and filters most of the messages. The ignore rules work in additive manner. "paranoid" rules are also included at level
"server". "workstation" level includes both "paranoid" and "server" rules.
The messages reported are sorted into three layers, system events, security events and attack alerts. The verbosity of system events is
controlled by which level you choose, paranoid, server or workstation. However, security events and attack alerts are not affected by
this.
EXAMPLES
logcheck can be invoked directly thanks to su(8) or sudo(8), which change the user ID. The following example checks the logfiles without
updating the offset and outputs everything to STDOUT.
sudo -u logcheck logcheck -o -t
OPTIONS
A summary of options is included below.
-c CFG Overrule default configuration file.
-d Debug mode.
-h Show usage information.
-H Use this hostname string in the subject of logcheck mail.
-l LOG Run logfile through logcheck.
-L CFG Overrule default logfiles list.
-m Mail report to recipient.
-o STDOUT mode, not sending mail.
-p Set the report level to "paranoid".
-r DIR Overrule default rules directory.
-R Adds "Reboot:" to the email subject line.
-s Set the report level to "server".
-S DIR Overrule default state directory.
-t Testing mode does not update offset.
-T Do not remove the TMPDIR.
-u Enable syslog-summary.
-v Print current version.
-w Set the report level to "workstation".
FILES
/etc/logcheck/logcheck.conf is the main configuration file.
/etc/logcheck/logcheck.logfiles is the list of files to monitor.
/usr/share/doc/logcheck-database/README.logcheck-database.gz for hints on how to write, test and maintain rules.
EXIT STATUS
0 upon success; 1 upon failure
SEE ALSO
logtail(8)
AUTHOR
logcheck is developed by Debian logcheck Team at alioth: http://alioth.debian.org/projects/logcheck/.
This manual page was written by Jon Middleton.
Logcheck(8)