Welcome, Guest. Please login or register.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gerold

Pages: [1]
1
News / Re: Optical Monitoring
« on: January 29, 2018, 01:47:12 pm »
Hi Remo,

I haven't seen optical transmit or receive levels being out of range at our site.
Judging from my personal experience, monitoring the interface error counters is much more important.
So if this gets implement, please add a global option to enable/disable it. I would probably turn it off.

It's not that important where the values will be stored, but they should be displayed in the context of the corresponding interface.

YMMV.

2
Installation / Running moni.pl as a systemd service
« on: January 29, 2018, 11:52:40 am »
Hi everybody,

since I no longer enjoyed  (re)starting moni.pl manually, I wrote the following service definition in order to let systemd care for the monitoring process.

Code: [Select]
$ cat /etc/systemd/system/nedimoni.service
[Unit]
Description=NeDi monitoring daemon for network infrastructure
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=nediusr
ExecStart=/opt/nedi/current/moni.pl
PrivateTmp=yes
Restart=always
RestartSec=180
#StandardError=syslog
IPAccounting=yes

[Install]
WantedBy=multi-user.target

To see that services status in NeDi, I patched System-Services.php as follows.

Code: [Select]
===================================================================
RCS file: ./RCS/System-Services.php,v
retrieving revision 1.1
diff -u -r1.1 ./System-Services.php
--- ./System-Services.php       2018/01/22 11:17:41     1.1
+++ ./System-Services.php       2018/01/22 11:29:04
@@ -134,6 +134,12 @@
 </tr>
 </table>
 <p>
+<h2>systemd moni status</h2>
+<div class="textpad code pre txta tqrt">
+$ systemctl status -l nedimoni.service
+<?= shell_exec('systemctl status -l nedimoni.service') ?>
+
+</div><br>
 
 <h2><?= $cmdlbl ?></h2>
 

Hope this helps!

Gerold

Pages: [1]