Forum Discussion

Songseajoon_222's avatar
Songseajoon_222
Icon for Nimbostratus rankNimbostratus
Jan 23, 2017

How to send mail when F5's CPU usage is 80%.

Hello? I am Ejes(SeaJoon-Song).

Using F5 BIG-IP 10050s 11.5.4

The Customer want How to send mail when F5's CPU usage is 80%.

And I Test this

vi /etc/ssmtp/ssmtp.conf

root=A1@naver.com

mailhub=smtp.naver.com:587

FromLineOverride=YES

UseSTARTTLS=yes

UseTLS=yes

AuthUser=A1@naver.com

AuthPass="My Password"

vi /etc/ssmtp/revaliases root:A1@naver.com

tmsh modify sys db cpu.logthreshold value "80"

and then, I don't know how to modify "user_alert.conf"

vi /config/user_alert.conf

alert ???????????????? "???"

{

    email toaddress="sjsong@ncurity.com"
    fromaddress="A1@naver.com"
    body="FireWall Link is Down"

}

I don't know how to write alert ~~~

2 Replies

  • Presumably you want to receive the log as at https://support.f5.com/csp/article/K67045449

    You need to find the alert name from the Log ID number which are stored in the map files in /etc/alertd. eg in this case you can see that the alert name is BIGIP_SYSTEM_CHECK_E_CPU_TEMP_HIGH and the log ID is 010d0001. So, look for the actual log entry used, pick out the ID and use 'grep /etc/alertd/*' to find the alert name and use that in your user_alert.conf file.

    [root@asm1:Active:Standalone] alertd  grep BIGIP_SYSTEM_CHECK_E_CPU_TEMP_HIGH *
    alert.conf:alert BIGIP_SYSTEM_CHECK_E_CPU_TEMP_HIGH {
    bigip_system_check_error_maps.h:0 LOG_EMERG     010d0001 BIGIP_SYSTEM_CHECK_E_CPU_TEMP_HIGH     "Blade %d Cpu %d: temperature (%d) is too high."