Real time CPU Monitoring shell script Get alert when CPU utilization is more

ARK

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

You may also like...

5 Responses

  1. Naresh says:

    Thanks for the script, but i am getting below errors while running it.

    awk: cmd. line:1: fatal: cannot open file `/usr/include/asm-generic/param.h’ for reading (No such file or directory)
    dc: stack empty
    cpustatus.sh: line 11: [: 25.9000: integer expression expected
    CPU Utilization is Normal

    awk: cmd. line:1: fatal: cannot open file `/usr/include/asm-generic/param.h’ for reading (No such file or directory)
    dc: stack empty
    cpustatus.sh: line 11: [: 6.3400: integer expression expected
    CPU Utilization is Normal

    I am running as root and os version is RHEL 5.x

  2. Shaffie says:

    Am also getting the same error
    dc: stack empty
    ./cpu_usage.sh: line 14: [: 6.3400: integer expression expected
    CPU Utilization is Normal

  3. ankit says:

    Yes Same here getting the same error message
    dc: stack empty
    cpustatus.sh: line 8: [: 100.0000: integer expression expected
    CPU Utilization is Normal

Leave a Reply