Linux Health rule fails on CPU

jacobsenmjacobsenm
I am running ServersCheck 7.8.4.

And when I do a Lunix Health test it reports:



Error returned: No CPU found

Value returned: PING 0ms - 3 % CPU usage - sda2.33 % Free memory - 69 % free on sda1 - 100 % free on none - 96 % free on sda6 -



So in the test results I can see that the CPU uage is 3% and the test returns NO CPU found.



For the rest all is ok, the graphs are created fine. Only it sais CPU is not found and the rule is reported as DOWN.






Comments

  • AdministratorAdministrator
    The data is not being returned in the correct format.



    Check that the linux agent returns the correct variables for the linux OS you have. You can edit the source of the agent.



    You can also use SNMP to retrieve the values (but not in one check)
  • jacobsenmjacobsenm
    Hi,



    What format expects ServersCheck to be returned ?



    Thanks
  • AdministratorAdministrator
    See output at

    http://files.serverscheck.net/fixes/linucproc.log



    You can call it by copying the linucproc.conf file in your agents subdirectory and then from the command prompt you type:

    linuxproc_check.exe linucproc



    http://files.serverscheck.net/fixes/linucproc.conf
  • jacobsenmjacobsenm
    Thanks.

    I want to monitor vmware esx3.01 and the output of the cpu is:

    top b n 2 | grep 'total'



    It reports;

    total 0.0% 0.0% 0.9% 0.0% 0.0% 0.0% 99.0%

    total 3.9% 0.0% 0.1% 0.0% 0.0% 0.0% 95.8%





    I tried to replace total with

    top b n 2 | grep 'total' | sed 's# total#Cpu(s):#g'

    Results



    Cpu(s): 0.9% 0.0% 2.9% 0.0% 0.0% 0.0% 96.0%

    Cpu(s): 4.1% 0.0% 0.0% 0.0% 0.3% 0.0% 95.4%



    But still no CPU found. Is that due to the characters behind the percentage ??



    I was hoping it would work.



    Any feedback ?



    Thank you
This discussion has been closed.