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/e226b3ff-d919-443a-8a64-d018b84fc570n%40googlegroups.com.

Reply via email to