ok, I didn't understand everything, but I was able to put "python3 
/usr/share/weewx/weewxd" in the nagios plugins, and it responds: OK: 
Process exists. Running instances: 1, when I stop weewx it responds: 
CRITICAL: Process python3 does not exist, it's a start. for the archives I 
don't know how to do it.
THANKS Matthew 

On Wednesday, January 3, 2024 at 8:51:51 PM UTC+1 matthew wall wrote:

> On Wednesday, January 3, 2024 at 2:38:54 PM UTC-5 [email protected] wrote:
>
> I would like to monitor my weather station "weewx" with my Nagios; what 
> process should I monitor to verify that Weewx is active? 
>
>
> first order would be to check whether weewxd is running.  but a better 
> check would be to look at the age of the latest report.  if that report is 
> older than the archive interval, then warn.  if it is older than 2 or 3 
> archive intervals, the fail.
>
> another approach is to make weewx emit status information, then make your 
> nagios plugin look at that.  a simple way to do this is make a single weewx 
> template file that emits sensor timing/status information.  just do a bunch 
> of name=value pairs so its trivial to parse.  then make your nagios plugin 
> check the age of that file for the "is weewx emitting data every archive 
> interval" test, then make each of the names in the pairs additional 
> information for your nagios checks.
>
> m
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fdc4e68a-6d6b-4ef4-b6f5-e57b10896ad6n%40googlegroups.com.

Reply via email to