monitorix-general Mailing List for Monitorix
Monitorix is a system monitoring tool
Brought to you by:
mikaku
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(5) |
Feb
(6) |
Mar
(3) |
Apr
(7) |
May
(6) |
Jun
(3) |
Jul
|
Aug
(8) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
|
| 2011 |
Jan
|
Feb
(6) |
Mar
(9) |
Apr
(6) |
May
(4) |
Jun
(5) |
Jul
(5) |
Aug
(2) |
Sep
(9) |
Oct
(6) |
Nov
(1) |
Dec
(3) |
| 2012 |
Jan
(1) |
Feb
|
Mar
(22) |
Apr
(5) |
May
(1) |
Jun
(11) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(8) |
Dec
|
| 2013 |
Jan
(5) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(11) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
(15) |
Nov
(1) |
Dec
(10) |
| 2014 |
Jan
|
Feb
(11) |
Mar
(12) |
Apr
(10) |
May
(21) |
Jun
(24) |
Jul
(12) |
Aug
(7) |
Sep
(10) |
Oct
(3) |
Nov
(21) |
Dec
(17) |
| 2015 |
Jan
(2) |
Feb
|
Mar
(10) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(4) |
Nov
(1) |
Dec
|
| 2016 |
Jan
(5) |
Feb
(24) |
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(5) |
Dec
(2) |
| 2017 |
Jan
|
Feb
(3) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(6) |
Nov
|
Dec
(5) |
| 2018 |
Jan
(5) |
Feb
(2) |
Mar
(3) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(5) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| 2020 |
Jan
|
Feb
(5) |
Mar
|
Apr
(11) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
(10) |
Feb
|
Mar
|
Apr
(8) |
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Jordi S. <jo...@fi...> - 2025-08-14 09:14:11
|
Perfect, then I have updated the example in the Monitorix web site. Thank you. On 8/14/25 11:05, wilson rodrigues wrote: > Hello, > Yes this worked for me. Now both graphs are displaying correctly. > Thanks > ---------------- > To: wilson rodrigues (wro...@ya...), monitorix- > ge...@li... (mon...@li...); > Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix; > 14.08.2025, 14:24, "Jordi Sanfeliu" <jo...@fi...>: > > Hello, > > If the contents you shared were created by crond then problem might be > that at the time when Monitorix reads the files they are truncated, > since the crond takes some time to create them and Monitorix tries to > read both files around the sezond zero. > > I'd recommend you to prefix the lines in your scripts with a 'sleep 10', > to make sure that Monitorix reads the previous values before the files > get truncated, > > Let me know if that worked for you. > Regards. > > > > On 8/14/25 10:48, wilson rodrigues wrote: > > Hello, > The two files which I shared were created by cron. I will > troubleshoot > the cron issue and check monitorix configuration once more. > Thanks for your understanding and support. > ---------------- > To: wilson rodrigues (wro...@ya... > <mailto:wro...@ya...>), monitorix- > ge...@li... > <mailto:ge...@li...> (monitorix- > ge...@li... <mailto:monitorix- > ge...@li...>); > Subject: [Monitorix-general] [SPAM] want to monitor ping with > monitorix; > 14.08.2025, 14:11, "Jordi Sanfeliu" <jo...@fi... > <mailto:jo...@fi...>>: > > Hello, > > If running the scripts manually the graphs are created > successfully then > the problem is in your crond daemon, not in Monitorix. > > Don't show me the contents of these two files after > executing the > scripts manually since we already know that it works this > way. Please, > remove these files and let your crond create them, and > then read their > contents and see if are correct. > > Besides this, I see some errors in your log file that > makes me think > that your configuration file is either outdated or you > removed a lot of > lines from it, which is not recommended. > > Please, read the FAQ <https://www.monitorix.org/ > faq.html#Q107 <https://www.monitorix.org/faq.html#Q107> > <https://www.monitorix.org/faq.html#Q107 <https:// > www.monitorix.org/faq.html#Q107>>> to know > how to configure Monitorix properly. > > Regards. > > > > On 8/14/25 10:30, wilson rodrigues wrote: > > Hello, > I misunderstood the purpose of running in parallel > two cron > jobs. Please > find attached the monitorix log > cat /tmp/ping1_results.txt > 1.724 > cat /tmp/ping2_results.txt > 1.380 > Please note running the scripts manually displays > the graphs > properly. > ---------------- > To: wilson rodrigues (wro...@ya... > <mailto:wro...@ya...> > <mailto:wro...@ya... > <mailto:wro...@ya...>>), monitorix- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>> (monitorix- > ge...@li... > <mailto:ge...@li...> <mailto:monitorix > <mailto:monitorix>- > ge...@li... > <mailto:ge...@li...>>); > Subject: [Monitorix-general] [SPAM] want to monitor > ping with > monitorix; > 14.08.2025, 13:21, "Jordi Sanfeliu" > <jo...@fi... <mailto:jo...@fi...> > <mailto:jo...@fi... <mailto:jo...@fi...>>>: > > Hello, > > The recommendation to use two commands is to > have them run > in parallel > instead of serial. Hence you can have multiple > cron jobs > running at the > same time. This suggestion didn't have any > relationship > with the errors > in your log file. > > What are the contents of the files '/tmp/ > ping1_results.txt' and > '/tmp/ping2_results.txt'? > > Also, please, paste you Monitorix log file. > > Regards. > > > On 8/14/25 09:46, wilson rodrigues wrote: > > Hello, > I have now separated two commands in two shell > scripts and > having error > repeating twice in log. I have installed > fcron on my > slackware > system. > Use of uninitialized value $val in > division (/) at / > usr/lib64/ > monitorix/ > gensens.pm line 156. > * * * * * root sh /root/bin/ > monitorix_ping1_gensens.sh > * * * * * root sh /root/bin/ > monitorix_ping2_gensens.sh > cat /etc/monitorix/conf.d/local.conf > # GENSENS graph > # Added on 2025-08-13 > # > ----------------------------------------------------------------------------- > <gensens> > <list> > 0 = temp0 > 1 = temp1 > </list> > <title> > 0 = Pings1 > 1 = Pings2 > </title> > <desc> > temp0 = /tmp/ping1_results.txt > temp1 = /tmp/ping2_results.txt > </desc> > <unit> > temp0 = 1 > temp1 = 1 > </unit> > <map> > temp0 = ping to ping1_results > temp1 = ping to ping2_results > </map> > <alerts> > </alerts> > rigid = 0, 0, 2 > limit = 100, 100, 100 > </gensens> > ---------------- > To: monitorix- > ge...@li... <mailto:monitorix- > ge...@li...> > <mailto:mon...@li... > <mailto:mon...@li...>> > <mailto:monitorix <mailto:monitorix> <mailto:monitorix > <mailto:monitorix>>- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>> (monitorix- > ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>> > <mailto:ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>>); > Cc: Jordi Sanfeliu (jo...@fi... > <mailto:jo...@fi...> > <mailto:jo...@fi... <mailto:jo...@fi...>> > <mailto:jo...@fi... > <mailto:jo...@fi...> <mailto:jo...@fi... > <mailto:jo...@fi...>>>); > Subject: [Monitorix-general] [SPAM] want > to monitor > ping with > monitorix; > 14.08.2025, 12:45, "Jordi Sanfeliu via > Monitorix- > general" > <monitorix- > ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>> > <mailto:ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>>>: > > Hello, > > If you use only a single script to > execute these two > commands you must > keep in mind that the second command > will be > executed 5 > seconds later. > That won't scale well if you plan to > track more > pings. > Better use a > crontab line for each command. > > I don't know that is 'fcron', I only have > 'cronie' in my > Fedora. > > Regarding the error in the log file, > can you, > please, > paste here the > section <gensens> from your > configuration file? > > Regards. > > > > On 8/14/25 08:30, wilson rodrigues wrote: > > I am using this command as per > https:// > www.monitorix.org/ <https://www.monitorix.org/> <https:// > www.monitorix.org/ <https://www.monitorix.org/>> <https:// > www.monitorix.org/ <https://www.monitorix.org/> <https:// > www.monitorix.org/ <https://www.monitorix.org/>>> > faq.html <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/faq.html> > <https://www.monitorix.org/faq.html <https:// > www.monitorix.org/faq.html>> <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/faq.html> > <https://www.monitorix.org/faq.html <https://www.monitorix.org/ > faq.html>>>> > <https://www.monitorix.org/ > faq.html <https://www.monitorix.org/faq.html> > <https://www.monitorix.org/faq.html <https:// > www.monitorix.org/faq.html>> <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/faq.html> > <https://www.monitorix.org/faq.html <https://www.monitorix.org/ > faq.html>>> > <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/faq.html> > <https://www.monitorix.org/faq.html <https://www.monitorix.org/ > faq.html>> > <https://www.monitorix.org/ <https:// > www.monitorix.org/> <https://www.monitorix.org/ <https:// > www.monitorix.org/>> > faq.html>>> (Is there an easy way to integrate > a ping statistic?) > > |ping -c 5 -nq 8.8.8.8 | tail -1 > | awk > '{if ( $4 == > "" ) { print > "0/0/0/0" } else { print $4}}' | > awk -F / > '{print > $2 }' > /tmp/ > ping1_results.txt ping -c 5 -nq > 8.8.4.4 | > tail -1 | > awk '{if > ( $4 == > "" ) { print "0/0/0/0" } else > { print > $4}}' | awk - > F / '{print > $2 }' > / > tmp/ping2_results.txt | > > I have created a shell script > with above > commands. > When the > script is > run manually it is working fine. > Getting > the two > graphs in > monitorix. > > But when same script is run in > fcron only > ping2 graph is > displaying > correctly. My crontab entry is > > * * * * * root sh /root/bin/ > monitorix_ping_gensens.sh > > Error in /var/log/monitorix is > Use of > uninitialized > value $val in > division (/) at /usr/lib64/ > monitorix/ > gensens.pm line > 156. > > What I have tried: Disabling > fcron entry > and running > script > manually > works fine. With fcron only > ping2 graph is > working. > > Sincerely, > Wilson Rodrigues > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> <mailto:Monitorix <mailto:Monitorix>- > ge...@li... > <mailto:ge...@li...>> <mailto:Monitorix > <mailto:Monitorix> <mailto:Monitorix <mailto:Monitorix>>- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>> <mailto:Monitorix > <mailto:Monitorix> > <mailto:Monitorix <mailto:Monitorix>> > <mailto:Monitorix <mailto:Monitorix> <mailto:Monitorix > <mailto:Monitorix>>>- > ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>> > <mailto:ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>>> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general>> > <https://lists.sourceforge.net/lists/ > listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix-general <https://lists.sourceforge.net/ > lists/listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix-general>> > <https://lists.sourceforge.net/ > lists/ <https://lists.sourceforge.net/lists/> > listinfo/ <https://lists.sourceforge.net/lists/ > listinfo/ <https://lists.sourceforge.net/lists/listinfo/>> > monitorix-general <https:// > lists.sourceforge.net/ <https://lists.sourceforge.net/> > lists/listinfo/ <https://lists.sourceforge.net/lists/ > listinfo/ <https://lists.sourceforge.net/lists/listinfo/>> > monitorix-general>> > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>>> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>>>> > > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> <mailto:Monitorix <mailto:Monitorix>- > ge...@li... > <mailto:ge...@li...>> <mailto:Monitorix > <mailto:Monitorix> <mailto:Monitorix <mailto:Monitorix>>- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>> <mailto:Monitorix > <mailto:Monitorix> > <mailto:Monitorix <mailto:Monitorix>> > <mailto:Monitorix <mailto:Monitorix> <mailto:Monitorix > <mailto:Monitorix>>>- > ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>> > <mailto:ge...@li... > <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>>> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general>> > <https://lists.sourceforge.net/lists/ > listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix-general <https://lists.sourceforge.net/ > lists/listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix-general>> > <https://lists.sourceforge.net/lists/ > listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix <https://lists.sourceforge.net/lists/ > listinfo/monitorix <https://lists.sourceforge.net/lists/ > listinfo/monitorix>>- > general <https://lists.sourceforge.net/ > lists/listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix <https://lists.sourceforge.net/lists/ > listinfo/monitorix <https://lists.sourceforge.net/lists/ > listinfo/monitorix>>- > general>> > > Sincerely, > Wilson Rodrigues > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>>> > > > Sincerely, > Wilson Rodrigues > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>> > > Sincerely, > Wilson Rodrigues > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> > > Sincerely, > Wilson Rodrigues -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: wilson r. <wro...@ya...> - 2025-08-14 09:05:53
|
<div>Hello,</div><div> </div><div>Yes this worked for me. Now both graphs are displaying correctly.</div><div> </div><div>Thanks</div><div> </div><div> </div><div>----------------</div><div>To: wilson rodrigues (wro...@ya...), mon...@li... (mon...@li...);</div><div>Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix;</div><div>14.08.2025, 14:24, "Jordi Sanfeliu" <jo...@fi...>:</div><blockquote><p>Hello,<br /><br />If the contents you shared were created by crond then problem might be<br />that at the time when Monitorix reads the files they are truncated,<br />since the crond takes some time to create them and Monitorix tries to<br />read both files around the sezond zero.<br /><br />I'd recommend you to prefix the lines in your scripts with a 'sleep 10',<br />to make sure that Monitorix reads the previous values before the files<br />get truncated,<br /><br />Let me know if that worked for you.<br />Regards.<br /><br /><br /><br />On 8/14/25 10:48, wilson rodrigues wrote:</p><blockquote class="210e7a848e8fcb45wmi-quote"> Hello,<br /> The two files which I shared were created by cron. I will troubleshoot <br /> the cron issue and check monitorix configuration once more.<br /> Thanks for your understanding and support.<br /> ----------------<br /> To: wilson rodrigues (<a href="mailto:wro...@ya...">wro...@ya...</a>), monitorix- <br /> <a href="mailto:ge...@li...">ge...@li...</a> (<a href="mailto:mon...@li...">mon...@li...</a>);<br /> Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix;<br /> 14.08.2025, 14:11, "Jordi Sanfeliu" <<a href="mailto:jo...@fi...">jo...@fi...</a>>:<br /> <br /> Hello,<br /> <br /> If running the scripts manually the graphs are created successfully then<br /> the problem is in your crond daemon, not in Monitorix.<br /> <br /> Don't show me the contents of these two files after executing the<br /> scripts manually since we already know that it works this way. Please,<br /> remove these files and let your crond create them, and then read their<br /> contents and see if are correct.<br /> <br /> Besides this, I see some errors in your log file that makes me think<br /> that your configuration file is either outdated or you removed a lot of<br /> lines from it, which is not recommended.<br /> <br /> Please, read the FAQ <<a href="https://www.monitorix.org/faq.html#Q107">https://www.monitorix.org/faq.html#Q107</a><br /> <<a href="https://www.monitorix.org/faq.html#Q107">https://www.monitorix.org/faq.html#Q107</a>>> to know<br /> how to configure Monitorix properly.<br /> <br /> Regards.<br /> <br /> <br /> <br /> On 8/14/25 10:30, wilson rodrigues wrote:<br /> <br /> Hello,<br /> I misunderstood the purpose of running in parallel two cron<br /> jobs. Please<br /> find attached the monitorix log<br /> cat /tmp/ping1_results.txt<br /> 1.724<br /> cat /tmp/ping2_results.txt<br /> 1.380<br /> Please note running the scripts manually displays the graphs<br /> properly.<br /> ----------------<br /> To: wilson rodrigues (<a href="mailto:wro...@ya...">wro...@ya...</a><br /> <<a href="mailto:wro...@ya...">mailto:wro...@ya...</a>>), monitorix-<br /> <a href="mailto:ge...@li...">ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>> (monitorix-<br /> <a href="mailto:ge...@li...">ge...@li...</a> <<a href="mailto:monitorix">mailto:monitorix</a>-<br /> <a href="mailto:ge...@li...">ge...@li...</a>>);<br /> Subject: [Monitorix-general] [SPAM] want to monitor ping with<br /> monitorix;<br /> 14.08.2025, 13:21, "Jordi Sanfeliu" <<a href="mailto:jo...@fi...">jo...@fi...</a><br /> <<a href="mailto:jo...@fi...">mailto:jo...@fi...</a>>>:<br /> <br /> Hello,<br /> <br /> The recommendation to use two commands is to have them run<br /> in parallel<br /> instead of serial. Hence you can have multiple cron jobs<br /> running at the<br /> same time. This suggestion didn't have any relationship<br /> with the errors<br /> in your log file.<br /> <br /> What are the contents of the files '/tmp/<br /> ping1_results.txt' and<br /> '/tmp/ping2_results.txt'?<br /> <br /> Also, please, paste you Monitorix log file.<br /> <br /> Regards.<br /> <br /> <br /> On 8/14/25 09:46, wilson rodrigues wrote:<br /> <br /> Hello,<br /> I have now separated two commands in two shell<br /> scripts and<br /> having error<br /> repeating twice in log. I have installed fcron on my<br /> slackware<br /> system.<br /> Use of uninitialized value $val in division (/) at /<br /> usr/lib64/<br /> monitorix/<br /> gensens.pm line 156.<br /> * * * * * root sh /root/bin/monitorix_ping1_gensens.sh<br /> * * * * * root sh /root/bin/monitorix_ping2_gensens.sh<br /> cat /etc/monitorix/conf.d/local.conf<br /> # GENSENS graph<br /> # Added on <span class="1f1ea193f6735cf0wmi-callto">2025-08-13</span><br /> #<br /> -----------------------------------------------------------------------------<br /> <gensens><br /> <list><br /> 0 = temp0<br /> 1 = temp1<br /> </list><br /> <title><br /> 0 = Pings1<br /> 1 = Pings2<br /> </title><br /> <desc><br /> temp0 = /tmp/ping1_results.txt<br /> temp1 = /tmp/ping2_results.txt<br /> </desc><br /> <unit><br /> temp0 = 1<br /> temp1 = 1<br /> </unit><br /> <map><br /> temp0 = ping to ping1_results<br /> temp1 = ping to ping2_results<br /> </map><br /> <alerts><br /> </alerts><br /> rigid = 0, 0, 2<br /> limit = 100, 100, 100<br /> </gensens><br /> ----------------<br /> To: <a href="mailto:mon...@li...">mon...@li...</a><br /> <<a href="mailto:mon...@li...">mailto:mon...@li...</a>><br /> <<a href="mailto:monitorix">mailto:monitorix</a> <<a href="mailto:monitorix">mailto:monitorix</a>>-<br /> <a href="mailto:ge...@li...">ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>>> (monitorix-<br /> <a href="mailto:ge...@li...">ge...@li...</a> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>>>);<br /> Cc: Jordi Sanfeliu (<a href="mailto:jo...@fi...">jo...@fi...</a><br /> <<a href="mailto:jo...@fi...">mailto:jo...@fi...</a>><br /> <<a href="mailto:jo...@fi...">mailto:jo...@fi...</a> <<a href="mailto:jo...@fi...">mailto:jo...@fi...</a>>>);<br /> Subject: [Monitorix-general] [SPAM] want to monitor<br /> ping with<br /> monitorix;<br /> 14.08.2025, 12:45, "Jordi Sanfeliu via Monitorix-<br /> general"<br /> <monitorix-<br /> <a href="mailto:ge...@li...">ge...@li...</a> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>>>>:<br /> <br /> Hello,<br /> <br /> If you use only a single script to execute these two<br /> commands you must<br /> keep in mind that the second command will be<br /> executed 5<br /> seconds later.<br /> That won't scale well if you plan to track more<br /> pings.<br /> Better use a<br /> crontab line for each command.<br /> <br /> I don't know that is 'fcron', I only have<br /> 'cronie' in my<br /> Fedora.<br /> <br /> Regarding the error in the log file, can you,<br /> please,<br /> paste here the<br /> section <gensens> from your configuration file?<br /> <br /> Regards.<br /> <br /> <br /> <br /> On 8/14/25 08:30, wilson rodrigues wrote:<br /> <br /> I am using this command as per https://<br /> <a href="https://www.monitorix.org/">www.monitorix.org/</a> <<a href="https://www.monitorix.org/">https://www.monitorix.org/</a>> <https://<br /> <a href="https://www.monitorix.org/">www.monitorix.org/</a> <<a href="https://www.monitorix.org/">https://www.monitorix.org/</a>>><br /> faq.html <<a href="https://www.monitorix.org/faq.html">https://www.monitorix.org/faq.html</a><br /> <<a href="https://www.monitorix.org/faq.html">https://www.monitorix.org/faq.html</a>> <https://<br /> <a href="https://www.monitorix.org/faq.html">www.monitorix.org/faq.html</a> <<a href="https://www.monitorix.org/faq.html">https://www.monitorix.org/faq.html</a>>>><br /> <<a href="https://www.monitorix.org/faq.html">https://www.monitorix.org/faq.html</a><br /> <<a href="https://www.monitorix.org/faq.html">https://www.monitorix.org/faq.html</a>> <https://<br /> <a href="https://www.monitorix.org/faq.html">www.monitorix.org/faq.html</a> <<a href="https://www.monitorix.org/faq.html">https://www.monitorix.org/faq.html</a>>><br /> <https://<br /> <a href="https://www.monitorix.org/faq.html">www.monitorix.org/faq.html</a> <<a href="https://www.monitorix.org/faq.html">https://www.monitorix.org/faq.html</a>><br /> <<a href="https://www.monitorix.org/">https://www.monitorix.org/</a> <<a href="https://www.monitorix.org/">https://www.monitorix.org/</a>><br /> faq.html>>> (Is there an easy way to integrate<br /> a ping statistic?)<br /> <br /> |ping -c 5 -nq 8.8.8.8 | tail -1 | awk<br /> '{if ( $4 ==<br /> "" ) { print<br /> "0/0/0/0" } else { print $4}}' | awk -F /<br /> '{print<br /> $2 }' > /tmp/<br /> ping1_results.txt ping -c 5 -nq 8.8.4.4 |<br /> tail -1 |<br /> awk '{if<br /> ( $4 ==<br /> "" ) { print "0/0/0/0" } else { print<br /> $4}}' | awk -<br /> F / '{print<br /> $2 }' > /<br /> tmp/ping2_results.txt |<br /> <br /> I have created a shell script with above<br /> commands.<br /> When the<br /> script is<br /> run manually it is working fine. Getting<br /> the two<br /> graphs in<br /> monitorix.<br /> <br /> But when same script is run in fcron only<br /> ping2 graph is<br /> displaying<br /> correctly. My crontab entry is<br /> <br /> * * * * * root sh /root/bin/<br /> monitorix_ping_gensens.sh<br /> <br /> Error in /var/log/monitorix is Use of<br /> uninitialized<br /> value $val in<br /> division (/) at /usr/lib64/monitorix/<br /> gensens.pm line<br /> 156.<br /> <br /> What I have tried: Disabling fcron entry<br /> and running<br /> script<br /> manually<br /> works fine. With fcron only ping2 graph is<br /> working.<br /> <br /> Sincerely,<br /> Wilson Rodrigues<br /> <br /> <br /> _______________________________________________<br /> Monitorix-general mailing list<br /> <a href="mailto:Mon...@li...">Mon...@li...</a> <<a href="mailto:Monitorix">mailto:Monitorix</a>-<br /> <a href="mailto:ge...@li...">ge...@li...</a>> <<a href="mailto:Monitorix">mailto:Monitorix</a> <<a href="mailto:Monitorix">mailto:Monitorix</a>>-<br /> <a href="mailto:ge...@li...">ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>>> <<a href="mailto:Monitorix">mailto:Monitorix</a><br /> <<a href="mailto:Monitorix">mailto:Monitorix</a>> <<a href="mailto:Monitorix">mailto:Monitorix</a> <<a href="mailto:Monitorix">mailto:Monitorix</a>>>-<br /> <a href="mailto:ge...@li...">ge...@li...</a> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>>>><br /> <a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a>><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix-general <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix-general>><br /> <<a href="https://lists.sourceforge.net/lists/">https://lists.sourceforge.net/lists/</a><br /> listinfo/ <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a>><br /> monitorix-general <<a href="https://lists.sourceforge.net/">https://lists.sourceforge.net/</a><br /> lists/listinfo/ <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a>><br /> monitorix-general>><br /> <br /> --<br /> Jordi Sanfeliu<br /> FIBRANET Network Services Provider<br /> <a href="https://www.fibranet.cat/">https://www.fibranet.cat</a> <<a href="https://www.fibranet.cat/">https://www.fibranet.cat/</a>> <https://<br /> <a href="https://www.fibranet.cat/">www.fibranet.cat/</a> <<a href="https://www.fibranet.cat/">https://www.fibranet.cat/</a>>> <https://<br /> <a href="https://www.fibranet.cat/">www.fibranet.cat/</a> <<a href="https://www.fibranet.cat/">https://www.fibranet.cat/</a>> <https://<br /> <a href="https://www.fibranet.cat/">www.fibranet.cat/</a> <<a href="https://www.fibranet.cat/">https://www.fibranet.cat/</a>>>><br /> <br /> <br /> <br /> _______________________________________________<br /> Monitorix-general mailing list<br /> <a href="mailto:Mon...@li...">Mon...@li...</a> <<a href="mailto:Monitorix">mailto:Monitorix</a>-<br /> <a href="mailto:ge...@li...">ge...@li...</a>> <<a href="mailto:Monitorix">mailto:Monitorix</a> <<a href="mailto:Monitorix">mailto:Monitorix</a>>-<br /> <a href="mailto:ge...@li...">ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>>> <<a href="mailto:Monitorix">mailto:Monitorix</a><br /> <<a href="mailto:Monitorix">mailto:Monitorix</a>> <<a href="mailto:Monitorix">mailto:Monitorix</a> <<a href="mailto:Monitorix">mailto:Monitorix</a>>>-<br /> <a href="mailto:ge...@li...">ge...@li...</a> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a><br /> <<a href="mailto:ge...@li...">mailto:ge...@li...</a>>>><br /> <a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a>><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix-general <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix-general>><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix">https://lists.sourceforge.net/lists/listinfo/monitorix</a>>-<br /> general <<a href="https://lists.sourceforge.net/lists/listinfo/">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix">https://lists.sourceforge.net/lists/listinfo/monitorix</a>>-<br /> general>><br /> <br /> Sincerely,<br /> Wilson Rodrigues<br /> <br /> --<br /> Jordi Sanfeliu<br /> FIBRANET Network Services Provider<br /> <a href="https://www.fibranet.cat/">https://www.fibranet.cat</a> <<a href="https://www.fibranet.cat/">https://www.fibranet.cat/</a>> <https://<br /> <a href="https://www.fibranet.cat/">www.fibranet.cat/</a> <<a href="https://www.fibranet.cat/">https://www.fibranet.cat/</a>>><br /> <br /> <br /> Sincerely,<br /> Wilson Rodrigues<br /> <br /> --<br /> Jordi Sanfeliu<br /> FIBRANET Network Services Provider<br /> <a href="https://www.fibranet.cat/">https://www.fibranet.cat</a> <<a href="https://www.fibranet.cat/">https://www.fibranet.cat/</a>><br /> <br /> Sincerely,<br /> Wilson Rodrigues<br /></blockquote><p> </p>--<br />Jordi Sanfeliu<br />FIBRANET Network Services Provider<br /><a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat</a><br /><br /> </blockquote><div> </div><div> </div><div>Sincerely,<br />Wilson Rodrigues</div><div> </div> |
|
From: Jordi S. <jo...@fi...> - 2025-08-14 08:54:00
|
Hello, If the contents you shared were created by crond then problem might be that at the time when Monitorix reads the files they are truncated, since the crond takes some time to create them and Monitorix tries to read both files around the sezond zero. I'd recommend you to prefix the lines in your scripts with a 'sleep 10', to make sure that Monitorix reads the previous values before the files get truncated, Let me know if that worked for you. Regards. On 8/14/25 10:48, wilson rodrigues wrote: > Hello, > The two files which I shared were created by cron. I will troubleshoot > the cron issue and check monitorix configuration once more. > Thanks for your understanding and support. > ---------------- > To: wilson rodrigues (wro...@ya...), monitorix- > ge...@li... (mon...@li...); > Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix; > 14.08.2025, 14:11, "Jordi Sanfeliu" <jo...@fi...>: > > Hello, > > If running the scripts manually the graphs are created successfully then > the problem is in your crond daemon, not in Monitorix. > > Don't show me the contents of these two files after executing the > scripts manually since we already know that it works this way. Please, > remove these files and let your crond create them, and then read their > contents and see if are correct. > > Besides this, I see some errors in your log file that makes me think > that your configuration file is either outdated or you removed a lot of > lines from it, which is not recommended. > > Please, read the FAQ <https://www.monitorix.org/faq.html#Q107 > <https://www.monitorix.org/faq.html#Q107>> to know > how to configure Monitorix properly. > > Regards. > > > > On 8/14/25 10:30, wilson rodrigues wrote: > > Hello, > I misunderstood the purpose of running in parallel two cron > jobs. Please > find attached the monitorix log > cat /tmp/ping1_results.txt > 1.724 > cat /tmp/ping2_results.txt > 1.380 > Please note running the scripts manually displays the graphs > properly. > ---------------- > To: wilson rodrigues (wro...@ya... > <mailto:wro...@ya...>), monitorix- > ge...@li... > <mailto:ge...@li...> (monitorix- > ge...@li... <mailto:monitorix- > ge...@li...>); > Subject: [Monitorix-general] [SPAM] want to monitor ping with > monitorix; > 14.08.2025, 13:21, "Jordi Sanfeliu" <jo...@fi... > <mailto:jo...@fi...>>: > > Hello, > > The recommendation to use two commands is to have them run > in parallel > instead of serial. Hence you can have multiple cron jobs > running at the > same time. This suggestion didn't have any relationship > with the errors > in your log file. > > What are the contents of the files '/tmp/ > ping1_results.txt' and > '/tmp/ping2_results.txt'? > > Also, please, paste you Monitorix log file. > > Regards. > > > On 8/14/25 09:46, wilson rodrigues wrote: > > Hello, > I have now separated two commands in two shell > scripts and > having error > repeating twice in log. I have installed fcron on my > slackware > system. > Use of uninitialized value $val in division (/) at / > usr/lib64/ > monitorix/ > gensens.pm line 156. > * * * * * root sh /root/bin/monitorix_ping1_gensens.sh > * * * * * root sh /root/bin/monitorix_ping2_gensens.sh > cat /etc/monitorix/conf.d/local.conf > # GENSENS graph > # Added on 2025-08-13 > # > ----------------------------------------------------------------------------- > <gensens> > <list> > 0 = temp0 > 1 = temp1 > </list> > <title> > 0 = Pings1 > 1 = Pings2 > </title> > <desc> > temp0 = /tmp/ping1_results.txt > temp1 = /tmp/ping2_results.txt > </desc> > <unit> > temp0 = 1 > temp1 = 1 > </unit> > <map> > temp0 = ping to ping1_results > temp1 = ping to ping2_results > </map> > <alerts> > </alerts> > rigid = 0, 0, 2 > limit = 100, 100, 100 > </gensens> > ---------------- > To: mon...@li... > <mailto:mon...@li...> > <mailto:monitorix <mailto:monitorix>- > ge...@li... > <mailto:ge...@li...>> (monitorix- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>); > Cc: Jordi Sanfeliu (jo...@fi... > <mailto:jo...@fi...> > <mailto:jo...@fi... <mailto:jo...@fi...>>); > Subject: [Monitorix-general] [SPAM] want to monitor > ping with > monitorix; > 14.08.2025, 12:45, "Jordi Sanfeliu via Monitorix- > general" > <monitorix- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>>: > > Hello, > > If you use only a single script to execute these two > commands you must > keep in mind that the second command will be > executed 5 > seconds later. > That won't scale well if you plan to track more > pings. > Better use a > crontab line for each command. > > I don't know that is 'fcron', I only have > 'cronie' in my > Fedora. > > Regarding the error in the log file, can you, > please, > paste here the > section <gensens> from your configuration file? > > Regards. > > > > On 8/14/25 08:30, wilson rodrigues wrote: > > I am using this command as per https:// > www.monitorix.org/ <https://www.monitorix.org/> <https:// > www.monitorix.org/ <https://www.monitorix.org/>> > faq.html <https://www.monitorix.org/faq.html > <https://www.monitorix.org/faq.html> <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/faq.html>>> > <https://www.monitorix.org/faq.html > <https://www.monitorix.org/faq.html> <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/faq.html>> > <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/faq.html> > <https://www.monitorix.org/ <https://www.monitorix.org/> > faq.html>>> (Is there an easy way to integrate > a ping statistic?) > > |ping -c 5 -nq 8.8.8.8 | tail -1 | awk > '{if ( $4 == > "" ) { print > "0/0/0/0" } else { print $4}}' | awk -F / > '{print > $2 }' > /tmp/ > ping1_results.txt ping -c 5 -nq 8.8.4.4 | > tail -1 | > awk '{if > ( $4 == > "" ) { print "0/0/0/0" } else { print > $4}}' | awk - > F / '{print > $2 }' > / > tmp/ping2_results.txt | > > I have created a shell script with above > commands. > When the > script is > run manually it is working fine. Getting > the two > graphs in > monitorix. > > But when same script is run in fcron only > ping2 graph is > displaying > correctly. My crontab entry is > > * * * * * root sh /root/bin/ > monitorix_ping_gensens.sh > > Error in /var/log/monitorix is Use of > uninitialized > value $val in > division (/) at /usr/lib64/monitorix/ > gensens.pm line > 156. > > What I have tried: Disabling fcron entry > and running > script > manually > works fine. With fcron only ping2 graph is > working. > > Sincerely, > Wilson Rodrigues > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> <mailto:Monitorix <mailto:Monitorix>- > ge...@li... > <mailto:ge...@li...>> <mailto:Monitorix > <mailto:Monitorix> <mailto:Monitorix <mailto:Monitorix>>- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general>> > <https://lists.sourceforge.net/lists/ > listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix-general <https://lists.sourceforge.net/ > lists/listinfo/ <https://lists.sourceforge.net/lists/listinfo/> > monitorix-general>> > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>>> > > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> <mailto:Monitorix <mailto:Monitorix>- > ge...@li... > <mailto:ge...@li...>> <mailto:Monitorix > <mailto:Monitorix> <mailto:Monitorix <mailto:Monitorix>>- > ge...@li... <mailto:ge...@li...> > <mailto:ge...@li... > <mailto:ge...@li...>>> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general>> > <https://lists.sourceforge.net/lists/listinfo/ > monitorix <https://lists.sourceforge.net/lists/listinfo/monitorix>- > general <https://lists.sourceforge.net/lists/listinfo/ > monitorix <https://lists.sourceforge.net/lists/listinfo/monitorix>- > general>> > > Sincerely, > Wilson Rodrigues > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>> > > > Sincerely, > Wilson Rodrigues > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> > > Sincerely, > Wilson Rodrigues -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: wilson r. <wro...@ya...> - 2025-08-14 08:48:39
|
<div>Hello,</div><div> </div><div>The two files which I shared were created by cron. I will troubleshoot the cron issue and check monitorix configuration once more.</div><div> </div><div>Thanks for your understanding and support.</div><div> </div><div>----------------</div><div>To: wilson rodrigues (wro...@ya...), mon...@li... (mon...@li...);</div><div>Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix;</div><div>14.08.2025, 14:11, "Jordi Sanfeliu" <jo...@fi...>:</div><blockquote><p>Hello,<br /><br />If running the scripts manually the graphs are created successfully then<br />the problem is in your crond daemon, not in Monitorix.<br /><br />Don't show me the contents of these two files after executing the<br />scripts manually since we already know that it works this way. Please,<br />remove these files and let your crond create them, and then read their<br />contents and see if are correct.<br /><br />Besides this, I see some errors in your log file that makes me think<br />that your configuration file is either outdated or you removed a lot of<br />lines from it, which is not recommended.<br /><br />Please, read the FAQ <<a href="https://www.monitorix.org/faq.html#Q107" rel="noopener noreferrer">https://www.monitorix.org/faq.html#Q107</a>> to know<br />how to configure Monitorix properly.<br /><br />Regards.<br /><br /><br /><br />On 8/14/25 10:30, wilson rodrigues wrote:</p><blockquote> Hello,<br /> I misunderstood the purpose of running in parallel two cron jobs. Please<br /> find attached the monitorix log<br /> cat /tmp/ping1_results.txt<br /> 1.724<br /> cat /tmp/ping2_results.txt<br /> 1.380<br /> Please note running the scripts manually displays the graphs properly.<br /> ----------------<br /> To: wilson rodrigues (<a href="mailto:wro...@ya..." rel="noopener noreferrer">wro...@ya...</a>), monitorix-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a> (<a href="mailto:mon...@li..." rel="noopener noreferrer">mon...@li...</a>);<br /> Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix;<br /> 14.08.2025, 13:21, "Jordi Sanfeliu" <<a href="mailto:jo...@fi..." rel="noopener noreferrer">jo...@fi...</a>>:<br /> <br /> Hello,<br /> <br /> The recommendation to use two commands is to have them run in parallel<br /> instead of serial. Hence you can have multiple cron jobs running at the<br /> same time. This suggestion didn't have any relationship with the errors<br /> in your log file.<br /> <br /> What are the contents of the files '/tmp/ping1_results.txt' and<br /> '/tmp/ping2_results.txt'?<br /> <br /> Also, please, paste you Monitorix log file.<br /> <br /> Regards.<br /> <br /> <br /> On 8/14/25 09:46, wilson rodrigues wrote:<br /> <br /> Hello,<br /> I have now separated two commands in two shell scripts and<br /> having error<br /> repeating twice in log. I have installed fcron on my slackware<br /> system.<br /> Use of uninitialized value $val in division (/) at /usr/lib64/<br /> monitorix/<br /> gensens.pm line 156.<br /> * * * * * root sh /root/bin/monitorix_ping1_gensens.sh<br /> * * * * * root sh /root/bin/monitorix_ping2_gensens.sh<br /> cat /etc/monitorix/conf.d/local.conf<br /> # GENSENS graph<br /> # Added on 2025-08-13<br /> #<br /> -----------------------------------------------------------------------------<br /> <gensens><br /> <list><br /> 0 = temp0<br /> 1 = temp1<br /> </list><br /> <title><br /> 0 = Pings1<br /> 1 = Pings2<br /> </title><br /> <desc><br /> temp0 = /tmp/ping1_results.txt<br /> temp1 = /tmp/ping2_results.txt<br /> </desc><br /> <unit><br /> temp0 = 1<br /> temp1 = 1<br /> </unit><br /> <map><br /> temp0 = ping to ping1_results<br /> temp1 = ping to ping2_results<br /> </map><br /> <alerts><br /> </alerts><br /> rigid = 0, 0, 2<br /> limit = 100, 100, 100<br /> </gensens><br /> ----------------<br /> To: <a href="mailto:mon...@li..." rel="noopener noreferrer">mon...@li...</a> <<a href="mailto:monitorix" rel="noopener noreferrer">mailto:monitorix</a>-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a>> (monitorix-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a><br /> <<a href="mailto:ge...@li..." rel="noopener noreferrer">mailto:ge...@li...</a>>);<br /> Cc: Jordi Sanfeliu (<a href="mailto:jo...@fi..." rel="noopener noreferrer">jo...@fi...</a><br /> <<a href="mailto:jo...@fi..." rel="noopener noreferrer">mailto:jo...@fi...</a>>);<br /> Subject: [Monitorix-general] [SPAM] want to monitor ping with<br /> monitorix;<br /> 14.08.2025, 12:45, "Jordi Sanfeliu via Monitorix-general"<br /> <monitorix-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a><br /> <<a href="mailto:ge...@li..." rel="noopener noreferrer">mailto:ge...@li...</a>>>:<br /> <br /> Hello,<br /> <br /> If you use only a single script to execute these two<br /> commands you must<br /> keep in mind that the second command will be executed 5<br /> seconds later.<br /> That won't scale well if you plan to track more pings.<br /> Better use a<br /> crontab line for each command.<br /> <br /> I don't know that is 'fcron', I only have 'cronie' in my<br /> Fedora.<br /> <br /> Regarding the error in the log file, can you, please,<br /> paste here the<br /> section <gensens> from your configuration file?<br /> <br /> Regards.<br /> <br /> <br /> <br /> On 8/14/25 08:30, wilson rodrigues wrote:<br /> <br /> I am using this command as per https://<br /> <a href="https://www.monitorix.org/" rel="noopener noreferrer">www.monitorix.org/</a> <<a href="https://www.monitorix.org/" rel="noopener noreferrer">https://www.monitorix.org/</a>><br /> faq.html <<a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">https://www.monitorix.org/faq.html</a> <https://<br /> <a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">www.monitorix.org/faq.html</a>>><br /> <<a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">https://www.monitorix.org/faq.html</a> <https://<br /> <a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">www.monitorix.org/faq.html</a>> <https://<br /> <a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">www.monitorix.org/faq.html</a> <<a href="https://www.monitorix.org/" rel="noopener noreferrer">https://www.monitorix.org/</a><br /> faq.html>>> (Is there an easy way to integrate<br /> a ping statistic?)<br /> <br /> |ping -c 5 -nq 8.8.8.8 | tail -1 | awk '{if ( $4 ==<br /> "" ) { print<br /> "0/0/0/0" } else { print $4}}' | awk -F / '{print<br /> $2 }' > /tmp/<br /> ping1_results.txt ping -c 5 -nq 8.8.4.4 | tail -1 |<br /> awk '{if<br /> ( $4 ==<br /> "" ) { print "0/0/0/0" } else { print $4}}' | awk -<br /> F / '{print<br /> $2 }' > /<br /> tmp/ping2_results.txt |<br /> <br /> I have created a shell script with above commands.<br /> When the<br /> script is<br /> run manually it is working fine. Getting the two<br /> graphs in<br /> monitorix.<br /> <br /> But when same script is run in fcron only ping2 graph is<br /> displaying<br /> correctly. My crontab entry is<br /> <br /> * * * * * root sh /root/bin/monitorix_ping_gensens.sh<br /> <br /> Error in /var/log/monitorix is Use of uninitialized<br /> value $val in<br /> division (/) at /usr/lib64/monitorix/gensens.pm line<br /> 156.<br /> <br /> What I have tried: Disabling fcron entry and running<br /> script<br /> manually<br /> works fine. With fcron only ping2 graph is working.<br /> <br /> Sincerely,<br /> Wilson Rodrigues<br /> <br /> <br /> _______________________________________________<br /> Monitorix-general mailing list<br /> <a href="mailto:Mon...@li..." rel="noopener noreferrer">Mon...@li...</a> <<a href="mailto:Monitorix" rel="noopener noreferrer">mailto:Monitorix</a>-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a>> <<a href="mailto:Monitorix" rel="noopener noreferrer">mailto:Monitorix</a> <<a href="mailto:Monitorix" rel="noopener noreferrer">mailto:Monitorix</a>>-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a><br /> <<a href="mailto:ge...@li..." rel="noopener noreferrer">mailto:ge...@li...</a>>><br /> <a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a>><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix-general <<a href="https://lists.sourceforge.net/lists/listinfo/" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/</a><br /> monitorix-general>><br /> <br /> --<br /> Jordi Sanfeliu<br /> FIBRANET Network Services Provider<br /> <a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat</a> <<a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat/</a>> <https://<br /> <a href="https://www.fibranet.cat/" rel="noopener noreferrer">www.fibranet.cat/</a> <<a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat/</a>>><br /> <br /> <br /> <br /> _______________________________________________<br /> Monitorix-general mailing list<br /> <a href="mailto:Mon...@li..." rel="noopener noreferrer">Mon...@li...</a> <<a href="mailto:Monitorix" rel="noopener noreferrer">mailto:Monitorix</a>-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a>> <<a href="mailto:Monitorix" rel="noopener noreferrer">mailto:Monitorix</a> <<a href="mailto:Monitorix" rel="noopener noreferrer">mailto:Monitorix</a>>-<br /> <a href="mailto:ge...@li..." rel="noopener noreferrer">ge...@li...</a><br /> <<a href="mailto:ge...@li..." rel="noopener noreferrer">mailto:ge...@li...</a>>><br /> <a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a>><br /> <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix</a>-<br /> general <<a href="https://lists.sourceforge.net/lists/listinfo/monitorix" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix</a>-<br /> general>><br /> <br /> Sincerely,<br /> Wilson Rodrigues<br /> <br /> --<br /> Jordi Sanfeliu<br /> FIBRANET Network Services Provider<br /> <a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat</a> <<a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat/</a>><br /> <br /> <br /> Sincerely,<br /> Wilson Rodrigues</blockquote><p> </p>--<br />Jordi Sanfeliu<br />FIBRANET Network Services Provider<br /><a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat</a><br /> </blockquote><div> </div><div> </div><div>Sincerely,<br />Wilson Rodrigues</div><div> </div> |
|
From: Jordi S. <jo...@fi...> - 2025-08-14 08:41:52
|
Hello, If running the scripts manually the graphs are created successfully then the problem is in your crond daemon, not in Monitorix. Don't show me the contents of these two files after executing the scripts manually since we already know that it works this way. Please, remove these files and let your crond create them, and then read their contents and see if are correct. Besides this, I see some errors in your log file that makes me think that your configuration file is either outdated or you removed a lot of lines from it, which is not recommended. Please, read the FAQ <https://www.monitorix.org/faq.html#Q107> to know how to configure Monitorix properly. Regards. On 8/14/25 10:30, wilson rodrigues wrote: > Hello, > I misunderstood the purpose of running in parallel two cron jobs. Please > find attached the monitorix log > cat /tmp/ping1_results.txt > 1.724 > cat /tmp/ping2_results.txt > 1.380 > Please note running the scripts manually displays the graphs properly. > ---------------- > To: wilson rodrigues (wro...@ya...), monitorix- > ge...@li... (mon...@li...); > Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix; > 14.08.2025, 13:21, "Jordi Sanfeliu" <jo...@fi...>: > > Hello, > > The recommendation to use two commands is to have them run in parallel > instead of serial. Hence you can have multiple cron jobs running at the > same time. This suggestion didn't have any relationship with the errors > in your log file. > > What are the contents of the files '/tmp/ping1_results.txt' and > '/tmp/ping2_results.txt'? > > Also, please, paste you Monitorix log file. > > Regards. > > > On 8/14/25 09:46, wilson rodrigues wrote: > > Hello, > I have now separated two commands in two shell scripts and > having error > repeating twice in log. I have installed fcron on my slackware > system. > Use of uninitialized value $val in division (/) at /usr/lib64/ > monitorix/ > gensens.pm line 156. > * * * * * root sh /root/bin/monitorix_ping1_gensens.sh > * * * * * root sh /root/bin/monitorix_ping2_gensens.sh > cat /etc/monitorix/conf.d/local.conf > # GENSENS graph > # Added on 2025-08-13 > # > ----------------------------------------------------------------------------- > <gensens> > <list> > 0 = temp0 > 1 = temp1 > </list> > <title> > 0 = Pings1 > 1 = Pings2 > </title> > <desc> > temp0 = /tmp/ping1_results.txt > temp1 = /tmp/ping2_results.txt > </desc> > <unit> > temp0 = 1 > temp1 = 1 > </unit> > <map> > temp0 = ping to ping1_results > temp1 = ping to ping2_results > </map> > <alerts> > </alerts> > rigid = 0, 0, 2 > limit = 100, 100, 100 > </gensens> > ---------------- > To: mon...@li... <mailto:monitorix- > ge...@li...> (monitorix- > ge...@li... > <mailto:ge...@li...>); > Cc: Jordi Sanfeliu (jo...@fi... > <mailto:jo...@fi...>); > Subject: [Monitorix-general] [SPAM] want to monitor ping with > monitorix; > 14.08.2025, 12:45, "Jordi Sanfeliu via Monitorix-general" > <monitorix- > ge...@li... > <mailto:ge...@li...>>: > > Hello, > > If you use only a single script to execute these two > commands you must > keep in mind that the second command will be executed 5 > seconds later. > That won't scale well if you plan to track more pings. > Better use a > crontab line for each command. > > I don't know that is 'fcron', I only have 'cronie' in my > Fedora. > > Regarding the error in the log file, can you, please, > paste here the > section <gensens> from your configuration file? > > Regards. > > > > On 8/14/25 08:30, wilson rodrigues wrote: > > I am using this command as per https:// > www.monitorix.org/ <https://www.monitorix.org/> > faq.html <https://www.monitorix.org/faq.html <https:// > www.monitorix.org/faq.html>> > <https://www.monitorix.org/faq.html <https:// > www.monitorix.org/faq.html> <https:// > www.monitorix.org/faq.html <https://www.monitorix.org/ > faq.html>>> (Is there an easy way to integrate > a ping statistic?) > > |ping -c 5 -nq 8.8.8.8 | tail -1 | awk '{if ( $4 == > "" ) { print > "0/0/0/0" } else { print $4}}' | awk -F / '{print > $2 }' > /tmp/ > ping1_results.txt ping -c 5 -nq 8.8.4.4 | tail -1 | > awk '{if > ( $4 == > "" ) { print "0/0/0/0" } else { print $4}}' | awk - > F / '{print > $2 }' > / > tmp/ping2_results.txt | > > I have created a shell script with above commands. > When the > script is > run manually it is working fine. Getting the two > graphs in > monitorix. > > But when same script is run in fcron only ping2 graph is > displaying > correctly. My crontab entry is > > * * * * * root sh /root/bin/monitorix_ping_gensens.sh > > Error in /var/log/monitorix is Use of uninitialized > value $val in > division (/) at /usr/lib64/monitorix/gensens.pm line > 156. > > What I have tried: Disabling fcron entry and running > script > manually > works fine. With fcron only ping2 graph is working. > > Sincerely, > Wilson Rodrigues > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> <mailto:Monitorix <mailto:Monitorix>- > ge...@li... > <mailto:ge...@li...>> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general <https://lists.sourceforge.net/lists/listinfo/ > monitorix-general>> > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> <https:// > www.fibranet.cat/ <https://www.fibranet.cat/>> > > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> <mailto:Monitorix <mailto:Monitorix>- > ge...@li... > <mailto:ge...@li...>> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > <https://lists.sourceforge.net/lists/listinfo/monitorix- > general <https://lists.sourceforge.net/lists/listinfo/monitorix- > general>> > > Sincerely, > Wilson Rodrigues > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> > > > Sincerely, > Wilson Rodrigues -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: Jordi S. <jo...@fi...> - 2025-08-14 07:51:19
|
Hello, The recommendation to use two commands is to have them run in parallel instead of serial. Hence you can have multiple cron jobs running at the same time. This suggestion didn't have any relationship with the errors in your log file. What are the contents of the files '/tmp/ping1_results.txt' and '/tmp/ping2_results.txt'? Also, please, paste you Monitorix log file. Regards. On 8/14/25 09:46, wilson rodrigues wrote: > Hello, > I have now separated two commands in two shell scripts and having error > repeating twice in log. I have installed fcron on my slackware system. > Use of uninitialized value $val in division (/) at /usr/lib64/monitorix/ > gensens.pm line 156. > * * * * * root sh /root/bin/monitorix_ping1_gensens.sh > * * * * * root sh /root/bin/monitorix_ping2_gensens.sh > cat /etc/monitorix/conf.d/local.conf > # GENSENS graph > # Added on 2025-08-13 > # > ----------------------------------------------------------------------------- > <gensens> > <list> > 0 = temp0 > 1 = temp1 > </list> > <title> > 0 = Pings1 > 1 = Pings2 > </title> > <desc> > temp0 = /tmp/ping1_results.txt > temp1 = /tmp/ping2_results.txt > </desc> > <unit> > temp0 = 1 > temp1 = 1 > </unit> > <map> > temp0 = ping to ping1_results > temp1 = ping to ping2_results > </map> > <alerts> > </alerts> > rigid = 0, 0, 2 > limit = 100, 100, 100 > </gensens> > ---------------- > To: mon...@li... (monitorix- > ge...@li...); > Cc: Jordi Sanfeliu (jo...@fi...); > Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix; > 14.08.2025, 12:45, "Jordi Sanfeliu via Monitorix-general" <monitorix- > ge...@li...>: > > Hello, > > If you use only a single script to execute these two commands you must > keep in mind that the second command will be executed 5 seconds later. > That won't scale well if you plan to track more pings. Better use a > crontab line for each command. > > I don't know that is 'fcron', I only have 'cronie' in my Fedora. > > Regarding the error in the log file, can you, please, paste here the > section <gensens> from your configuration file? > > Regards. > > > > On 8/14/25 08:30, wilson rodrigues wrote: > > I am using this command as per https://www.monitorix.org/ > faq.html <https://www.monitorix.org/faq.html> > <https://www.monitorix.org/faq.html <https:// > www.monitorix.org/faq.html>> (Is there an easy way to integrate > a ping statistic?) > > |ping -c 5 -nq 8.8.8.8 | tail -1 | awk '{if ( $4 == "" ) { print > "0/0/0/0" } else { print $4}}' | awk -F / '{print $2 }' > /tmp/ > ping1_results.txt ping -c 5 -nq 8.8.4.4 | tail -1 | awk '{if > ( $4 == > "" ) { print "0/0/0/0" } else { print $4}}' | awk -F / '{print > $2 }' > / > tmp/ping2_results.txt | > > I have created a shell script with above commands. When the > script is > run manually it is working fine. Getting the two graphs in > monitorix. > > But when same script is run in fcron only ping2 graph is > displaying > correctly. My crontab entry is > > * * * * * root sh /root/bin/monitorix_ping_gensens.sh > > Error in /var/log/monitorix is Use of uninitialized value $val in > division (/) at /usr/lib64/monitorix/gensens.pm line 156. > > What I have tried: Disabling fcron entry and running script > manually > works fine. With fcron only ping2 graph is working. > > Sincerely, > Wilson Rodrigues > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > > -- > Jordi Sanfeliu > FIBRANET Network Services Provider > https://www.fibranet.cat <https://www.fibranet.cat/> > > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... <mailto:Monitorix- > ge...@li...> > https://lists.sourceforge.net/lists/listinfo/monitorix-general > <https://lists.sourceforge.net/lists/listinfo/monitorix-general> > > Sincerely, > Wilson Rodrigues -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat En compliment del Reglament Europeu de Protecció de Dades us informem que les dades personals que contenen el present correu electrònic seran utilitzades, només per l’execució de la prestació de serveis, facturació i/o donar resposta a una consulta, estant legitimat al seu ús en execució del contracte, prestació de serveis i/o consulta realitzada. Les dades proporcionades es conservaran mentre es mantingui relació comercial o durant el període legalment necessari per complir les disposicions legals. No es cediran les dades a tercers, excepte per obligació Legal. El destinatari del correu té dret a exercir el seu dret d’Accés, Rectificació, Limitació, Oposició i Retirar el consentiment, a l’adreça jo...@fi.... Tenint dret a reclamar davant l’Agencia Espanyola de Protecció de Dades. Si rebéssiu aquest correu electrònic erròniament o de forma incompleta, si us plau, procediu a reenviar-nos-el. |
|
From: wilson r. <wro...@ya...> - 2025-08-14 07:46:25
|
<div>Hello,</div><div> </div><div>I have now separated two commands in two shell scripts and having error repeating twice in log. I have installed fcron on my slackware system.</div><div>Use of uninitialized value $val in division (/) at /usr/lib64/monitorix/gensens.pm line 156.</div><div> </div><div><div>* * * * * root sh /root/bin/monitorix_ping1_gensens.sh</div><div>* * * * * root sh /root/bin/monitorix_ping2_gensens.sh</div><div> </div><div> </div></div><div> </div><div>cat /etc/monitorix/conf.d/local.conf</div><div><div># GENSENS graph</div><div># Added on 2025-08-13</div><div># -----------------------------------------------------------------------------</div><div><gensens></div><div> <list></div><div> 0 = temp0</div><div> 1 = temp1</div><div> </list></div><div> <title></div><div> 0 = Pings1</div><div> 1 = Pings2</div><div> </title></div><div> <desc></div><div> temp0 = /tmp/ping1_results.txt</div><div> temp1 = /tmp/ping2_results.txt</div><div> </desc></div><div> <unit></div><div> temp0 = 1</div><div> temp1 = 1</div><div> </unit></div><div> <map></div><div> temp0 = ping to ping1_results</div><div> temp1 = ping to ping2_results</div><div> </map></div><div> <alerts></div><div> </alerts></div><div> rigid = 0, 0, 2</div><div> limit = 100, 100, 100</div><div></gensens></div><div> </div><div> </div></div><div> </div><div>----------------</div><div>To: mon...@li... (mon...@li...);</div><div>Cc: Jordi Sanfeliu (jo...@fi...);</div><div>Subject: [Monitorix-general] [SPAM] want to monitor ping with monitorix;</div><div>14.08.2025, 12:45, "Jordi Sanfeliu via Monitorix-general" <mon...@li...>:</div><blockquote><p>Hello,<br /><br />If you use only a single script to execute these two commands you must<br />keep in mind that the second command will be executed 5 seconds later.<br />That won't scale well if you plan to track more pings. Better use a<br />crontab line for each command.<br /><br />I don't know that is 'fcron', I only have 'cronie' in my Fedora.<br /><br />Regarding the error in the log file, can you, please, paste here the<br />section <gensens> from your configuration file?<br /><br />Regards.<br /><br /><br /><br />On 8/14/25 08:30, wilson rodrigues wrote:</p><blockquote> I am using this command as per <a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">https://www.monitorix.org/faq.html</a><br /> <<a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">https://www.monitorix.org/faq.html</a>> (Is there an easy way to integrate<br /> a ping statistic?)<br /> <br /> |ping -c 5 -nq 8.8.8.8 | tail -1 | awk '{if ( $4 == "" ) { print<br /> "0/0/0/0" } else { print $4}}' | awk -F / '{print $2 }' > /tmp/<br /> ping1_results.txt ping -c 5 -nq 8.8.4.4 | tail -1 | awk '{if ( $4 ==<br /> "" ) { print "0/0/0/0" } else { print $4}}' | awk -F / '{print $2 }' > /<br /> tmp/ping2_results.txt |<br /> <br /> I have created a shell script with above commands. When the script is<br /> run manually it is working fine. Getting the two graphs in monitorix.<br /> <br /> But when same script is run in fcron only ping2 graph is displaying<br /> correctly. My crontab entry is<br /> <br /> * * * * * root sh /root/bin/monitorix_ping_gensens.sh<br /> <br /> Error in /var/log/monitorix is Use of uninitialized value $val in<br /> division (/) at /usr/lib64/monitorix/gensens.pm line 156.<br /> <br /> What I have tried: Disabling fcron entry and running script manually<br /> works fine. With fcron only ping2 graph is working.<br /> <br /> Sincerely,<br /> Wilson Rodrigues<br /> <br /> <br /> _______________________________________________<br /> Monitorix-general mailing list<br /> <a href="mailto:Mon...@li..." rel="noopener noreferrer">Mon...@li...</a><br /> <a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a></blockquote><p> </p>--<br />Jordi Sanfeliu<br />FIBRANET Network Services Provider<br /><a href="https://www.fibranet.cat/" rel="noopener noreferrer">https://www.fibranet.cat</a><br /><br /><br /><br />_______________________________________________<br />Monitorix-general mailing list<br /><a href="mailto:Mon...@li..." rel="noopener noreferrer">Mon...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/monitorix-general" rel="noopener noreferrer">https://lists.sourceforge.net/lists/listinfo/monitorix-general</a></blockquote><div> </div><div> </div><div>Sincerely,<br />Wilson Rodrigues</div><div> </div> |
|
From: Jordi S. <jo...@fi...> - 2025-08-14 07:15:22
|
Hello, If you use only a single script to execute these two commands you must keep in mind that the second command will be executed 5 seconds later. That won't scale well if you plan to track more pings. Better use a crontab line for each command. I don't know that is 'fcron', I only have 'cronie' in my Fedora. Regarding the error in the log file, can you, please, paste here the section <gensens> from your configuration file? Regards. On 8/14/25 08:30, wilson rodrigues wrote: > I am using this command as per https://www.monitorix.org/faq.html > <https://www.monitorix.org/faq.html> (Is there an easy way to integrate > a ping statistic?) > > |ping -c 5 -nq 8.8.8.8 | tail -1 | awk '{if ( $4 == "" ) { print > "0/0/0/0" } else { print $4}}' | awk -F / '{print $2 }' > /tmp/ > ping1_results.txt ping -c 5 -nq 8.8.4.4 | tail -1 | awk '{if ( $4 == > "" ) { print "0/0/0/0" } else { print $4}}' | awk -F / '{print $2 }' > / > tmp/ping2_results.txt | > > I have created a shell script with above commands. When the script is > run manually it is working fine. Getting the two graphs in monitorix. > > But when same script is run in fcron only ping2 graph is displaying > correctly. My crontab entry is > > * * * * * root sh /root/bin/monitorix_ping_gensens.sh > > Error in /var/log/monitorix is Use of uninitialized value $val in > division (/) at /usr/lib64/monitorix/gensens.pm line 156. > > What I have tried: Disabling fcron entry and running script manually > works fine. With fcron only ping2 graph is working. > > Sincerely, > Wilson Rodrigues > > > _______________________________________________ > Monitorix-general mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/monitorix-general -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: wilson r. <wro...@ya...> - 2025-08-14 06:30:49
|
<div><div><p>I am using this command as per <a href="https://www.monitorix.org/faq.html" rel="noopener noreferrer">https://www.monitorix.org/faq.html</a> (Is there an easy way to integrate a ping statistic?)</p><pre><code>ping -c 5 -nq 8.8.8.8 | tail -1 | awk '{if ( $4 == "" ) { print "0/0/0/0" } else { print $4}}' | awk -F / '{print $2 }' > /tmp/ping1_results.txt ping -c 5 -nq 8.8.4.4 | tail -1 | awk '{if ( $4 == "" ) { print "0/0/0/0" } else { print $4}}' | awk -F / '{print $2 }' > /tmp/ping2_results.txt </code></pre><p>I have created a shell script with above commands. When the script is run manually it is working fine. Getting the two graphs in monitorix.</p><p> </p><p>But when same script is run in fcron only ping2 graph is displaying correctly. My crontab entry is</p><div>* * * * * root sh /root/bin/monitorix_ping_gensens.sh</div><p>Error in /var/log/monitorix is Use of uninitialized value $val in division (/) at /usr/lib64/monitorix/gensens.pm line 156.</p><p>What I have tried: Disabling fcron entry and running script manually works fine. With fcron only ping2 graph is working.</p></div></div><div> </div><div>Sincerely,<br />Wilson Rodrigues</div><div> </div> |
|
From: Jordi S. <jo...@fi...> - 2024-11-27 10:04:54
|
Monitorix 3.16.0 has been released! This Monitorix version comes with small changes and just a few fixes. The mature of this tool and mainly my lack of spare time to include new features resulted in a short list of changes. The most noticeable change in this version is the new size of the graphs. Until now the option global_zoom was set to 1, which meant 100%. Now it is set to 1.5 which means 150%. As a result, all graphs are 50% bigger than before. The rest of new features, changes and bugs fixed are, as always, reflected in the Changes file. Please, check the monitorix.conf(5) man page for all the details. NOTICE: The configuration file monitorix.conf has been extended with important changes. All users still using older versions are encouraged to upgrade to this version. -- Jordi Sanfeliu FIBRANET Network Services Provider http://www.fibranet.cat |
|
From: Ken M. <kma...@gm...> - 2023-10-01 19:32:24
|
I just installed Monitorix on Ubuntu 23.04. The install with the default config worked fine, and the graphs look ok. However, my immediate motivation is disk temperature, so I enabled disk in the config file and restarted the service. Now I get ERROR: while graphing /var/lib/monitorix/www//imgs/disk01.1day.png: opening '/var/lib/monitorix/disk.rrd': No such file or directory ERROR: while graphing /var/lib/monitorix/www//imgs/disk01z.1day.png: opening '/var/lib/monitorix/disk.rrd': No such file or direct How do I fix this? By the way I know that the disk temperature is not available using sensors or hddtemp, it is available by smartctl which is installed. Don't know if thats related to the failure. (This may be a repost, I just realized the first time I didn't use the email address I subscribed with) |
|
From: Jordi S. <jo...@fi...> - 2022-12-07 09:00:34
|
Monitorix 3.15.0 has been released! This new version introduces two new modules: intelrapl.pm, for monitoring the power consumption of Intel-RAPL capable devices, and amdenergy.pm to monitor also AMD CPU power consumption. Another important change in this new version is the total rewrite of serv.pm. Its configuration has also changed completely and now it allows a lot of customization. The default configuration should give the same results as with the previous version, although the graph layout will change. The only service that will be affected is Samba. This service needs a complex parsing to get the current Samba use and that's the reason why you need an external script to deal with it. Due to massive change in serv.pm, the following options: secure_log, imap_log, hylafax_log, cups_log and cg_logdir have been deprecated and will be removed in the next Monitorix version. The rest of new features, changes and bugs fixed are, as always, reflected in the Changes file. Please, check the monitorix.conf(5) man page for all the details. NOTICE: The configuration file monitorix.conf has been extended with important changes. All users still using older versions are encouraged to upgrade to this version. -- Jordi Sanfeliu FIBRANET Network Services Provider http://www.fibranet.cat |
|
From: Jordi S. <jo...@fi...> - 2022-07-07 11:00:46
|
Hi, On 7/7/22 11:52, lut...@gm... wrote: > I am on my way to set up monitorix and something in the configuration is broken. In the Mail Graph it shows > > http://10.211.103.131:8080/monitorix-cgi/%3Cbr and then to the right the graphics for greylisting. So you can read the link which does not work. This should be the link to greylisting and should not be visible and should not contain the "<br" at the end. I've copied the whole <mail> section from your configuration file and I don't see such error. All graphs are shown, with no data of course, but the graphs look fine. > When I set fs=n everything is fine again. When I delete my second bind entry, everything is ok. When I set net and netstat to n, everything is ok again. > > As far as I can see it is only this one Mail link that gets destroyed. And I cannot find why. Ok, the configuration is not complete but I cannot find the error in the config file. Maybe more eyes are able to see what's wrong. > This is really strange. I was unable to compare your configuration file because it has converted all tabs to spaces. Maybe you can send it again as an attachment? What Monitorix version are you using? What RRDtool version are you using? What's your OS, and how did you install Monitorix? Also, you might want to check in the log file to see if there are some error messages. Regards. -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: <lut...@gm...> - 2022-07-07 09:53:01
|
Hi,
could anyone please help.
I am on my way to set up monitorix and something in the configuration is broken. In the Mail Graph it shows
http://10.211.103.131:8080/monitorix-cgi/%3Cbr and then to the right the graphics for greylisting. So you can read the link which does not work. This should be the link to greylisting and should not be visible and should not contain the "<br" at the end.
When I set fs=n everything is fine again. When I delete my second bind entry, everything is ok. When I set net and netstat to n, everything is ok again.
As far as I can see it is only this one Mail link that gets destroyed. And I cannot find why. Ok, the configuration is not complete but I cannot find the error in the config file. Maybe more eyes are able to see what's wrong.
I thnak you very much.
-lutzn
# Monitorix - configuration file
#
# See monitorix.conf(5) manpage for a detailed description of each option.
#
title = MONITORIX - memox
hostname = memox
theme_color = black
refresh_rate = 150
iface_mode = graph
enable_zoom = y
netstats_in_bps = n
disable_javascript_void = n
temperature_scale = c
show_gaps = n
global_zoom = 1
max_historic_years = 1
accept_selfsigned_certs = y
image_format = PNG
enable_parallelizing = y
include_dir = /etc/monitorix/conf.d
ipv6_disabled = y
base_dir = /var/lib/monitorix/www/
base_lib = /var/lib/monitorix/
base_url = /monitorix
base_cgi = /monitorix-cgi
<httpd_builtin>
enabled = y
host =
port = 8080
user = nobody
group = nobody
log_file = /var/log/monitorix-httpd
hosts_deny =
hosts_allow =
autocheck_responsiveness = y
<auth>
enabled = n
msg = Monitorix: Restricted access
htpasswd = /var/lib/monitorix/htpasswd
</auth>
</httpd_builtin>
# Log files pathnames
# -----------------------------------------------------------------------------
log_file = /var/log/monitorix
secure_log = /var/log/secure
mail_log = /var/log/mail.log
milter_gl = /var/milter-greylist/greylist.db
imap_log = /var/log/imap
hylafax_log = /var/spool/hylafax/etc/xferfaxlog
cups_log = /var/log/cups/page_log
ftp_log = /var/log/proftpd/access.log # Check monitorix.conf(5) manpage how to edit your ProFTPD server.
fail2ban_log = /var/log/fail2ban.log
spamassassin_log = /var/log/mail.log
clamav_log = /var/log/clamav/clamav.log
cg_logdir = /var/CommuniGate/SystemLogs/
squid_log = /var/log/squid/access.log
imap_log_date_format = %b %d
secure_log_date_format = %b %e
<piwik_tracking>
enabled = n
url = "://example.com/piwik/"
sid = "1"
img = "http://example.com/piwik/piwik.php?idsite=1"
</piwik_tracking>
# Graphs (de)activation
# -----------------------------------------------------------------------------
<graph_enable>
system = y
kern = y
proc = y
hptemp = n
lmsens = n
gensens = y
ipmi = y
ambsens = n
nvidia = n
disk = y
fs = y
zfs = n
du = n
net = y
netstat = y
tc = n
libvirt = y
process = n
serv = y
mail = y
port = y
user = y
ftp = n
apache = n
nginx = n
lighttpd = n
mysql = n
mongodb = n
varnish = n
pagespeed = n
squid = n
nfss = n
nfsc = n
bind = y
unbound = n
ntp = n
chrony = n
fail2ban = y
icecast = n
raspberrypi = n
phpapc = n
memcached = n
phpfpm = n
apcupsd = n
nut = n
wowza = n
int = y
verlihub = n
</graph_enable>
# SYSTEM graph
# -----------------------------------------------------------------------------
<system>
<alerts>
loadavg_enabled = n
loadavg_timeintvl = 3600
loadavg_threshold = 5.0
loadavg_script = /path/to/script.sh
</alerts>
rigid = 1, 0, 0, 0, 0
limit = 1, 1000, 1000, 1000, 1000
</system>
# KERN graph
# -----------------------------------------------------------------------------
<kern>
graph_mode = r
<list>
user = y
nice = y
sys = y
iow = y
irq = y
sirq = y
steal = y
guest = y
</list>
rigid = 2, 1, 2
limit = 100, 1000, 100
</kern>
# PROC graph
# -----------------------------------------------------------------------------
<proc>
max = 4
graphs_per_row = 2
size = medium
data = y
rigid = 2
limit = 100
</proc>
# HPTEMP graph
# -----------------------------------------------------------------------------
<hptemp>
graph_0 = 2, 3
graph_1 = 1, 6
graph_2 = 16, 18, 19, 20, 21, 22
<alerts>
</alerts>
</hptemp>
# LMSENS graph
# -----------------------------------------------------------------------------
<lmsens>
<list>
core0 = Core 2
core1 = Core 4
core2 = Core 6
core3 = Core 8
cpu0 = Package id 0
# mb0 = M/B Temp
# cpu0 = CPU Temp
# fan0 = fan1
# fan1 = fan2
# fan2 = fan3
# volt0 = VCore 1
# volt1 = VCore 2
# volt2 = \+3.3V
# volt3 = \+5V
# volt4 = \+12V
# volt5 = \-12V
# volt6 = \-5V
# volt7 = Battery
# gpu0 = nvidia
</list>
<desc>
</desc>
<alerts>
</alerts>
</lmsens>
# GENSENS graph
# -----------------------------------------------------------------------------
<gensens>
<list>
0 = temp0
1 = cpu0
# 2 = bat0
</list>
<title>
0 = Temperatures
1 = CPU frequency
# 2 = Battery status
</title>
<desc>
temp0 = /sys/devices/virtual/thermal/thermal_zone0/temp
cpu0 = /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
# bat0 = /sys/class/power_supply/BAT0/capacity
</desc>
<unit>
temp0 = 1000
cpu0 = 0.001
# bat0 = 1
</unit>
<map>
temp0 = Temperature Zone 0
cpu0 = CPU0 frequency
# bat0 = Battery 0
</map>
<alerts>
</alerts>
rigid = 0, 0, 2
limit = 100, 100, 100
</gensens>
# IPMI graph
# -----------------------------------------------------------------------------
<ipmi>
list = Temperatures, Fans, Voltages
<desc>
0 = CPU Temp, System Temp, Peripheral Temp, DIMMA1 Temp, DIMMB1 Temp
1 = FAN1, FAN2, FAN3
2 = Vcpu, 3.3VCC, 12V, VDIMM, 5VCC, 5VSB, 3.3VSB, VBAT, 1.2V BMC
</desc>
<units>
0 = degrees C
1 = RPM
2 = Volts
</units>
<map>
FAN1 = FAN1 (CPU)
FAN2 = FAN2 (RAM)
FAN3 = FAN3 (PCI-NVME)
</map>
<alerts>
</alerts>
graphs_per_row = 2
rigid = 0
limit = 100
</ipmi>
# AMBSENS graph
# -----------------------------------------------------------------------------
<ambsens>
list = Ambient Temperature
<desc>
0 = at1
</desc>
<units>
0 = Celsius
</units>
<cmd>
at1 = /path/to/script.sh
</cmd>
<map>
at1 = Gold TEMPer PC USB
</map>
<alerts>
</alerts>
graphs_per_row = 2
rigid = 0
limit = 100
</ambsens>
# NVIDIA graph
# -----------------------------------------------------------------------------
<nvidia>
max = 1
<alerts>
</alerts>
rigid = 1, 2, 2
limit = 50, 100, 100
</nvidia>
# DISK graph
# -----------------------------------------------------------------------------
<disk>
<list>
0 = /dev/sda, /dev/sdb, /dev/nvme1n1, /dev/nvme0n1
</list>
<alerts>
realloc_enabled = n
realloc_timeintvl = 0
realloc_threshold = 1
realloc_script = /path/to/script.sh
pendsect_enabled = n
pendsect_timeintvl = 0
pendsect_threshold = 1
pendsect_script = /path/to/script.sh
</alerts>
</disk>
# FS graph
# -----------------------------------------------------------------------------
<fs>
<list>
0 = /, swap, /boot, /mnt/DATA, /mnt/BIGBACKUP
</list>
<desc>
</desc>
<devmap>
</devmap>
rigid = 2, 0, 2, 0
limit = 100, 1000, 100, 1000
<alerts>
</alerts>
</fs>
# ZFS graph
# -----------------------------------------------------------------------------
<zfs>
max_pools = 5
list = pool1, pool2
rigid = 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0
limit = 1000, 1000, 1000, 1000, 100, 1000, 1000, 1000, 100, 1000, 1000
</zfs>
# DU graph
# -----------------------------------------------------------------------------
<du>
list = System, Users
<desc>
0 = /var/spool/mail, /var/spool/mqueue, /etc, /var/ftp, /tmp
1 = /home/ace, /home/gene, /home/paul, /home/peter
</desc>
<type>
0 = size
1 = files
</type>
<dirmap>
/var/spool/mail = Mail boxes
/var/spool/mqueue = Mail queue
</dirmap>
graphs_per_row = 2
rigid = 0
limit = 100
</du>
# NET graph
# -----------------------------------------------------------------------------
<net>
max = 10
list = eth0
<desc>
eth0 = FastEthernet LAN, 0, 10000000
</desc>
gateway = eth0
</net>
# NETSTAT graph
# -----------------------------------------------------------------------------
<netstat>
cmd = ss
rigid = 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100
</netstat>
# TC graph
# -----------------------------------------------------------------------------
<tc>
list = eth0
<desc>
eth0 = cbq 1, sfq 10, sfq 20, sfq 30, ingress ffff
</desc>
<map>
</map>
rigid = 0, 0, 0, 0
limit = 1000, 1000, 1000, 1000
</tc>
# LIBVIRT graph
# -----------------------------------------------------------------------------
<libvirt>
cmd = virsh
<list>
0 = centos6, winxp
</list>
<desc>
centos6 = CentOS 6, vda, 52:54:00:45:d0:e7
winxp = MS Windows XP, hda, 52:54:00:97:1c:e5
</desc>
rigid = 2, 0, 0, 0
limit = 100, 1000, 1000, 1000
</libvirt>
# PROCESS graph
# -----------------------------------------------------------------------------
<process>
<list>
0 = httpd, sshd, ntpd, mysqld, proftpd, clamd, imap, sendmail, named, smbd
</list>
<desc>
httpd = Apache
imap = Dovecot
named = Bind
</desc>
rigid = 2, 0, 0, 0, 0, 0, 0, 0
limit = 100, 1000, 1000, 1000, 1000, 1000, 1000, 1000
</process>
# SERV graph
# -----------------------------------------------------------------------------
<serv>
mode = i
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</serv>
# MAIL graph
# -----------------------------------------------------------------------------
<mail>
mta = postfix
greylist = postgrey
stats_rate = real
rigid = 0, 0, 0, 0, 0
limit = 1, 1000, 1000, 1000, 1000
<alerts>
delvd_enabled = n
delvd_timeintvl = 60
delvd_threshold = 100
delvd_script = /path/to/script.sh
mqueued_enabled = n
mqueued_timeintvl = 3600
mqueued_threshold = 100
mqueued_script = /path/to/script.sh
</alerts>
</mail>
# PORT graph
# -----------------------------------------------------------------------------
<port>
max = 9
rule = 24000
list = 25, 21, 80, 22, 110, 139, 3306, 53, 143
<desc>
25 = SMTP, tcp, in, 0, 1000, L
21 = FTP, tcp, in, 0, 1000, L
80 = HTTP, tcp, in, 0, 1000, L
22 = SSH, tcp, in, 0, 1000, L
110 = POP3, tcp, in, 0, 1000, L
139 = NETBIOS, tcp, in, 0, 1000, L
3306 = MYSQL, tcp, in, 0, 1000, L
53 = DNS, udp, in, 0, 1000, L
143 = IMAP, tcp, in, 0, 1000, L
</desc>
graphs_per_row = 3
</port>
# USER graph
# -----------------------------------------------------------------------------
<user>
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</user>
# FTP graph
# -----------------------------------------------------------------------------
<ftp>
server = proftpd
anon_user = anonymous, ftp
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</ftp>
# APACHE graph
# -----------------------------------------------------------------------------
<apache>
list = http://localhost/server-status?auto
<alerts>
</alerts>
rigid = 0, 0, 2, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</apache>
# NGINX graph
# -----------------------------------------------------------------------------
<nginx>
url = http://localhost/nginx_status
port = 80
rule = 24100
rigid = 0, 0, 0
limit = 100, 100, 100
</nginx>
# LIGHTTPD graph
# -----------------------------------------------------------------------------
<lighttpd>
list = http://localhost/server-status?auto
rigid = 0, 0, 0
limit = 100, 100, 100
</lighttpd>
# MYSQL graph
# -----------------------------------------------------------------------------
<mysql>
conn_type = host
list = localhost
# list = /var/lib/mysql/mysql.sock
<desc>
localhost = 3306, user, secret
</desc>
rigid = 0, 2, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</mysql>
# MONGODB graph
# -----------------------------------------------------------------------------
<mongodb>
list = localhost
max_db = 1
<desc>
<localhost>
host = 127.0.0.1
db_list = mydb
</localhost>
</desc>
rigid = 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100
</mongodb>
# VARNISH graph
# -----------------------------------------------------------------------------
<varnish>
rigid = 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</varnish>
# PAGESPEED graph
# -----------------------------------------------------------------------------
<pagespeed>
list = http://modpagespeed.com/mod_pagespeed_statistics
rigid = 0, 0, 2, 0, 0, 0, 0, 0
limit = 1000, 1000, 100, 1000, 1000, 1000, 1000, 1000
</pagespeed>
# SQUID graph
# -----------------------------------------------------------------------------
<squid>
cmd = squidclient -h 127.0.0.1
graph_0 = TCP_MISS, TCP_DENIED, TCP_REFRESH_HIT, TCP_IMS_HIT, TCP_HIT, TCP_REFRESH_MISS, TCP_MEM_HIT, TCP_NEGATIVE_HIT, TCP_CLIENT_REFRESH_MISS
graph_1 = 200, 403, 304, 204, 302, 000, 404, 301, 206
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100
</squid>
# NFSS graph
# -----------------------------------------------------------------------------
<nfss>
version = 3
graph_0 = readlink, create, mkdir, symlink, rmdir, remove, rename, link, readdir
graph_1 = mknod, readdirplus, fsstat, fsinfo, pathconf, access, lookup, commit, null
graph_2 = read, write, getattr, setattr
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100
</nfss>
# NFSC graph
# -----------------------------------------------------------------------------
<nfsc>
version = 3
graph_0 = readlink, create, mkdir, symlink, rmdir, remove, rename, link, readdir
graph_1 = mknod, readdirplus, fsstat, fsinfo, pathconf
graph_2 = read, write
graph_3 = getattr, setattr
graph_4 = access, lookup, commit, null
rigid = 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</nfsc>
# BIND graph
# -----------------------------------------------------------------------------
<bind>
list = http://localhost:8053/,http://10.211.100.1:8053/
# list = http://localhost:8053/
<in_queries_list>
http://localhost:8053/ = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
http://10.211.100.1:8053/ = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
</in_queries_list>
<out_queries_list>
http://localhost:8053/ = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
http://10.211.100.1:8053/ = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
</out_queries_list>
<server_stats_list>
http://localhost:8053/ = Requestv4, ReqEdns0, ReqBadEDNSVer, ReqTSIG, ReqSIG0, ReqBadSIG, ReqTCP, Response, QrySuccess, QryAuthAns, QryNoauthAns, QryReferral, QryNxrrset, QrySERVFAIL, QryNXDOMAIN, QryRecursion, QryDuplicate, QryDropped, QryFailure, -nan
http://10.211.100.1:8053/ = Requestv4, ReqEdns0, ReqBadEDNSVer, ReqTSIG, ReqSIG0, ReqBadSIG, ReqTCP, Response, QrySuccess, QryAuthAns, QryNoauthAns, QryReferral, QryNxrrset, QrySERVFAIL, QryNXDOMAIN, QryRecursion, QryDuplicate, QryDropped, QryFailure, -nan
</server_stats_list>
<resolver_stats_list>
http://localhost:8053/ = Queryv4, Responsev4, NXDOMAIN, SERVFAIL, FORMERR, OtherError, EDNS0Fail, Truncated, Lame, Retry, QueryTimeout, GlueFetchv4, GlueFetchv4Fail, ValAttempt, ValOk, ValNegOk
http://10.211.100.1:8053/ = Queryv4, Responsev4, NXDOMAIN, SERVFAIL, FORMERR, OtherError, EDNS0Fail, Truncated, Lame, Retry, QueryTimeout, GlueFetchv4, GlueFetchv4Fail, ValAttempt, ValOk, ValNegOk
</resolver_stats_list>
<cache_rrsets_list>
http://localhost:8053/ = A, !A, AAAA, !AAAA, DLV, !DLV, DS, !DS, MX, NS, CNAME, !CNAME, SOA, !SOA, !ANY, PTR, RRSIG, NSEC, DNSKEY, NXDOMAIN
http://10.211.100.1:8053/ = A, !A, AAAA, !AAAA, DLV, !DLV, DS, !DS, MX, NS, CNAME, !CNAME, SOA, !SOA, !ANY, PTR, RRSIG, NSEC, DNSKEY, NXDOMAIN
</cache_rrsets_list>
rigid = 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100
</bind>
# UNBOUND graph
# -----------------------------------------------------------------------------
<unbound>
queries_type = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100, 100
</unbound>
# NTP graph
# -----------------------------------------------------------------------------
<ntp>
list = localhost
<desc>
localhost = AUTH, AUTO, CRYP, DENY, GPS, INIT, NKEY, RATE, RMOT, RSTR
</desc>
rigid = 0, 0, 0
limit = 100, 100, 100
</ntp>
# CHRONY graph
# -----------------------------------------------------------------------------
<chrony>
list = localhost
rigid = 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</chrony>
# FAIL2BAN graph
# -----------------------------------------------------------------------------
<fail2ban>
list = Security, Overload / Abuse
<desc>
0 = [apache], [apache-mod-security], [apache-overflows], [courierauth], [sshd], [pam-generic], [php-url-fopen], [vsftpd]
1 = [apache-evasive], [apache-badbots], [named-refused-udp], [named-refused-tcp]
</desc>
graphs_per_row = 2
rigid = 0
limit = 100
</fail2ban>
# ICECAST graph
# -----------------------------------------------------------------------------
<icecast>
list = http://localhost:8000/status.xsl
<desc>
http://localhost:8000/status.xsl = stream1, stream2, stream3
</desc>
graph_mode = r
rigid = 0, 0
limit = 100, 100
</icecast>
# RASPBERRYPI graph
# -----------------------------------------------------------------------------
<raspberrypi>
cmd = /opt/vc/bin/vcgencmd
clocks = arm, core, h264, isp, v3d, uart, emmc, pixel, hdmi
volts = core, sdram_c, sdram_i, sdram_p
rigid = 0, 0, 0
limit = 100, 100, 100
</raspberrypi>
# PHPAPC graph
# -----------------------------------------------------------------------------
<phpapc>
list = http://localhost/apc.php?auto
rigid = 2, 2, 0
limit = 100, 100, 100
</phpapc>
# MEMCACHED graph
# -----------------------------------------------------------------------------
<memcached>
list = localhost:11211
rigid = 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100
</memcached>
# PHP-FPM graph
# -----------------------------------------------------------------------------
<phpfpm>
<group>
0 = First group of domains
</group>
<list>
0 = example1, example2, example3
</list>
<desc>
example1 = http://www.example1.com/php_fpm_status
example2 = http://www.example2.com/php_fpm_status
example3 = http://www.example3.com/php_fpm_status
</desc>
<map>
</map>
rigid = 0, 0, 2, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</phpfpm>
# APCUPSD graph
# -----------------------------------------------------------------------------
<apcupsd>
cmd = apcaccess
list = localhost:3551
rigid = 0, 2, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</apcupsd>
# NUT graph
# -----------------------------------------------------------------------------
<nut>
list = ups@localhost
rigid = 0, 2, 0, 0, 0, 0
limit = 100:0, 100, 100:0, 100:0, 100:0, 100:0
</nut>
# WOWZA graph
# -----------------------------------------------------------------------------
<wowza>
list = http://localhost:8086/connectioncounts
<desc>
http://localhost:8086/connectioncounts = channel1, channel2
</desc>
rigid = 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100
</wowza>
# INT graph
# -----------------------------------------------------------------------------
<int>
rigid = 0, 0, 0
limit = 100, 100, 100
</int>
# VERLIHUB graph
# -----------------------------------------------------------------------------
<verlihub>
host = localhost
port = 3306
user = verlihub_user
password = verlihub_password
database = verlihub_database
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</verlihub>
# TRAFFACCT graph
# -----------------------------------------------------------------------------
<traffacct>
enabled = n
max = 10
graphs_per_row = 2
list = pc101, pc102, pc103, pc104
<desc>
0 = 192.168.1.101/32, ac...@ex...
1 = 192.168.1.102/32, ge...@ex...
2 = 192.168.1.103/32, pa...@ex...
3 = 192.168.1.104/32, pe...@ex...
</desc>
<reports>
enabled = n
language = en
default_mail = root@localhost
url_prefix = http://localhost:8080
smtp_hostname = localhost
from_address = no...@ex...
</reports>
rigid = 0
limit = 100
</traffacct>
# Multihost
# -----------------------------------------------------------------------------
<multihost>
enabled = n
footer_url = y
graphs_per_row = 2
default_option_when_all = "System load"
remotehost_list = server 1, server 2, server 3
<remotehost_desc>
0 = http://www.example.com,/monitorix,/monitorix-cgi
1 = http://10.0.0.1,/monitorix,/monitorix-cgi
2 = http://192.168.0.100:8080,/,/
</remotehost_desc>
groups = n
remotegroup_list = My Group
<remotegroup_desc>
0 = server 2, server 3
</remotegroup_desc>
</multihost>
# Email Reports
# -----------------------------------------------------------------------------
<emailreports>
enabled = n
url_prefix = http://localhost:8080
smtp_hostname = localhost
from_address = no...@ex...
hour = 0
minute = 0
<daily>
enabled = n
graphs = system, fs
to = ac...@ex...
</daily>
<weekly>
enabled = n
graphs = system, fs
to = ge...@ex...
</weekly>
<monthly>
enabled = n
graphs = system, fs
to = pa...@ex...
</monthly>
<yearly>
enabled = n
graphs = system, fs
to = pe...@ex...
</yearly>
</emailreports>
# ========================================================================
# ====== Probably you don't need to touch anything below this line ======
# ========================================================================
timeout = 15
imgs_dir = imgs/
usage_dir = usage/
report_dir = reports/
favicon = monitorixico.png
logo_top = logo_top.png
logo_top_url = http://www.monitorix.org/
logo_bottom = logo_bot.png
<theme>
<white>
main_bg = FFFFFF
main_fg = 000000
title_bg = 777777
title_fg = CCCC00
graph_bg = CCCCCC
gap = 000000
</white>
<black>
canvas = 000000
back = 101010
font = C0C0C0
mgrid = 80C080
grid = 808020
frame = 808080
arrow = FFFFFF
shadea = 404040
shadeb = 404040
axis = 101010
main_bg = 000000
main_fg = FFFFFF
title_bg = 333333
title_fg = 888800
graph_bg = 888888
gap = FFFFFF
</black>
</theme>
<graph_size>
main = 450x150
medium = 325x150
medium2 = 325x70
small = 200x66
mini = 183x66
tiny = 110x40
zoom = 800x300
remote = 300x100
</graph_size>
graph_name = system, kern, proc, hptemp, lmsens, gensens, ipmi, ambsens, nvidia, disk, fs, zfs, du, net, netstat, tc, libvirt, process, serv, mail, port, user, ftp, apache, nginx, lighttpd, mysql, mongodb, varnish, pagespeed, squid, nfss, nfsc, bind, unbound, ntp, chrony, fail2ban, icecast, raspberrypi, phpapc, memcached, phpfpm, apcupsd, nut, wowza, int, verlihub
<graph_title>
system = System load average and usage
kern = Global kernel usage
proc = Kernel usage per processor
hptemp = HP ProLiant System Health
lmsens = LM-Sensors and GPU temperatures
gensens = Generic sensor statistics
ipmi = IPMI sensor statistics
ambsens = Ambient sensor statistics
nvidia = NVIDIA temperatures and usage
disk = Disk drive temperatures and health
fs = Filesystem usage and I/O activity
zfs = ZFS statistics
du = Directory usage
net = Network traffic and usage
netstat = Netstat statistics
tc = Traffic Control statistics
libvirt = Libvirt statistics
process = Processes statistics
serv = System services demand
mail = Mail statistics
port = Network port traffic
user = Users using the system
ftp = FTP statistics
apache = Apache statistics
nginx = Nginx statistics
lighttpd = Lighttpd statistics
mysql = MySQL statistics
mongodb = MongoDB statistics
varnish = Varnish statistics
pagespeed = PageSpeed statistics
squid = Squid statistics
nfss = NFS server statistics
nfsc = NFS client statistics
bind = BIND statistics
unbound = Unbound statistics
ntp = NTP statistics
chrony = Chrony statistics
fail2ban = Fail2ban statistics
icecast = Icecast Streaming Media Server
raspberrypi = Raspberry Pi sensor statistics
phpapc = Alternative PHP Cache statistics
memcached = Memcached statistics
phpfpm = PHP-FPM statistics
apcupsd = APC UPS statistics
nut = Network UPS Tools statistics
wowza = Wowza Media Server
int = Devices interrupt activity
verlihub = VerliHub statistics
</graph_title>
<graphs>
_system1 = System load
_system2 = Memory allocation
_system3 = Active processes
_system4 = Entropy
_system5 = Uptime
_kern1 = Kernel usage
_kern2 = Context switches and forks
_kern3 = VFS usage
_proc = Processor
_hptemp1 = Temperatures 1
_hptemp2 = Temperatures 2
_hptemp3 = Temperatures 3
_lmsens1 = Core temperatures
_lmsens2 = Voltages
_lmsens3 = MB and CPU temperatures
_lmsens4 = Fan speeds
_lmsens5 = GPU temperatures
_gensens = Generic sensors
_ipmi = IPMI sensors
_ambsens = Ambient sensors
_nvidia1 = NVIDIA temperatures
_nvidia2 = CPU usage
_nvidia3 = Memory usage
_disk1 = Disk drives temperatures
_disk2 = Reallocated sector count
_disk3 = Current pending sector
_fs1 = Filesystems usage
_fs2 = Disk I/O activity
_fs3 = Inode usage
_fs4 = Time spent in I/O activity
_zfs1 = ARC usage
_zfs2 = ARC cache
_zfs3 = L2ARC cache
_zfs4 = Pool data usage
_zfs5 = Pool usage
_zfs6 = Operations
_zfs7 = Bandwidth
_du = Directory usage
_net1 = Network traffic
_net2 = Network packets
_net3 = Network errors
_netstat1 = IPv4 states
_netstat2 = IPv6 states
_netstat3 = Active close
_netstat4 = Passive close
_netstat5 = UDP statistics
_tc1 = Traffic
_tc2 = Dropped
_tc3 = Overlimits
_tc4 = Requeues
_libvirt1 = CPU time usage
_libvirt2 = Memory usage
_libvirt3 = Disk usage
_libvirt4 = Network usage
_process1 = CPU time usage
_process2 = Memory usage
_process3 = Disk usage
_process4 = Network usage
_process5 = Opened files
_process6 = Number of threads
_process7 = Context switches
_process8 = Number of processes
_serv1 = System services demand
_serv2 = IMAP and POP3 services
_serv3 = SMTP service
_mail1 = Mail statistics
_mail2 = Network traffic
_mail3 = Mails in queue
_mail4 = Queue size
_mail5 = SPF
_mail6 = Greylisting
_port = Port
_user1 = Users logged in
_user2 = Samba users
_user3 = Netatalk users
_ftp1 = Commands usage
_ftp2 = New sessions
_ftp3 = FTP traffic
_apache1 = Apache workers
_apache2 = Apache workers
_apache3 = Apache CPU usage
_apache4 = Apache requests
_apache5 = Apache workers
_apache6 = Apache open slots
_nginx1 = Nginx connections
_nginx2 = Nginx requests
_nginx3 = Nginx traffic
_lighttpd1 = Lighttpd workers
_lighttpd2 = Lighttpd traffic
_lighttpd3 = Lighttpd requests
_mysql1 = MySQL query types
_mysql2 = MySQL overall stats
_mysql3 = Table saturation and MyISAM
_mysql4 = MySQL queries
_mysql5 = MySQL connections
_mysql6 = MySQL traffic
_mongodb1 = MongoDB operations
_mongodb2 = MongoDB metrics document
_mongodb3 = MongoDB write performance
_mongodb4 = MongoDB connections
_mongodb5 = MongoDB requests & asserts
_mongodb6 = MongoDB traffic
_varnish1 = Varnish statistics
_varnish2 = Backend usage
_varnish3 = Client connections
_varnish4 = Cache performance
_varnish5 = Objects
_varnish6 = Traffic
_pagespeed1 = Cache overview
_pagespeed2 = HTML optimization
_pagespeed3 = Saved ratio
_pagespeed4 = Memcached
_pagespeed5 = Pcache cohorts
_pagespeed6 = Rewrite & SHM cache
_pagespeed7 = LRU & File cache
_pagespeed8 = Cache time
_squid1 = Squid statistics 1
_squid2 = Squid statistics 2
_squid3 = Overall I/O
_squid4 = Memory usage
_squid5 = Store directory stats
_squid6 = IP cache stats
_squid7 = Network protocols usage
_squid8 = Client traffic
_squid9 = Server traffic
_nfss1 = NFS server stats 1
_nfss2 = NFS server stats 2
_nfss3 = NFS server stats 3
_nfss4 = Overall I/O
_nfss5 = Network layer
_nfss6 = RPC
_nfss7 = Thread utilization
_nfss8 = Read cache
_nfss9 = File handle cache
_nfsc1 = NFS client stats 1
_nfsc2 = NFS client stats 2
_nfsc3 = NFS client stats 3
_nfsc4 = NFS client stats 4
_nfsc5 = NFS client stats 5
_nfsc6 = RPC client stats
_bind1 = Incoming queries
_bind2 = Outgoing queries (_default)
_bind3 = Name server statistics
_bind4 = Resolver statistics (_default)
_bind5 = Cache DB RRsets (_default)
_bind6 = Memory usage
_bind7 = Task manager
_unbound1 = Queries and cache
_unbound2 = Queries by type
_unbound3 = Recursion time
_unbound4 = Uptime
_unbound5 = Specific traffic
_unbound6 = Memory usage
_unbound7 = Answers by type
_unbound8 = Queries by flags
_unbound9 = Less than 1s resolving time
_unbound10 = More than 1s resolving time
_ntp1 = NTP timing stats
_ntp2 = Stratum level
_ntp3 = Codes
_chrony1 = Chrony timing stats
_chrony2 = Network path delays
_chrony3 = Stratum level
_chrony4 = System's clock drift
_chrony5 = Estimated error in frequency
_chrony6 = Update interval
_fail2ban = Fail2ban jails
_icecast1 = Current listeners
_icecast2 = Bitrate
_raspberrypi1 = Clock frequency
_raspberrypi2 = Temperatures
_raspberrypi3 = Voltages
_phpapc1 = Memory usage
_phpapc2 = Hits & misses
_phpapc3 = File cache
_memcached1 = Memcached statistics 1
_memcached2 = Memcached statistics 2
_memcached3 = Cache usage
_memcached4 = Items in cache
_memcached5 = Objects I/O
_memcached6 = Connections
_memcached7 = Memcached traffic
_phpfpm1 = Accepted connections
_phpfpm2 = Active processes
_phpfpm3 = Listen queue
_phpfpm4 = Total processes
_phpfpm5 = Max. children reached
_phpfpm6 = Slow requests
_apcupsd1 = Line voltage
_apcupsd2 = Battery charge
_apcupsd3 = Temperatures
_apcupsd4 = Battery voltage
_apcupsd5 = Time left
_apcupsd6 = Line frequency
_nut1 = Line voltage
_nut2 = Battery charge
_nut3 = Temperatures
_nut4 = Battery voltage
_nut5 = Time left
_nut6 = Line frequency
_wowza1 = Current connections
_wowza2 = Messages bytes rate
_wowza3 = Connections accepted
_wowza4 = Connections rejected
_wowza5 = Streams
_int1 = Interrupt activity
_int2 = Core activity
_int3 = Interrupt activity
_verlihub1 = Users in hub
_verlihub2 = Total hub upload
_verlihub3 = Total hub share
</graphs>
|
|
From: Jordi S. <jo...@fi...> - 2022-04-23 07:21:04
|
Hello, On 4/22/22 14:42, Steve Valliere wrote: > Sorry for being a pest, but I'm trying to figure out what I've done wrong. After this I promise to shut up and go away. (smile) Steve, you are very welcome :-), this list has a very low activity, almost only used for version announcements. Nowadays, most people seem to prefer GitHub to ask for issues, questions, etc. Anyway, it's fine to see someone writing here. > I enabled the hourly graphs and got this for the last hour's CPU Core temperatures (image attached). When I've seen a missing/zero value, there has always been a (near) vertical line drawn between the X axis and the 'actual' values. The attached graph doesn't show any of that and yet did not auto scale. If you look closely, you can see that all five tracks are plotted in the very narrow 'track blob' at the top. > > So, how did I defeat the auto-scaling feature? Or is the graph /using/ a zero value (that it invented, since 'sensors' never outputs 0C for a CPU Core temp!) and electing not to draw the associated line segment(s)? I'm sorry, now I realized that the option 'use_nan_for_missing_data' was already recently included in the 'lmsens.pm' module. See here <https://github.com/mikaku/Monitorix/pull/406>. So you only need to add the following options in your <lmsens> section: use_nan_for_missing_data = y limit = 100, 100, 100, 100, 100 and wait until all data plotted (in your selected time frame) is changed to use NaN for all zero values. That is, your graph will start autoscaling correctly after an hour in the hourly graph and after a day in the daily graph and so on. Check the following issue <https://github.com/mikaku/Monitorix/pull/403> to read a similar problem a user had but with a different graph. > [Side note: I tried switching to text mode output to look at the values, but all of the selections I have tried fail with messages like "ERROR: while fetching /var/lib/monitorix/lmsens.rrd: resolution: value must be (suffixed) positive number" on the HOURLY setting -- text mode seems to work fine for daily and above] Yes, text version might well support only standard time frames (daily, weekly, etc.), hourly is a 'tricky' time frame. Regards. -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: Steve V. <nu...@ho...> - 2022-04-22 12:42:29
|
Sorry for being a pest, but I'm trying to figure out what I've done wrong. After this I promise to shut up and go away. (smile) I enabled the hourly graphs and got this for the last hour's CPU Core temperatures (image attached). When I've seen a missing/zero value, there has always been a (near) vertical line drawn between the X axis and the 'actual' values. The attached graph doesn't show any of that and yet did not auto scale. If you look closely, you can see that all five tracks are plotted in the very narrow 'track blob' at the top. So, how did I defeat the auto-scaling feature? Or is the graph /using/ a zero value (that it invented, since 'sensors' never outputs 0C for a CPU Core temp!) and electing not to draw the associated line segment(s)? [Side note: I tried switching to text mode output to look at the values, but all of the selections I have tried fail with messages like "ERROR: while fetching /var/lib/monitorix/lmsens.rrd: resolution: value must be (suffixed) positive number" on the HOURLY setting -- text mode seems to work fine for daily and above] -----Original Message----- From: Jordi Sanfeliu via Monitorix-general <mon...@li...> Sent: Friday, April 22, 2022 3:54 AM To: mon...@li... Cc: Jordi Sanfeliu <jo...@fi...> Subject: Re: [Monitorix-general] lmsensors configuration Hello, On 4/21/22 20:08, Steve Valliere wrote: > Re #2 (setting Y-axis ranges)... I do not understand the need to add the use nan setting, since to set a sensible range for the bulk of the values on my graph. For example, the core (and GPU) temps on my system are just about always 55C +/- 2C, so why am I required to have a graph whose scale goes from 0 to 60? I was hoping it might auto-adjust the low limit on the scale once the graph filled, but it did not. > It looks like both the min and max values for the Y axis are settable parameters for the graphics package, so I'm requesting that we be allowed to set them without hacking into the perl script on our own. But I think I can figure that out if you don't think there's any value to graphs that aren't generally a flat line, um, sorry, I mean if you don't see the value in this option. > The graphs do autoscaling automatically, this is an RRDtool feature. The problem is that some graphs plot a zero value when there is not value to plot and that forces the graph to scale from 0 to the maximum value represented. This behavior is accepted in the majority of cases. That's the reason why not all the graphs include the option 'use_nan_for_missing_data' which forces to use the value NaN when there is no value to represent. Regards. -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat _______________________________________________ Monitorix-general mailing list Mon...@li... https://lists.sourceforge.net/lists/listinfo/monitorix-general |
|
From: Jordi S. <jo...@fi...> - 2022-04-22 07:54:14
|
Hello, On 4/21/22 20:08, Steve Valliere wrote: > Re #2 (setting Y-axis ranges)... I do not understand the need to add the use nan setting, since to set a sensible range for the bulk of the values on my graph. For example, the core (and GPU) temps on my system are just about always 55C +/- 2C, so why am I required to have a graph whose scale goes from 0 to 60? I was hoping it might auto-adjust the low limit on the scale once the graph filled, but it did not. > It looks like both the min and max values for the Y axis are settable parameters for the graphics package, so I'm requesting that we be allowed to set them without hacking into the perl script on our own. But I think I can figure that out if you don't think there's any value to graphs that aren't generally a flat line, um, sorry, I mean if you don't see the value in this option. > The graphs do autoscaling automatically, this is an RRDtool feature. The problem is that some graphs plot a zero value when there is not value to plot and that forces the graph to scale from 0 to the maximum value represented. This behavior is accepted in the majority of cases. That's the reason why not all the graphs include the option 'use_nan_for_missing_data' which forces to use the value NaN when there is no value to represent. Regards. -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: Steve V. <nu...@ho...> - 2022-04-21 18:08:28
|
Re #2 (setting Y-axis ranges)... I do not understand the need to add the use nan setting, since to set a sensible range for the bulk of the values on my graph. For example, the core (and GPU) temps on my system are just about always 55C +/- 2C, so why am I required to have a graph whose scale goes from 0 to 60? I was hoping it might auto-adjust the low limit on the scale once the graph filled, but it did not. It looks like both the min and max values for the Y axis are settable parameters for the graphics package, so I'm requesting that we be allowed to set them without hacking into the perl script on our own. But I think I can figure that out if you don't think there's any value to graphs that aren't generally a flat line, um, sorry, I mean if you don't see the value in this option. Thanks, SteveV. -----Original Message----- From: Jordi Sanfeliu via Monitorix-general <mon...@li...> Sent: Thursday, April 21, 2022 10:43 AM To: mon...@li... Cc: Jordi Sanfeliu <jo...@fi...> Subject: Re: [Monitorix-general] lmsensors configuration Hello Steve, On 4/21/22 15:05, Steve Valliere wrote: > I’m hoping there is a way to do a few things: > > 1. Sensibly map all (I hope) of my sensors output to the graphs This is out of scope of Monitorix, you need to modify lm_sensors to output different names. Please read this FAQ <https://www.monitorix.org/faq.html#Q125>, which will guide you to <https://github.com/mikaku/Monitorix/issues/131>. > 2. Find the setting for the min/max values for the various graphs (e.g. > the core temps only need 30-70 or so) This would need to introduce the option 'use_nan_for_missing_data' like some other graphs already have (<https://github.com/mikaku/Monitorix/issues/401>). Please, open a new issue in GitHub to help to track this change. > 3. Remove graphs with no data points from the display. That's not possible as the majority of graph layouts in Monitorix are fixed. Regards. -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat _______________________________________________ Monitorix-general mailing list Mon...@li... https://lists.sourceforge.net/lists/listinfo/monitorix-general |
|
From: Steve V. <nu...@ho...> - 2022-04-21 18:00:35
|
Thanks, IPMI sounded great, but it seems that my system (a Dell Precision WorkStation R5500, circa 2013) does not support it (Dell appears to have an IPMI driver, but not for linux and/or not for my device.) All of the IPMI detection methods suggested by the freeipmi documentation fail and the ipmi-sensors program runs for a couple minutes and then fails with an internal error (no more detail than that.) Oh well. Using the other suggestion for renaming the lmsensors in the 'sensors' output, I've been able to get all four case temps into the MP and CPU temps graph, and I added my radeon GPU temp to the Core Temperatures graph as well. So voltages and GPU Temps are empty, oh well. Thanks for the help! -----Original Message----- From: Jordi Sanfeliu via Monitorix-general <mon...@li...> Sent: Thursday, April 21, 2022 10:43 AM To: mon...@li... Cc: Jordi Sanfeliu <jo...@fi...> Subject: Re: [Monitorix-general] lmsensors configuration Hello Steve, On 4/21/22 15:05, Steve Valliere wrote: > I’m hoping there is a way to do a few things: > > 1. Sensibly map all (I hope) of my sensors output to the graphs This is out of scope of Monitorix, you need to modify lm_sensors to output different names. Please read this FAQ <https://www.monitorix.org/faq.html#Q125>, which will guide you to <https://github.com/mikaku/Monitorix/issues/131>. > 2. Find the setting for the min/max values for the various graphs (e.g. > the core temps only need 30-70 or so) This would need to introduce the option 'use_nan_for_missing_data' like some other graphs already have (<https://github.com/mikaku/Monitorix/issues/401>). Please, open a new issue in GitHub to help to track this change. > 3. Remove graphs with no data points from the display. That's not possible as the majority of graph layouts in Monitorix are fixed. Regards. -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat _______________________________________________ Monitorix-general mailing list Mon...@li... https://lists.sourceforge.net/lists/listinfo/monitorix-general |
|
From: Jordi S. <jo...@fi...> - 2022-04-21 15:08:58
|
Hello Steve, On 4/21/22 15:05, Steve Valliere wrote: > I’m hoping there is a way to do a few things: > > 1. Sensibly map all (I hope) of my sensors output to the graphs This is out of scope of Monitorix, you need to modify lm_sensors to output different names. Please read this FAQ <https://www.monitorix.org/faq.html#Q125>, which will guide you to <https://github.com/mikaku/Monitorix/issues/131>. > 2. Find the setting for the min/max values for the various graphs (e.g. > the core temps only need 30-70 or so) This would need to introduce the option 'use_nan_for_missing_data' like some other graphs already have (<https://github.com/mikaku/Monitorix/issues/401>). Please, open a new issue in GitHub to help to track this change. > 3. Remove graphs with no data points from the display. That's not possible as the majority of graph layouts in Monitorix are fixed. Regards. -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: mr2dave <mr...@gm...> - 2022-04-21 14:31:47
|
Welcome Steve. I don't know what hardware you've got, but I've had better luck with ipmi than lmsens on hardware with a BMC. Try installing a freeipmi package and run "sudo ipmi-sensors" to see if it detects anything. -Dave On Thu, 2022-04-21 at 13:05 +0000, Steve Valliere wrote: > Hello, I am new to monitorix, having learned of and installed it only > yesterday, so please forgive my ignorance. > > I have managed to get most of the graphs configured the way I want > them and configured the server to listen on only aninternal network > address. I have had some trouble with the LMSENSORS graph for two > reasons: My system doesn’t have any of the sensors required for some > of the graphs and uses the same name for multiple sensor values. > Here’s the output from a sensors command on my machine: > > steve@mail:/etc/monitorix$ sensors > dell_smm-virtual-0 > Adapter: Virtual device > Other Fan: 3114 RPM > Processor Fan: 3148 RPM > Processor Fan: 3137 RPM > Ambient: +25.0°C > Ambient: +24.0°C > Ambient: +27.0°C > Ambient: +24.0°C > > radeon-pci-0200 > Adapter: PCI adapter > temp1: +56.0°C > > coretemp-isa-0000 > Adapter: ISA adapter > Core 0: +54.0°C (high = +87.0°C, crit = +103.0°C) > Core 1: +55.0°C (high = +87.0°C, crit = +103.0°C) > Core 2: +55.0°C (high = +87.0°C, crit = +103.0°C) > Core 3: +56.0°C (high = +87.0°C, crit = +103.0°C) > > And here’s what the graph looks like: > > > And finally, here’s what I’ve got for configuration: > > # LMSENS graph > # ------------------------------------------------------------------- > ---------- > <lmsens> > <list> > core0 = Core 0 > core1 = Core 1 > core2 = Core 2 > core3 = Core 3 > mb0 = Ambient > #cpu0 = CPU Temp > fan0 = Other Fan > fan1 = Processor Fan > #fan2 = Processor Fan > #volt0 = VCore 1 > #volt1 = VCore 2 > #volt2 = \+3.3V > #volt3 = \+5V > #volt4 = \+12V > #volt5 = \-12V > #volt6 = \-5V > #volt7 = Battery > gpu0 = temp1 > </list> > <desc> > mb0 = Case Ambient > fan0 = Case Fan > fan1 = CPU Fan > gpu0 = Radeon GPU > </desc> > <alerts> > </alerts> > </lmsens> > > I’m hoping there is a way to do a few things: > 1. Sensibly map all (I hope) of my sensors output to the graphs > 2. Find the setting for the min/max values for the various graphs > (e.g. the core temps only need 30-70 or so) > 3. Remove graphs with no data points from the display. > > Hopefully someone here will be able and willing to help! (smile) > Thanks in advance. > _______________________________________________ > Monitorix-general mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/monitorix-general |
|
From: Steve V. <nu...@ho...> - 2022-04-21 13:06:15
|
Hello, I am new to monitorix, having learned of and installed it only yesterday, so please forgive my ignorance.
I have managed to get most of the graphs configured the way I want them and configured the server to listen on only an internal network address. I have had some trouble with the LMSENSORS graph for two reasons: My system doesn't have any of the sensors required for some of the graphs and uses the same name for multiple sensor values. Here's the output from a sensors command on my machine:
steve@mail:/etc/monitorix$ sensors
dell_smm-virtual-0
Adapter: Virtual device
Other Fan: 3114 RPM
Processor Fan: 3148 RPM
Processor Fan: 3137 RPM
Ambient: +25.0°C
Ambient: +24.0°C
Ambient: +27.0°C
Ambient: +24.0°C
radeon-pci-0200
Adapter: PCI adapter
temp1: +56.0°C
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +54.0°C (high = +87.0°C, crit = +103.0°C)
Core 1: +55.0°C (high = +87.0°C, crit = +103.0°C)
Core 2: +55.0°C (high = +87.0°C, crit = +103.0°C)
Core 3: +56.0°C (high = +87.0°C, crit = +103.0°C)
And here's what the graph looks like:
[cid:image001.png@01D8555D.FED04090]
And finally, here's what I've got for configuration:
# LMSENS graph
# -----------------------------------------------------------------------------
<lmsens>
<list>
core0 = Core 0
core1 = Core 1
core2 = Core 2
core3 = Core 3
mb0 = Ambient
#cpu0 = CPU Temp
fan0 = Other Fan
fan1 = Processor Fan
#fan2 = Processor Fan
#volt0 = VCore 1
#volt1 = VCore 2
#volt2 = \+3.3V
#volt3 = \+5V
#volt4 = \+12V
#volt5 = \-12V
#volt6 = \-5V
#volt7 = Battery
gpu0 = temp1
</list>
<desc>
mb0 = Case Ambient
fan0 = Case Fan
fan1 = CPU Fan
gpu0 = Radeon GPU
</desc>
<alerts>
</alerts>
</lmsens>
I'm hoping there is a way to do a few things:
1. Sensibly map all (I hope) of my sensors output to the graphs
2. Find the setting for the min/max values for the various graphs (e.g. the core temps only need 30-70 or so)
3. Remove graphs with no data points from the display.
Hopefully someone here will be able and willing to help! (smile) Thanks in advance.
|
|
From: Michael B. <mb...@br...> - 2022-01-30 19:40:20
|
Hi, No problem, I'm just glad that you could fix the problem so fast. Yes, you can include my name and email address. Micke Test is just my nickename, my real name is Michael Bronzini. Regards /Michael Hi, Thank you very much for your feedback, and sorry for the inconveniences of this bug. Do you give me permission to include your name and email address in the Changes file, as the person who found this bug? Regards. On 1/30/22 09:44, Micke Test via Monitorix-general wrote: > Hi, > > > Yes, your patch works! > > I sent a report at 09:40 local time, and it looks like this. > > > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system1.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system2.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system3.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system4.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system5.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs01.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs02.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs03.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs04.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/du0.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/du1.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port0i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port1i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port2i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port3i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port4i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port5i.1day.png - libwww-perl/6.52" > > > Thank you for your help. > > > Regards > > > /Michael > -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat _______________________________________________ Monitorix-general mailing list Mon...@li... https://lists.sourceforge.net/lists/listinfo/monitorix-general |
|
From: Jordi S. <jo...@fi...> - 2022-01-30 17:37:57
|
Hi, Thank you very much for your feedback, and sorry for the inconveniences of this bug. Do you give me permission to include your name and email address in the Changes file, as the person who found this bug? Regards. On 1/30/22 09:44, Micke Test via Monitorix-general wrote: > Hi, > > > Yes, your patch works! > > I sent a report at 09:40 local time, and it looks like this. > > > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system1.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system2.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system3.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system4.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system5.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs01.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs02.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs03.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs04.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/du0.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/du1.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port0i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port1i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port2i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port3i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port4i.1day.png - libwww-perl/6.52" > Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/port5i.1day.png - libwww-perl/6.52" > > > Thank you for your help. > > > Regards > > > /Michael > -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat |
|
From: Micke T. <mb...@br...> - 2022-01-30 09:03:41
|
Hi, Yes, your patch works! I sent a report at 09:40 local time, and it looks like this. Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system1.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system2.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system3.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system4.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system5.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs01.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs02.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs03.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs04.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/du0.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/du1.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/port0i.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/port1i.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/port2i.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/port3i.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/port4i.1day.png - libwww-perl/6.52" Sun Jan 30 09:40:02 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/port5i.1day.png - libwww-perl/6.52" Thank you for your help. Regards /Michael -----Original message----- From: Jordi Sanfeliu via Monitorix-general <mon...@li...> Sent: Sunday 30th January 2022 8:07 To: Micke Test via Monitorix-general <mon...@li...> Cc: Jordi Sanfeliu <jo...@fi...> Subject: Re: [Monitorix-general] Reports no longer working Hi, Good news!, I finally was able to reproduce this and indeed there is a bug. This is the log with the current version: Sun Jan 30 07:49:00 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.60" Sun Jan 30 07:49:00 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:00 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:00 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:00 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:00 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:01 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.60" Sun Jan 30 07:49:01 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:01 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:01 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:01 2022 - NOTEXIST - [127.0.0.1] File does not exist: / Sun Jan 30 07:49:01 2022 - OK - [127.0.0.1] "GET /monitorix - libwww-perl/6.60" and this is the log once patched: Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system1.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system2.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system3.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system4.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/system5.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix-cgi/monitorix.cgi - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs01.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs02.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs03.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix/imgs/fs04.1day.png - libwww-perl/6.60" Sun Jan 30 07:55:01 2022 - OK - [127.0.0.1] "GET /monitorix - libwww-perl/6.60" The problem is in line 138 of the 'emailreports.pm' module. During the parsing of the HTML, the current code is trying find the URLs of the images enclosed with single quotes, but they are now enclosed with double quotes. The line 138 should be changed by the following code: ($url) = $_ =˜ m/<img src=['"](.*?)['"] /; which covers both single or double quotes. Michael, please, patch manually your file in /usr/lib/monitorix/emailreports.pm, then restart Monitorix and let us know if that really fixed it. Thanks. On 1/29/22 22:21, Micke Test via Monitorix-general wrote: > Hi, > > > OS versions are Debian 10 & Debian 11. > > > Using this repository > > deb https://apt.izzysoft.de/ubuntu <https://apt.izzysoft.de/ubuntu> > generic universe > > > I have a script running every night updating all servers. > > apt-get update && apt-get full-upgrade -y > > > I checked the /var/log/monitorix-httpd > > My automated reports are sent at midnight, > > and it looks like this the day before and the day after the 3.14.0 update > > > Tue Jan 18 00:00:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system1.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system2.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system3.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system4.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/system5.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs01.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs02.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs03.1day.png - libwww-perl/6.52" > Tue Jan 18 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix/imgs/fs04.1day.png - libwww-perl/6.52" > Fri Jan 19 00:00:01 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Fri Jan 19 00:00:02 2022 - NOTEXIST - [127.0.0.1] File does not exist: / > Sat Jan 20 00:00:02 2022 - OK - [127.0.0.1] "GET > /monitorix-cgi/monitorix.cgi - libwww-perl/6.52" > > > Regards > > > /Michael > > > Hi, > > I've updated dozens of servers without any problem so far. If you can > bring more information about the OS you are using and how did you update > Monitorix, perhaps I could give some help. > > Just let me know. > Regards. > > > > On 1/29/22 15:22, Micke Test via Monitorix-general wrote: > > Hi, > > > > > > I've been using Monitorix for about a year now and everything has been > > working great. > > > > But after the update January 18 2022, my reports no longer contain any > > graphs. > > > > > > Is this feature broken in 3.14.0 or is there a workaround? > > > > > > > > Thanks, > > > > > > /Michael > -- Jordi Sanfeliu FIBRANET Network Services Provider https://www.fibranet.cat _______________________________________________ Monitorix-general mailing list Mon...@li... https://lists.sourceforge.net/lists/listinfo/monitorix-general |