[cpu temperature : graph]

2017-07-05 Thread 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 : jeanmarc.lacr...@free.fr --
---

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


Re: M/Monit Network Settings

2017-07-05 Thread Saagar Deshpande
Okay, I will try this. Thanks all!

On Wed, Jul 5, 2017 at 2:38 AM, Jan-Henrik Haukeland 
wrote:

>
> > On 4 Jul 2017, at 22:28, Saagar Deshpande  wrote:
> >
> > When I set the address as: www.foobar.com/monit
> > I see the error as "Host not specified in the URL" and the connection
> fails.
>
> Address should be the DNS name of the host or its IP-address. You are
> using an URL-path. If you cannot setup Monit on the host on a specific
> port, but have to go through a proxy you will need to use a sub-domain for
> monit. That is, monit.foobar.com and setup proxy accordingly.
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>



-- 
Saagar Deshpande
Senior Software Engineer
973-454-4815
saa...@edo.com
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Re: M/Monit Network Settings

2017-07-05 Thread Jan-Henrik Haukeland

> On 4 Jul 2017, at 22:28, Saagar Deshpande  wrote:
> 
> When I set the address as: www.foobar.com/monit
> I see the error as "Host not specified in the URL" and the connection fails.

Address should be the DNS name of the host or its IP-address. You are using an 
URL-path. If you cannot setup Monit on the host on a specific port, but have to 
go through a proxy you will need to use a sub-domain for monit. That is, 
monit.foobar.com and setup proxy accordingly. 


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