Blog Posts

SNMPtrap logrotate

I worked this days to troubleshoot why our monitoring tool hardrive gets full very fast. Looks like that service snmptrapd that collects snmp traps is using all the space.Here is my logrotate script to fix it. The trick is that you need to use logrotate to restart the service at every “cleaninig” [email protected]:$ cat /etc/logrotate.d/snmptrapd/var/log/snmptrap/*.log {hourlymissingokrotate 24delaycompressnotifemptycompresspostrotate/bin/systemctl restart snmptrapd.service > /dev/null 2>/dev/null || trueendscript}

Octagon sf8008 automatic buttons pressed

If you have a Octagon sf8008 at home for satelite or cable receiver and you discovered similar to someone  is using remote control even if not ? Yeah, the issue is related to a driver.  Quick fix: mv /lib/modules/4.4.35/extra/hisi_keys.ko /lib/modules/4.4.35/extra/hisi_keys.ko.bakshutdown -r now And now everything should work fine. Credits for this here.

How to get LLDP info details from vSwitch UPLINKS

LLDP is a standard almost everywhere, unlike CDP that is mostly used only on Cisco devices.  From time to time I had to troubleshoot issues where is a ESXi (or ESX) server connected and if all the vlans are tagged correctly. Sometimes documentation is not accurate so we had to find where is connected based on some MAC addresses and other ways. We know that VMware can receive LLDP uplinks information but they are “available” by default only for VDS

Continue Reading

Ansible ssh-dss workaround for AOS6

These days as was fighting with configuration of multiple AOS6 and AOS8 switches using Ansible and I discovered that for old versions of AOS6, this doesn’t work because of the encryption limitation of the python. Error that I had: As a workaround I had to edit: And find those two lines: And replace them with: Don’t need to reload any services, just works after. Source.

Snmp “extend” to OpenWrt Meraki MR33

I discovered recently that Librenms is capable to “handle” and show wifi sensors and because i had a OpenWrt AP running i tried to have it running but… It wasn’t running as it was described. Here i would like to explain what i did to make it running.Two issues that are not discribed in the documentation: Librenms don’t have MIB or snmp-mibs. OpenWrt had a bug that doesn’t have “extend’ feature enabled in my running SNMP application. For problem number

Continue Reading

Installing and Troubleshooting eNMS

Because i started with LibreNMS and then with Netbox, i saw that eNMS can be synced with Librenms. The installation documentation was not the best, really don’t know the exact reason behind. No VM machine for DEMO. I’m guessing that docker demo can be the easier to do it but if i have enough space, i would like to avoid it. Because i recently did a Netbox installation, i discovered that 80% of eNMS installation is really the same and

Continue Reading

Installing and Troubleshooting Netbox

Today because i had some free time, i start to install and configure Netbox to a new virtual machine with Ubuntu 18.04. Found some tutorials online but looks like this was not an easy concept like having a short apt-get install netbox. This is not the case here. One of the best and very recently looks like to be this one. Credit to the author.Installation was pretty fast. Issues: Make sure you put ” inside [] for the IP’s. Example:

Continue Reading

Add temperature and fan data to SNMP -> EdgeRouter

While playing with Librenms and EdgeRouter Infinity i found out that temperature and fan is missing from SNMP. Found that somebody did it manually but for USG PRO and i did it for Ubiquiti EdgeRouter Infinity 2.0.8 version. We are going to use the same concept.Step1: ssh to your EdgeRouter. You can use Filezilla or putty. Default user/pass: ubnt/ubnt.Step2: sudo -i (to become root)Step3: create scripts for monitoring and checking fan and temperature. We have 5 sensors for temperature and

Continue Reading

How to resize a added new disk to a current running partition in Ubuntu 16.04 (running under VMware ESXi)

I would like to describe how i expand the current partition to a new added hard drive under ESXi (not expanding the running hard drive/partition).Because i saw to many tutorials, it was not clear for me how does this works. What we have:– 2 hard drives– 1 of 10 GB– 1 of 50 GB– third one just added of 100GB (the new one)– there is a running partition of 60 GB (aprox)– want to expand the running partition to 150-160

Continue Reading

How to configure VyOS as a home router

Because i’m a networking guy, i don’t like the default view of vyos configuration and I want to see clear cisco like configuration. For this i’m using “show configuration commands”. It works better I would say. We have here: free tunnel to https://tunsafe.com/vpn using wireguard i have a free hotspot configured that is using wireguard to tunsafe. This hotspot have only 443 and 80 enabled. DNS works as well. This means free wifi for my neighbors. ppooe connection dhcp for

Continue Reading

Site Footer