Updated Zabbix Template

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload
Goto page Previous  1, 2
Author Message
chaski
DD-WRT Novice


Joined: 02 Nov 2020
Posts: 5

PostPosted: Sat Nov 21, 2020 0:27    Post subject: Reply with quote
HalfBit wrote:
chaski wrote:
HalfBit - I’ve got a fresh 5.2 Zabbix install and an atheros r7800. Will give this template a spin when I can. I’m pretty new to Zabbix, but would definitely like to monitor the router. Will see how it goes.

Awesome. That's the model I've been wanting to test it on so that's great to hear. Bring on the questions. I'm no expert, but I have learned a TON this go around, and I've been able to integrate the statistics from my pi-hole using the APIs.

If you haven't yet imported the template, here's an updated version. I've tweaked colors, interval times and other minor things...maybe an item or two.

It's up to:
    216 items
    58 triggers
    23 graphs

Here's my config for UserParameters in the Admin GUI:
Code:
Server=xx.xx.xx.xx,xx.xx.xx.xx,xx.xx.xx.xx
UserParameter=temperature.cpu, cat /proc/dmu/temperature
UserParameter=clients.wl0.1, /usr/sbin/wclients wl0.1
UserParameter=clients.wl1.1, /usr/sbin/wclients wl1.1
UserParameter=clients.hardwired, /usr/sbin/clients 2> /dev/null
UserParameter=net.connections, grep -c . /proc/net/ip_conntrack
UserParameter=net.netstat.cksum, netstat -lnt 2> /dev/null | sort | md5sum | tr -cd 0-9 | cut -b1-10 2> /dev/null
UserParameter=net.connections.max, /usr/sbin/nvram get ip_conntrack_max
UserParameter=net.netstat, netstat -lnt 2> /dev/null | sort


Awesome, thanks. I've imported it but at the moment can't seem to get any data out of the router.

Very interested in your Pihole monitoring too, as I'm running two instances.
Sponsor
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 762
Location: AR, USA

PostPosted: Sat Nov 21, 2020 1:37    Post subject: Reply with quote
chaski wrote:
Awesome, thanks. I've imported it but at the moment can't seem to get any data out of the router.

Very interested in your Pihole monitoring too, as I'm running two instances.

Did you update the Admin GUI with your Zabbix server's IP and enable the service/agent? If you use the Server field in the Admin GUI, you don't need the Server= line unless you're trying/testing from multiple servers and need to enable the connections from each server. The text field in the Admin GUI only allows one IP address.

Do the Zabbix listeners appear to be running? You can tail|less the Zabbix agent logs at /var/log/zabbix.log on the CLI.

_________________
R7000 Nighthawk - DD-WRT v3.0-r40270M kongac (07/11/19)
R7000 Nighthawk - DD-WRT v3.0-r40270M kongac (07/11/19)
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
chaski
DD-WRT Novice


Joined: 02 Nov 2020
Posts: 5

PostPosted: Sat Nov 21, 2020 23:14    Post subject: Reply with quote
HalfBit wrote:
chaski wrote:
Awesome, thanks. I've imported it but at the moment can't seem to get any data out of the router.

Very interested in your Pihole monitoring too, as I'm running two instances.

Did you update the Admin GUI with your Zabbix server's IP and enable the service/agent? If you use the Server field in the Admin GUI, you don't need the Server= line unless you're trying/testing from multiple servers and need to enable the connections from each server. The text field in the Admin GUI only allows one IP address.

Do the Zabbix listeners appear to be running? You can tail|less the Zabbix agent logs at /var/log/zabbix.log on the CLI.


I’m an idiot.. was trying SNMP. Facepalm. Don’t really have time to play with it today as tiling the kitchen, but I’ve got tons of the template items reporting data.

The only ones that have ‘failed’ are for packages the router doesn’t have installed/services I’m not running. So looks good to me!
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 762
Location: AR, USA

PostPosted: Sun Nov 22, 2020 1:50    Post subject: Reply with quote
chaski wrote:
I’m an idiot.. was trying SNMP. Facepalm. Don’t really have time to play with it today as tiling the kitchen, but I’ve got tons of the template items reporting data.

The only ones that have ‘failed’ are for packages the router doesn’t have installed/services I’m not running. So looks good to me!

Now that I think about it, in order for all of the items to work for the DDWRT template, you will need the custom UserParameters in the Admin GUI that I've listed:
    UserParameter=temperature.cpu, cat /proc/dmu/temperature
    UserParameter=clients.wl0.1, /usr/sbin/wclients wl0.1
    UserParameter=clients.wl1.1, /usr/sbin/wclients wl1.1
    UserParameter=clients.hardwired, /usr/sbin/clients 2> /dev/null
    UserParameter=net.connections, grep -c . /proc/net/ip_conntrack
    UserParameter=net.netstat.cksum, netstat -lnt 2> /dev/null | sort | md5sum | tr -cd 0-9 | cut -b1-10 2> /dev/null
    UserParameter=net.connections.max, /usr/sbin/nvram get ip_conntrack_max
    UserParameter=net.netstat, netstat -lnt 2> /dev/null | sort

Ultimately you can disable or delete things you don't feel are necessary. I've been building the items, triggers and graphs into the template, and disabling irrelevant items/triggers/etc. for things I didn't need, want, or care about on the host.

_________________
R7000 Nighthawk - DD-WRT v3.0-r40270M kongac (07/11/19)
R7000 Nighthawk - DD-WRT v3.0-r40270M kongac (07/11/19)
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum