again me,
I can installed the paquet libdbd-sqlite3-perl, I made an error with my
keyboard, an other one.....grrrrr
now the script is OK.
./check_wview.txt
OK - last update was 3.00 seconds ago at 17:35:16 05 janv. 2024|
lastupdate=0.05;30;120 dewpoint=49.6823087947918 rainRate=0
appTemp=67.3970645525476 windchill=67.4003136423159 rain=0
heatindex=66.3327863853724 outHumidity=53.0306676345731
altimeter=29.6960696753803 soilTemp1=66.8762681818182
barometer=29.6316015533198 humidex=69.555285488496
outTemp=67.4003136423159 pressure=27.3071543536385 windGust=0 windrun=0
windSpeed=0 cloudbase=6323.41291818588
Now , I must test the script of Vince.
thank Matthew
Patrick
Le 04/01/2024 à 13:37, matthew wall a écrit :
On Thursday, January 4, 2024 at 4:54:05 AM UTC-5 sali...@gmail.com wrote:
I just looked at your files, I think "tell me if it's true" that
your Nagios is on the same machine as "Weewx"; my Nagios is on a
server outside the RPi, so I think there must be something missing
in the programs to run it remotely, like I have in the other
Nagios plugins; for example: -H $HOSTADDRESS$ etc etc;
patrick,
if nagios is on the same machine, then you can run the plugin
directly. but if nagios is on a different machine, then you must
install the "nagios remote plugin executor" (NRPE) on the machine
running weewx. then NRPE will run the plugin.
if you do not want to install NRPE on the weewx machine, then you must
talk to the weewx machine over standard network interfaces. in that
case, your nagios plugin might do an http/https request to the weewx
machine to see when the weewx report was last updated. of course,
this assumes that you are running a web server on the weewx machine to
publish your weewx reports. you could also run a nagios ssh plugin -
in that case, the plugin should execute a command on the weewx machine
that returns the information you want in nagios. that would use the
same approach that you see in the nagios_wview plugin (check for
existance of weewxd process, check database timestamp, return data
from database as performance data), but do it over an ssh connection
with shell scripting.
another approach would be to write a weewx service, say weewx-nagios,
that listens on a network port then provides the information about
weewxd and report status when it is queried.
or create a weewx-snmp extension that runs on the weewx machine,
gathers the weewx and report status, but responds to standard snmp
queries. that would be the most generic approach, and would let you
monitor weewx using much any tool that can do snmp - nagios, icinga,
prtg, zabbix, etc.
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/015ce033-e6db-431e-b63b-7f08cb9291f7n%40googlegroups.com
<https://groups.google.com/d/msgid/weewx-user/015ce033-e6db-431e-b63b-7f08cb9291f7n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/ed770556-d2e3-482a-97e8-6e86e7476285%40gmail.com.