I need some enlightenments to add a script in LibreNMS
The script will connect and fetch to my Mikrotik and read the:
:local a [/ip firewall mangle get [ find comment=“downstream local” ] bytes ]; :put $a
:local b [/ip firewall mangle get [ find comment=“upstream local” ] bytes ]; :put $b
Here is how I call the script.
#!/bin/sh
mikrotik with ip 192.168.100.2
SSHKEY=“/usr/bin/ssh -i /home/awarmanf/.ssh/id_dsa [email protected] ”
SED=“/usr/bin/sed”
sed used to remove CRLF line terminators
$SSHKEY “/system script run get-traf-international” | $SED -e ‘s/\r//’
3… Here is the example output.
$ cd /usr/local/sbin
$ ./getTrafInt.sh
1088699432
149212232
So, the question, how do add such “data” to a device?
Thanks
laf
9 September 2016 09:02
2
Using check_mk with munin. We don’t have that much documentation on munin side but you can get check_mk setup with:
You will then find a munin script in the librenms-agent repo. You can update your script to support auto graphing which you can find example script in:
opened 10:27PM - 02 Feb 16 UTC
closed 12:17AM - 13 Feb 17 UTC
Documentation :book:
Would it be possible to add Raspberry Pi monitoring using the librenms-agent to … LibreNMS so the CPU temperature and voltages can be monitored?
Here's a good starting point -> http://youresuchageek.blogspot.co.uk/2013/01/howto-raspberry-pi-monitor-your.html
I couldn't get it to work. If testing is needed I'm more than happy to help as I have 3 different versions of Pi's I can test with.
Apologies if this is not the correct place to make this request, first time using github.