いわマン備忘録

備忘録とちょっとした設定メモや小ネタをUPしたいと思っております。

zabbixユーザーパラメータ

Zabbixでの監視用ユーザーパラメータのメモ。

###
### Hardware Monitor(OMSA導入)
###

# Hardware
UserParameter=hdw.fans,/opt/dell/srvadmin/sbin/omreport chassis|grep "Fans"
UserParameter=hdw.intr,/opt/dell/srvadmin/sbin/omreport chassis|grep "Intrusion"
UserParameter=hdw.mem,/opt/dell/srvadmin/sbin/omreport chassis|grep "Memory"
UserParameter=hdw.pwsp,/opt/dell/srvadmin/sbin/omreport chassis|grep "Power Supplies"
UserParameter=hdw.pwmm,/opt/dell/srvadmin/sbin/omreport chassis|grep "Power Management"
UserParameter=hdw.cpu,/opt/dell/srvadmin/sbin/omreport chassis|grep "Processors"
UserParameter=hdw.tmpr,/opt/dell/srvadmin/sbin/omreport chassis|grep "Temperatures"
UserParameter=hdw.volt,/opt/dell/srvadmin/sbin/omreport chassis|grep "Voltages"
UserParameter=hdw.hdwl,/opt/dell/srvadmin/sbin/omreport chassis|grep "Hardware Log"
UserParameter=hdw.batt,/opt/dell/srvadmin/sbin/omreport chassis|grep "Batteries"

# Storage Vdisk
UserParameter=vdisk.status,/opt/dell/srvadmin/sbin/omreport storage vdisk|grep "Status"|cut -f2 -d":"
UserParameter=vdisk.name,/opt/dell/srvadmin/sbin/omreport storage vdisk|grep "Name"|cut -f2 -d":"
UserParameter=vdisk.stat,/opt/dell/srvadmin/sbin/omreport storage vdisk|grep "State"|cut -f2 -d":"
UserParameter=vdisk.hotsp,/opt/dell/srvadmin/sbin/omreport storage vdisk|grep "Hot Spare"|cut -f2 -d":"
UserParameter=vdisk.layout,/opt/dell/srvadmin/sbin/omreport storage vdisk|grep "Layout"|cut -f2 -d":"
UserParameter=vdisk.size,/opt/dell/srvadmin/sbin/omreport storage vdisk|grep "Size"|cut -f2 -d":"
UserParameter=vdisk.bus,/opt/dell/srvadmin/sbin/omreport storage vdisk|grep "Bus"|cut -f2 -d":"

# Storage Controller
UserParameter=cntrl.status,/opt/dell/srvadmin/sbin/omreport storage controller|grep "Status"|cut -f2 -d":"
UserParameter=cntrl.name,/opt/dell/srvadmin/sbin/omreport storage controller|grep "Name"|cut -f2 -d":"
UserParameter=cntrl.slot,/opt/dell/srvadmin/sbin/omreport storage controller|grep "Slot"|cut -f2 -d":"
UserParameter=cntrl.stat,/opt/dell/srvadmin/sbin/omreport storage controller|grep "State"|cut -f2 -d":"
UserParameter=cntrl.rebld,/opt/dell/srvadmin/sbin/omreport storage controller|grep "Rebuild"|cut -f2 -d":"
UserParameter=cntrl.bgi,/opt/dell/srvadmin/sbin/omreport storage controller|grep "BGI"|cut -f2 -d":"
UserParameter=cntrl.cmem,/opt/dell/srvadmin/sbin/omreport storage controller|grep "Cache Memory"|cut -f2 -d":"
UserParameter=cntrl.allow,/opt/dell/srvadmin/sbin/omreport storage controller|grep "Allow"|cut -f2 -d":"

###
### MySQL Extended Status
###

# mysql.abtcli[Aborted_clients]
UserParameter=mysql.abtcli,mysqladmin -uroot -p9ma9ma extended-status|grep "Aborted_clients"|cut -f3 -d"|"

# mysql.abtcnt[Aborted_connects]
UserParameter=mysql.abtcnt,mysqladmin -uroot -p9ma9ma extended-status|grep "Aborted_connects"|cut -f3 -d"|"

# mysql.bincachedisk[Binlog_cache_disk_use]
UserParameter=mysql.bincachedisk,mysqladmin -uroot -p9ma9ma extended-status|grep "Binlog_cache_disk_use"|cut -f3 -d"|"

# mysql.bincacheuse[Binlog_cache_use]
UserParameter=mysql.bincacheuse,mysqladmin -uroot -p9ma9ma extended-status|grep "Binlog_cache_use"|cut -f3 -d"|"

# mysql.bytrece[Bytes_received]
UserParameter=mysql.bytrece,mysqladmin -uroot -p9ma9ma extended-status|grep "Bytes_received"|cut -f3 -d"|"

# mysql.bytsent[Bytes_sent]
UserParameter=mysql.bytsent,mysqladmin -uroot -p9ma9ma extended-status|grep "Bytes_sent"|cut -f3 -d"|"

# mysql.tmpdisk[Created_tmp_disk_tables]
UserParameter=mysql.tmpdisk,mysqladmin -uroot -p9ma9ma extended-status|grep "Created_tmp_disk_tables"|cut -f3 -d"|"

# mysql.tmpfile[Created_tmp_files]
UserParameter=mysql.tmpfile,mysqladmin -uroot -p9ma9ma extended-status|grep "Created_tmp_files"|cut -f3 -d"|"

# mysql.tmptbls[Created_tmp_tables]
UserParameter=mysql.tmptbls,mysqladmin -uroot -p9ma9ma extended-status|grep "Created_tmp_tables"|cut -f3 -d"|"

# mysql.hndlrdfst[Handler_read_first]
UserParameter=mysql.hndlrdfst,mysqladmin -uroot -p9ma9ma extended-status|grep "Handler_read_first"|cut -f3 -d"|"

# mysql.hndlrdkey[Handler_read_key]
UserParameter=mysql.hndlrdkey,mysqladmin -uroot -p9ma9ma extended-status|grep "Handler_read_key"|cut -f3 -d"|"

# mysql.hndlrdnext[Handler_read_next]
UserParameter=mysql.hndlrdnext,mysqladmin -uroot -p9ma9ma extended-status|grep "Handler_read_next"|cut -f3 -d"|"

# mysql.hndlrdrnd[Handler_read_rnd]
UserParameter=mysql.hndlrdrnd,mysqladmin -uroot -p9ma9ma extended-status|grep -w "Handler_read_rnd"|cut -f3 -d"|"

# mysql.hndlrdrollbk[Handler_rollback]
UserParameter=mysql.hndlrdrollbk,mysqladmin -uroot -p9ma9ma extended-status|grep "Handler_rollback"|cut -f3 -d"|"

# mysql.indbbfplpgdt[Innodb_buffer_pool_pages_data]
UserParameter=mysql.indbbfplpgdt,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_pages_data"|cut -f3 -d"|"

# mysql.indbbfplbydt[Innodb_buffer_pool_bytes_data]
UserParameter=mysql.indbbfplbydt,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_bytes_data"|cut -f3 -d"|"

# mysql.indbbfplpgflus[Innodb_buffer_pool_pages_flushed]
UserParameter=mysql.indbbfplpgflus,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_pages_flushed"|cut -f3 -d"|"

# mysql.indbbfplpgfree[Innodb_buffer_pool_pages_free]
UserParameter=mysql.indbbfplpgfree,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_pages_free"|cut -f3 -d"|"

# mysql.indbbfplpgmisc[Innodb_buffer_pool_pages_misc]
UserParameter=mysql.indbbfplpgmisc,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_pages_misc"|cut -f3 -d"|"

# mysql.indbbfplpgtotal[Innodb_buffer_pool_pages_total]
UserParameter=mysql.indbbfplpgtotal,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_pages_total"|cut -f3 -d"|"

# mysql.indbbfplrdahrnd[Innodb_buffer_pool_read_ahead_rnd]
UserParameter=mysql.indbbfplrdahrnd,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_read_ahead_rnd"|cut -f3 -d"|"

# mysql.indbbfplrdrequ[Innodb_buffer_pool_read_requests]
UserParameter=mysql.indbbfplrdrequ,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_read_requests"|cut -f3 -d"|"

# mysql.indbbfplwtfree[Innodb_buffer_pool_wait_free]
UserParameter=mysql.indbbfplwtfree,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_wait_free"|cut -f3 -d"|"

# mysql.indbbfplwtrequ[Innodb_buffer_pool_write_requests]
UserParameter=mysql.indbbfplwtrequ,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_buffer_pool_write_requests"|cut -f3 -d"|"

# mysql.indbdblwtpgwtn[Innodb_dblwr_pages_written]
UserParameter=mysql.indbdblwtpgwtn,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_dblwr_pages_written"|cut -f3 -d"|"

# mysql.indbdblwtpgwts[Innodb_dblwr_writes]
UserParameter=mysql.indbdblwtpgwts,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_dblwr_writes"|cut -f3 -d"|"

# mysql.indblogwaits[Innodb_log_waits]
UserParameter=mysql.indblogwaits,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_log_waits"|cut -f3 -d"|"

# mysql.indblogwtrequ[Innodb_log_write_requests]
UserParameter=mysql.indblogwtrequ,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_log_write_requests"|cut -f3 -d"|"

# mysql.indbrwcurrwaits[Innodb_row_lock_current_waits]
UserParameter=mysql.indbrwcurrwaits,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_row_lock_current_waits"|cut -f3 -d"|"

# mysql.indbrwlktime[Innodb_row_lock_time]
UserParameter=mysql.indbrwlktime,mysqladmin -uroot -p9ma9ma extended-status|grep -w "Innodb_row_lock_time"|cut -f3 -d"|"

# mysql.indbrwlktimeavg[Innodb_row_lock_time_avg]
UserParameter=mysql.indbrwlktimeavg,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_row_lock_time_avg"|cut -f3 -d"|"

# mysql.indbrwlktimemax[Innodb_row_lock_time_max]
UserParameter=mysql.indbrwlktimemax,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_row_lock_time_max"|cut -f3 -d"|"

# mysql.indbrwlkwaits[Innodb_row_lock_waits]
UserParameter=mysql.indbrwlkwaits,mysqladmin -uroot -p9ma9ma extended-status|grep "Innodb_row_lock_waits"|cut -f3 -d"|"

# mysql.mxusdconnt[Max_used_connections]
UserParameter=mysql.mxusdconnt,mysqladmin -uroot -p9ma9ma extended-status|grep "Max_used_connections"|cut -f3 -d"|"

# mysql.openfile[Open_files]
UserParameter=mysql.openfile,mysqladmin -uroot -p9ma9ma extended-status|grep "Open_files"|cut -f3 -d"|"

# mysql.opentbl[Open_tables]
UserParameter=mysql.opentbl,mysqladmin -uroot -p9ma9ma extended-status|grep "Open_tables"|cut -f3 -d"|"

# mysql.qcachefrmem[Qcache_free_memory]
UserParameter=mysql.qcachefrmem,mysqladmin -uroot -p9ma9ma extended-status|grep "Qcache_free_memory"|cut -f3 -d"|"

# mysql.qcachehits[Qcache_hits]
UserParameter=mysql.qcachehits,mysqladmin -uroot -p9ma9ma extended-status|grep "Qcache_hits"|cut -f3 -d"|"

# mysql.qcacheinst[Qcache_inserts]
UserParameter=mysql.qcacheinst,mysqladmin -uroot -p9ma9ma extended-status|grep "Qcache_inserts"|cut -f3 -d"|"

# mysql.qcachelowmemprun[Qcache_lowmem_prunes]
UserParameter=mysql.qcachelowmemprun,mysqladmin -uroot -p9ma9ma extended-status|grep "Qcache_lowmem_prunes"|cut -f3 -d"|"

# mysql.qcachenot[Qcache_not_cached]
UserParameter=mysql.qcachenot,mysqladmin -uroot -p9ma9ma extended-status|grep "Qcache_not_cached"|cut -f3 -d"|"

# mysql.qcachein[Qcache_queries_in_cache]
UserParameter=mysql.qcachein,mysqladmin -uroot -p9ma9ma extended-status|grep "Qcache_queries_in_cache"|cut -f3 -d"|"

# mysql.qcachettlblks[Qcache_total_blocks]
UserParameter=mysql.qcachettlblks,mysqladmin -uroot -p9ma9ma extended-status|grep "Qcache_total_blocks"|cut -f3 -d"|"

# mysql.slctfljoin[Select_full_join]
UserParameter=mysql.slctfljoin,mysqladmin -uroot -p9ma9ma extended-status|grep "Select_full_join"|cut -f3 -d"|"

# mysql.slctflrngjoin[Select_full_range_join]
UserParameter=mysql.slctflrngjoin,mysqladmin -uroot -p9ma9ma extended-status|grep "Select_full_range_join"|cut -f3 -d"|"

# mysql.slctscan[Select_scan]
UserParameter=mysql.slctscan,mysqladmin -uroot -p9ma9ma extended-status|grep "Select_scan"|cut -f3 -d"|"

# mysql.slvoptmptbl[Slave_open_temp_tables]
UserParameter=mysql.slvoptmptbl,mysqladmin -uroot -p9ma9ma extended-status|grep "Slave_open_temp_tables"|cut -f3 -d"|"

# mysql.slvrtrytran[Slave_retried_transactions]
UserParameter=mysql.slvrtrytran,mysqladmin -uroot -p9ma9ma extended-status|grep "Slave_retried_transactions"|cut -f3 -d"|"

# mysql.slvtun[Slave_running]
UserParameter=mysql.slvtun,mysqladmin -uroot -p9ma9ma extended-status|grep "Slave_running"|cut -f3 -d"|"

# mysql.slwlnctrd[Slow_launch_threads]
UserParameter=mysql.slwlnctrd,mysqladmin -uroot -p9ma9ma extended-status|grep "Slow_launch_threads"|cut -f3 -d"|"

# mysql.srtmrpas[Sort_merge_passes]
UserParameter=mysql.srtmrpas,mysqladmin -uroot -p9ma9ma extended-status|grep "Sort_merge_passes"|cut -f3 -d"|"

# mysql.srtrng[Sort_range]
UserParameter=mysql.srtrng,mysqladmin -uroot -p9ma9ma extended-status|grep "Sort_range"|cut -f3 -d"|"

# mysql.srtrow[Sort_rows]
UserParameter=mysql.srtrow,mysqladmin -uroot -p9ma9ma extended-status|grep "Sort_rows"|cut -f3 -d"|"

# mysql.srtscan[Sort_scan]
UserParameter=mysql.srtscan,mysqladmin -uroot -p9ma9ma extended-status|grep "Sort_scan"|cut -f3 -d"|"

# mysql.tbllkimmdt[Table_locks_immediate]
UserParameter=mysql.tbllkimmdt,mysqladmin -uroot -p9ma9ma extended-status|grep "Table_locks_immediate"|cut -f3 -d"|"

# mysql.tbllkwait[Table_locks_waited]
UserParameter=mysql.tbllkwait,mysqladmin -uroot -p9ma9ma extended-status|grep "Table_locks_waited"|cut -f3 -d"|"

# mysql.tblopcacheht[Table_open_cache_hits]
UserParameter=mysql.tblopcacheht,mysqladmin -uroot -p9ma9ma extended-status|grep "Table_open_cache_hits"|cut -f3 -d"|"

# mysql.tblopcachemiss[Table_open_cache_misses]
UserParameter=mysql.tblopcachemiss,mysqladmin -uroot -p9ma9ma extended-status|grep "Table_open_cache_misses"|cut -f3 -d"|"

# mysql.trdcache[Threads_cached]
UserParameter=mysql.trdcache,mysqladmin -uroot -p9ma9ma extended-status|grep "Threads_cached"|cut -f3 -d"|"

# mysql.trdcnct[Threads_connected]
UserParameter=mysql.trdcnct,mysqladmin -uroot -p9ma9ma extended-status|grep "Threads_connected"|cut -f3 -d"|"

# mysql.trdcrat[Threads_created]
UserParameter=mysql.trdcrat,mysqladmin -uroot -p9ma9ma extended-status|grep "Threads_created"|cut -f3 -d"|"

###
### MySQL Salve Monitor
###

# MySQL Slave IO State
# mysql.iostate[Slave_IO_State]
UserParameter=mysql.iostate,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Slave_IO_State"|cut -f2 -d":"

# MySQL Slave Master Host
# mysql.masterhost[Master_Host]
UserParameter=mysql.masterhost,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Master_Host"|cut -f2 -d":"

# MySQL Slave Master User
# mysql.masteruser[Master_User]
UserParameter=mysql.masteruser,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Master_User"|cut -f2 -d":"

# MySQL Slave Master Port
# mysql.masteruser[Master_Port]
UserParameter=mysql.masterport,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Master_Port"|cut -f2 -d":"

# MySQL Slave Connect Retry
# mysql.connectretry[Connect_Retry]
UserParameter=mysql.connectretry,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Connect_Retry"|cut -f2 -d":"

# MySQL Slave Master Log File
# mysql.logfile[Master_Log_File]
UserParameter=mysql.logfile,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Master_Log_File"|cut -f2 -d":"

# MySQL Slave Read Master Log Pos
# mysql.logpos[Read_Master_Log_Pos]
UserParameter=mysql.logpos,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Read_Master_Log_Pos"|cut -f2 -d":"

# MySQL Slave Relay Log File
# mysql.relaylog[Relay_Log_File]
UserParameter=mysql.relaylog,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Relay_Log_File"|cut -f2 -d":"

# MySQL Slave Relay Log Pos
# mysql.relaypos[Relay_Log_Pos]
UserParameter=mysql.relaypos,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Relay_Log_Pos"|cut -f2 -d":"

# MySQL Slave Relay Master Log File
# mysql.relaymasterlog[Relay_Master_Log_File]
UserParameter=mysql.relaymasterlog,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Relay_Master_Log_File"|cut -f2 -d":"

# MySQL Slave Slave IO Running
# mysql.iorunning[Slave_IO_Running]
UserParameter=mysql.iorunning,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Slave_IO_Running"|cut -f2 -d":"

# MySQL Slave Slave SQL Running
# mysql.sqlrunning[Slave_SQL_Running]
UserParameter=mysql.sqlrunning,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Slave_SQL_Running:"|cut -f2 -d":"

# MySQL Slave Last Error
# mysql.lasterr[Last_Error]
UserParameter=mysql.lasterr,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Last_Error"

# MySQL Slave Seconds Behind Master
# mysql.secondsbehined[Seconds_Behind_Master]
UserParameter=mysql.secondsbehined,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Seconds_Behind_Master"|cut -f2 -d":"

# MySQL Slave Master Server Id
# mysql.masterid[Master_Server_Id]
UserParameter=mysql.masterid,mysql -uroot -p9ma9ma -e'show slave status \G'|grep "Master_Server_Id"|cut -f2 -d":"

 

###
### Postfix Relay Monitor
###

# IP Addr Monitor
# postfix.ipaddr[smtp_bind_address]
UserParameter=postfix.ipaddr,/usr/sbin/postconf|grep "smtp_bind_address ="|cut -f2 -d"="

# Permit IP Addr
# postfix.permitip
UserParameter=postfix.permitip,/bin/cat /etc/postfix/network_table

# Reject IP Addr or Domains
# postfix.rejectip
UserParameter=postfix.rejectip,/bin/cat /etc/postfix/reject_client|grep "REJECT"

# Transport Map
# postfix.transport
UserParameter=postfix.transport,/bin/cat /etc/postfix/transport|grep "smtp"

# Minimal Backoff Time
# postfix.mmbackoff[minimal_backoff_time]
UserParameter=postfix.mmbackoff,/usr/sbin/postconf|grep "minimal_backoff_time ="|cut -f2 -d"="

# Maximal Backoff Time
# postfix.mxbackoff[maximal_backoff_time]
UserParameter=postfix.mxbackoff,/usr/sbin/postconf|grep "maximal_backoff_time ="|cut -f2 -d"="

# Maximal Queue Life Time
# postfix.backoff[maximal_queue_lifetime]
UserParameter=postfix.qlife,/usr/sbin/postconf|grep "maximal_queue_lifetime ="|cut -f2 -d"="

# Bounce Queue Life Time
# postfix.buncq[bounce_queue_lifetime]
UserParameter=postfix.buncq,/usr/sbin/postconf|grep "bounce_queue_lifetime ="|cut -f2 -d"="

# Bounce Mail Size Limit
# postfix.bunclmt[bounce_size_limit]
UserParameter=postfix.bunclmt,/usr/sbin/postconf|grep "bounce_size_limit ="|cut -f2 -d"="

# Queue Run Delay
# postfix.rundelay[queue_run_delay]
UserParameter=postfix.rundelay,/usr/sbin/postconf|grep "queue_run_delay ="|cut -f2 -d"="

# My Domain
# postfix.domain[mydomain]
UserParameter=postfix.domain,/usr/sbin/postconf|grep -w "mydomain ="|cut -f2 -d"="

# Postfix Incomming Queue
# qshape.incoming
UserParameter=qshape.incoming,/usr/sbin/qshape incoming|head|grep TOTAL

# Postfix Active Queue
# qshape.active
UserParameter=qshape.active,/usr/sbin/qshape active|head|grep TOTAL

# Postfix Deferred Queue
# qshape.deferred
UserParameter=qshape.deferred,/usr/sbin/qshape deferred|head|grep TOTAL

# Postfix Incomming Queue 5min Num
# qshape.incomingnum
UserParameter=qshape.incomingnum,/usr/sbin/qshape incoming|head|grep "TOTAL"|awk '{print $2}'

# Postfix Active Queue 5min Num
# qshape.active
UserParameter=qshape.activenum,/usr/sbin/qshape active|head|grep "TOTAL"|awk '{print $2}'

# Postfix Deferred Queue 5min Num
# qshape.deferred
UserParameter=qshape.deferrednum,/usr/sbin/qshape deferred|head|grep "TOTAL"|awk '{print $2}'

###
### Postfix BounceMail Num
###

# Postfix BounceMail Num
# postfix.bouncenum
UserParameter=postfix.bouncenum,less /var/log/maillog|grep "to=<error@ドメイン>,"|wc -l

# docomo BounceNum TOTAL
# dc.bouncenumtt
UserParameter=dc.bouncenumtt,less /var/log/maillog|grep "host mfsmax.docomo.ne.jp"|wc -l

# docomo BounceNum DATA
# dc.bouncenumdt
UserParameter=dc.bouncenumdt,less /var/log/maillog|grep "host mfsmax.docomo.ne.jp"|grep "in reply to end of DATA command"|wc -l

# docomo BounceNum RCPT TO
# dc.bouncenumrc
UserParameter=dc.bouncenumrc,less /var/log/maillog|grep "host mfsmax.docomo.ne.jp"|grep "in reply to RCPT TO command"|wc -l

# AU BounceNum TOTAL
# au.bouncenumtt
UserParameter=au.bouncenumtt,less /var/log/maillog|grep "host lsean.ezweb.ne.jp"|wc -l

# AU BounceNum DATA
# au.bouncenumdt
UserParameter=au.bouncenumdt,less /var/log/maillog|grep "host lsean.ezweb.ne.jpp"|grep "in reply to end of DATA command"|wc -l

# AU BounceNum RCPT TO
# au.bouncenumrc
UserParameter=au.bouncenumrc,less /var/log/maillog|grep "host lsean.ezweb.ne.jp"|grep "in reply to RCPT TO command"|wc -l

# Softbank BounceNum TOTAL
# sb.bouncenumtt
UserParameter=sb.bouncenumtt,less /var/log/maillog|grep "host msv.softbank.ne.jp"|wc -l

# Softbank BounceNum DATA
# sb.bouncenumdt
UserParameter=sb.bouncenumdt,less /var/log/maillog|grep "host msv.softbank.ne.jp"|grep "in reply to end of DATA command"|wc -l

# Softbank BounceNum RCPT TO
# sb.bouncenumrc
UserParameter=sb.bouncenumrc,less /var/log/maillog|grep "host msv.softbank.ne.jp"|grep "in reply to RCPT TO command"|wc -l

# Yahoo TOTAL
# yh.bouncenumtt
UserParameter=yh.bouncenumtt,less /var/log/maillog|grep "host *.mail.yahoo.co.jp"|wc -l

# Yahoo BounceNum DATA
# yh.bouncenumdt
UserParameter=yh.bouncenumdt,less /var/log/maillog|grep "host *.mail.yahoo.co.jp"|grep "in reply to end of DATA command"|wc -l

# Yahoo BounceNum RCPT TO
# yh.bouncenumrc
UserParameter=yh.bouncenumrc,less /var/log/maillog|grep "host *.mail.yahoo.co.jp"|grep "in reply to RCPT TO command"|wc -l

# Gmail TOTAL
# gm.bouncenumtt
UserParameter=gm.bouncenumtt,less /var/log/maillog|grep "host gmail-smtp-in.l.google.com"|wc -l

# Gmail BounceNum DATA
# gm.bouncenumdt
UserParameter=gm.bouncenumdt,less /var/log/maillog|grep "host gmail-smtp-in.l.google.com"|grep "said: 550-5.1.1"|wc -l

# Gmail BounceNum RCPT TO
# gm.bouncenumrc
UserParameter=gm.bouncenumrc,less /var/log/maillog|grep "host gmail-smtp-in.l.google.com"|grep "in reply to RCPT TO command"|wc -l