Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-05 Thread salinois
again me, I can installed the paquet libdbd-sqlite3-perl, I made an error with my keyboard, an other one.gr 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

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-05 Thread salinois
hello Matthew et Vince, A good news; your script , Matthew run well, I searched where I had an error, I forgotted to add your script inside nrpe.cfg but now I search why I can't install "E: Impossible de trouver le paquet libdb-sqlite3-perl". result:  ./check_nrpe -H 192.168.0.161 -c

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-04 Thread salinois
again me, sorry I forgot to install the Nagios-plugins on my RPi, now is good with this command: ./check_nrpe -H 192.168.0.161 -c check_load WARNING - load average per CPU: 0.17, 0.20, 0.13|load1=0.168;0.150;0.300;0; load5=0.200;0.100;0.250;0; load15=0.133;0.050;0.200;0; but no good with

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-04 Thread salinois
hello again Matthew, I am testing your script on a RPi of test " no sensors connect", as weewx is "/Active: active (exited) since Tue 2023-11-28 21:37:14 CET; 1 months 6 days ago/", the error done by your script is good. [CRITICAL - last update was 108331 minutes ago at 17:52:17 21 oct.

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-04 Thread salinois
*hello Vince,* I test first in local on my RPi. I have an error with your scrip.  bash secs-since-modified.sh secs-since-modified.sh: ligne 5 : cd: $'/var/lib/weewx/weewx.sdb\r': Aucun fichier ou dossier de ce type secs-since-modified.sh: ligne 8: erreur de syntaxe près du symbole

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-04 Thread salinois
thanks Matthew, that is I think, as windows machine. I will try it. bye 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

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-04 Thread cric...@pobox.com
Here's another idea. I don't know anything about Nagios, but I'm running this screwy setup where I made up my own thermostat(s), and in the living room, the one has a small OLED display for set point, current temp, and also outside temp and wind chill that gets sent from my weather station's

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-04 Thread matthew wall
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

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-04 Thread salinois
hello Matthew and Vince. 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

Re: [weewx-user] Re: monitoring Weewx with Nagios

2024-01-03 Thread salinois
thanks all I will test that tomorrow and I will come back to you. Bye Patrick Le 03/01/2024 à 21:51, vince a écrit : Here's a quick script to print secs since a file was last modified and complain if it's more than 10 minutes, as an example.  You could alternately throw a snmp trap for

[weewx-user] Re: monitoring Weewx with Nagios

2024-01-03 Thread vince
Here's a quick script to print secs since a file was last modified and complain if it's more than 10 minutes, as an example. You could alternately throw a snmp trap for nagios to listen for, use 'logger' to log a syslog message, etc. Many ways to cause something to alert in a way that

[weewx-user] Re: monitoring Weewx with Nagios

2024-01-03 Thread sali...@gmail.com
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

[weewx-user] Re: monitoring Weewx with Nagios

2024-01-03 Thread matthew wall
here are some nagios plugins that i wrote a *very* long time ago. you might be able to use the pattern in check_wview as the basis for a check_weewx. you might even be able to use check_wview directly, depending on the schema you use in weewx.

[weewx-user] Re: monitoring Weewx with Nagios

2024-01-03 Thread matthew wall
On Wednesday, January 3, 2024 at 2:38:54 PM UTC-5 sali...@gmail.com 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

[weewx-user] Re: Monitoring WeeWX with Nagios

2022-03-05 Thread Rob Cranfill
I would like to monitor WeeWX with Nagios, too, but find the referenced page no longer there ("This site can't be reached"). If this isn't just a temporary outage, does anyone know where else this code might be found? I think I found his GitHub page but it's not there, I think. On Saturday,

[weewx-user] Re: Monitoring WeeWX with Nagios

2020-05-23 Thread Xant
Update Matthew Wall nagios plugin works. -- 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

[weewx-user] Re: Monitoring WeeWX with Nagios

2020-05-22 Thread Xant
Vince You correct, and apologies to MWall for missing the remarks. To note, there is a typo, or later name change (missing a 'd'): apt-get install libdb*d*-sqlite3-perl No longer DBI error, but still issues. I will keep posted, or try Maarten script. -- You received this message because

[weewx-user] Re: Monitoring WeeWX with Nagios

2020-05-22 Thread Maarten van der Hoeven
What I am doing now, is checking how 'old' the latest records are in the MySQL-database. If the last 10 minutes no records are found, then there must be something wrong. perl-script: #!/usr/bin/perl -w use strict; use DBI; #definition of variables my $db="weewx"; my $host="x.x.x.x"; my

[weewx-user] Re: Monitoring WeeWX with Nagios

2020-05-21 Thread vince
On Thursday, May 21, 2020 at 1:58:31 PM UTC-7, Xant wrote: > but get error of DBI not installed (perl DBI::Sqlite3 module), and I can > not figured-out. > > > The perl code requires a CPAN module so it can talk to the sqlite3 db Look at the bottom of the comment block at the top of check_wview

[weewx-user] Re: Monitoring WeeWX with Nagios

2020-05-21 Thread Xant
Turned-out the above is Matthew Wall page... maybe Matt can clarify. -- 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

[weewx-user] Re: Monitoring WeeWX with Nagios

2020-05-21 Thread Xant
Also in the search of Nagios plugin for WeeWX monitoring. Found the following: http://lancet.mit.edu/mwall/projects/weather/ http://lancet.mit.edu/mwall/projects/nagios/check_wview but get error of DBI not installed (perl DBI::Sqlite3 module), and I can not figured-out. Posting in case

[weewx-user] Re: Monitoring WeeWX with Nagios

2019-06-19 Thread Andy
I am just using out of the box checks for now. Maybe a log file monitor to make sure there are specific terms in the log (or not in the log) would be good Andy https://exchange.nagios.org/directory/Plugins/Network-Protocols/SNMP/Check-Processes-status-via-SNMP/details [image: