[cpu temperature : graph]

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[cpu temperature : graph]

LACROIX Jean Marc
Hi,

Im am  monitoring the CPU temperature with success with following code :

cat /usr/local/bin/read_temperature_cpu_0.sh

# extract temperature as one 'int number' in order to exit with this value
TEMP=`/usr/bin/sensors |grep "Core 0:" |awk '{print $3}' |awk '{printf
"%d",$1}'`
exit $TEMP


and ....

cat /etc/monit/conf.d/monit_check_cpu_temperature

check program temp_cpu_0_thread_0_1 path
/usr/local/bin/read_temperature_cpu_0.sh
     if status > 60 then alert
     group temperature_CPU


Is it possible to graph the temperature with report/analytic button in
M/monit, and if yes , how ?

Thanks in advance for your help

Regards
--
--------------------------------------
  -- Jean-Marc LACROIX                 --
   -- mailto : [hidden email] --
     ---------------------------------------

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: [cpu temperature : graph]

martinp@tildeslash.com
Hi,

custom charts are currently not supported in M/Monit, we plan to add it.

Best regards,
Martin



> On 6 Jul 2017, at 06:38, LACROIX Jean Marc <[hidden email]> wrote:
>
> Hi,
>
> Im am  monitoring the CPU temperature with success with following code :
>
> cat /usr/local/bin/read_temperature_cpu_0.sh
>
> # extract temperature as one 'int number' in order to exit with this value
> TEMP=`/usr/bin/sensors |grep "Core 0:" |awk '{print $3}' |awk '{printf "%d",$1}'`
> exit $TEMP
>
>
> and ....
>
> cat /etc/monit/conf.d/monit_check_cpu_temperature
>
> check program temp_cpu_0_thread_0_1 path /usr/local/bin/read_temperature_cpu_0.sh
>    if status > 60 then alert
>    group temperature_CPU
>
>
> Is it possible to graph the temperature with report/analytic button in M/monit, and if yes , how ?
>
> Thanks in advance for your help
>
> Regards
> --
> --------------------------------------
> -- Jean-Marc LACROIX                 --
>  -- mailto : [hidden email] --
>    ---------------------------------------
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: [cpu temperature : graph]

LACROIX Jean Marc
Hi,

Thanks for this good news.
I think that another good custom charts is the ability to monitor
battery charge and discharge
Best regards

Le 06/07/2017 à 14:52, [hidden email] a écrit :

> Hi,
>
> custom charts are currently not supported in M/Monit, we plan to add it.
>
> Best regards,
> Martin
>
>
>
>> On 6 Jul 2017, at 06:38, LACROIX Jean Marc <[hidden email]> wrote:
>>
>> Hi,
>>
>> Im am  monitoring the CPU temperature with success with following code :
>>
>> cat /usr/local/bin/read_temperature_cpu_0.sh
>>
>> # extract temperature as one 'int number' in order to exit with this value
>> TEMP=`/usr/bin/sensors |grep "Core 0:" |awk '{print $3}' |awk '{printf "%d",$1}'`
>> exit $TEMP
>>
>>
>> and ....
>>
>> cat /etc/monit/conf.d/monit_check_cpu_temperature
>>
>> check program temp_cpu_0_thread_0_1 path /usr/local/bin/read_temperature_cpu_0.sh
>>    if status > 60 then alert
>>    group temperature_CPU
>>
>>
>> Is it possible to graph the temperature with report/analytic button in M/monit, and if yes , how ?
>>
>> Thanks in advance for your help
>>
>> Regards
>> --
>> --------------------------------------
>> -- Jean-Marc LACROIX                 --
>>  -- mailto : [hidden email] --
>>    ---------------------------------------
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>


--
--------------------------------------
  -- Jean-Marc LACROIX                 --
   -- mailto : [hidden email] --
     ---------------------------------------

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general