01-03-2012
sorry for confusion ...i do not have sendmail.
> which sendmail
no sendmail in /opt/app/xxxxx.......
anyway to achieve the same using
perl.
Quote:
Originally Posted by
otheus
@ajaypatil_am Did you get sendmail to send you the MIME-formatted mail? If so, the next step is fairly trivial.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Can any one help me in making a disk space script in solaris 8/9
for instance i only want to get those partitions whose diskspace has exceed 70%.
Any volunteer?
Cheers!
BR/asad (8 Replies)
Discussion started by: asadlone
8 Replies
2. Shell Programming and Scripting
:( Hi All,
i have 4 linux server for which i want set up script to monitor the disk space ...
here my problem is i want the output like graph...
also it should reflect in monitor ...as non stop process..
can any one suggest me any way where i can implement the script?
... (3 Replies)
Discussion started by: Shahul
3 Replies
3. Shell Programming and Scripting
do you have any simple script on how to change the color and font of a string in a script example
echo "===================================="
echo " sample color script"
echo "===================================="
echo " hello "
echo " bye"
on hello,... (3 Replies)
Discussion started by: lhareigh890
3 Replies
4. Shell Programming and Scripting
Hi Experts,
I want to get my shell script output in a color for a particular word. PFB my output.
TT.QM.JTV1S1 TLORSBT2.JMR701T1.C1 REPOS
TT.QM.JTV1R1 TLORSBF2.JMR701T1.C1 NORMAL
whenever REPOS word comes then entire line should come in red color. Can you please help me... (4 Replies)
Discussion started by: darling
4 Replies
5. Shell Programming and Scripting
I am very new to unix and Linux, So I have a question about LINUX and AIX.
What LINUX and AIX commands can be used to get the following output:
071912 GB blocks Free %Iused Mounted on
071912 5.00 4.64 8% /
071912 15.00 9.44 38% /usr
071912 6.00 2.56 58% /var
071912 15.00 12.88 15% /tmp... (1 Reply)
Discussion started by: najeemsarwat
1 Replies
6. Shell Programming and Scripting
Hi All,
Hope all are doing good!! Am glad that i have utilized some ideas and written a code to make the disk space result comes better and it was successfully running in the production. The next update from my manager was to make this code to come in a table format with color added.
1)... (28 Replies)
Discussion started by: Kalaihari
28 Replies
7. Shell Programming and Scripting
Hi,
I am working on Sun Solaris 5.10 and want to direct the output from a disk space check script to an output file;
#!/bin/bash
CURRENT=$(df -k /log/logs | grep /log/logs | awk '{ print $5}' | sed 's/%//g')
THRESHOLD=30
if ; then
echo "Remaining free space is low" > output.txt
else... (10 Replies)
Discussion started by: SSKAAB
10 Replies
8. Shell Programming and Scripting
i want to write a shell script,when disk uses is 90% then automatically send a email to distribution list (group member)...... (1 Reply)
Discussion started by: sonu pandey
1 Replies
9. UNIX for Beginners Questions & Answers
Running this code
df -h | head -2 | awk '{print $8}'
Gives me the following output:
%iused
6%
What I'm trying to do is get the 6% but I'm having trouble doing this using cut -c, I think that this could be because the text is on different lines; is there a way of doing this? (8 Replies)
Discussion started by: $shell_Learner
8 Replies
10. UNIX for Beginners Questions & Answers
i have 3 servers and i am checking for the disk space of a specific mount-point, should not be more than 85 %
considering example as below
server1 mountpoint_1 has 70% diskutilization
server2 mountpoint_1 has 80% diskutilization
server3 mountpoint_1 has 7% diskutilization
now when it... (6 Replies)
Discussion started by: abhaydas
6 Replies
LEARN ABOUT CENTOS
pmdasendmail
PMDASENDMAIL(1) General Commands Manual PMDASENDMAIL(1)
NAME
pmdasendmail - sendmail performance metrics domain agent (PMDA)
SYNOPSIS
$PCP_PMDAS_DIR/sendmail/pmdasendmail [-d domain] [-l logfile] [-U username]
DESCRIPTION
pmdasendmail is a sendmail Performance Metrics Domain Agent (PMDA) which exports mail traffic statistics as collected by sendmail(1).
Before the sendmail PMDA can export any metrics, sendmail(1) must have statistics collection enabled. This involves checking the name of
the statistics file, as given by the OS or O StatusFile control lines in /etc/sendmail.cf, and then creating this file if it does not
already exist. Removing the file will terminate statistics collection by sendmail(1) and hence the sendmail PMDA.
A brief description of the pmdasendmail command line options follows:
-d It is absolutely crucial that the performance metrics domain number specified here is unique and consistent. That is, domain should
be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts.
-l Location of the log file. By default, a log file named sendmail.log is written in the current directory of pmcd(1) when pmdasendmail
is started, i.e. $PCP_LOG_DIR/pmcd. If the log file cannot be created or is not writable, output is written to the standard error
instead.
-U User account under which to run the agent. The default is the unprivileged "pcp" account in current versions of PCP, but in older
versions the superuser account ("root") was used by default.
There are no communication options, as the Install script ensures the sendmail PMDA will be connected to PMCD by a pipe.
INSTALLATION
If you want access to the names, help text and values for the sendmail performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/sendmail
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/sendmail
# ./Remove
pmdasendmail is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
FILES
$PCP_PMCDCONF_PATH
command line options used to launch pmdasendmail
$PCP_PMDAS_DIR/sendmail/help
default help text file for the sendmail metrics
$PCP_PMDAS_DIR/sendmail/Install
installation script for the pmdasendmail agent
$PCP_PMDAS_DIR/sendmail/Remove
undo installation script for the pmdasendmail agent
$PCP_LOG_DIR/pmcd/sendmail.log
default log file for error messages and other information from pmdasendmail
/etc/sendmail.cf
sendmail configuration file to identify the name of the statistics file
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5).
SEE ALSO
pmcd(1) and sendmail(1).
Performance Co-Pilot PCP PMDASENDMAIL(1)