1301librenms Monitoring
1301librenms Monitoring
Prerequisites
To start with current lab Lab 7 must be completed.
INSTRUCTIONS
1. Verify that you have successfully completed Lab 7. You should see LibreNMS login when you
access S1 via web browser.
2. Before we can log in, some additional configuration is needed. This Ansible script did a lot of
manual work for you, but not all.
3. Log in to S1 (console) and cd to librenms directory (/opt/librenms)
Refer this documentation: http://docs.librenms.org/Support/Install%20Validation/
4. Run validate.php
php ./validate.php
This is so called “catchall” router. Whatever email SMTP server catches it redirects this to root
mailbox.
With command “mail” you must see this email subject “test” and “foo” as body.
Let it run (it takes approximately a minute) and then check free disk space again. Now the df should
report that you have a LESS than 90% free on /
And final test. Reboot S1. After booting up and logging in check “mail”. You should see at least 3
alerts there (mail testing, machine reboot and message that disk has less than 90% free)
Remove /bigfile
Add second host (S2)
Refer this documentation: http://docs.librenms.org/Extensions/Auto-Discovery/
On S1 turn autodiscovery ON (follow instructions referred above)
On S2
Install SNMPD
apt-get update
apt-get install snmpd
Configure snmpd to accept connections from everywhere in community “public”
restart snmpd
Now, after minute or so S2 should appear under the “devices” on LibreNMS.
Reboot S2 and make sure you receive an alert.