snowirbis / munin-mikrotik-go

Munin modules to monitor MikroTik router activity / writen in Go
1 stars 0 forks source link

Not appearing in munin #1

Open rrolla opened 6 years ago

rrolla commented 6 years ago

Seems all is properly configured and compiled for host r1 because i can see value if manualy run eg:

sudo munin-run mikrotik_caps_clients_r1
clients.value 65

file /etc/munin/plugin-conf.d/zzz-myconf

[mikrotik_*]
env.connect_host r1:8728 #(or 8728 for non/TLS)
env.connect_login munin
env.connect_password password
env.connect_tls false #(or false for non/TLS)

config for node r1 at group router in file /etc/munin/munin.conf

[router;r1]
    address 127.0.0.1

But in graph nothing shows up

snowirbis commented 6 years ago

I think it's local munin configuration issue. Try to telnet locally to your munin node host (replace mikrotik_caps_clients with mikrotik_caps_clients_r1)

`telnet 127.0.0.1 4949 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.

munin node at router1.rr-office.gw

list

list of loaded modules follows config mikrotik_caps_clients graph_title Active CAPsMAN registrations graph_vlabel clients graph_category network graph_info This graph shows active CAPsMAN clients on MikroTik device graph_args -l 0 graph_scale no clients.label Registrations clients.type GAUGE clients.draw AREA clients.graph yes . fetch mikrotik_caps_clients

clients.value 112 . `

What do you see in munin/munin-node.log when doing "config" and "fetch" ?

snowirbis commented 6 years ago

Or may be you forget to reload/restart munin-node service?

rrolla commented 6 years ago

Thanks for fast response, here is output

telnet 127.0.0.1 4949
config mikrotik_caps_clients_r1
graph_title Active CAPsMAN registrations
graph_vlabel clients
graph_category network
graph_info This graph shows active CAPsMAN clients on MikroTik device
graph_args -l 0
graph_scale no
clients.label Registrations
clients.type GAUGE
clients.draw AREA
clients.graph yes
.
fetch mikrotik_caps_clients_r1
clients.value 65

I always restart munin-node after changes

And in log nothing useful appear

tail -f /var/log/munin/munin-node.log
Process Backgrounded
2018/07/30-11:00:44 Munin::Node::Server (type Net::Server::Fork) starting! pid(509)
Resolved [*]:4949 to [::]:4949, IPv6
Not including resolved host [0.0.0.0] IPv4 because it will be handled by [::] IPv6
Binding to TCP port 4949 on host :: with IPv6
Setting gid to "0 0"
snowirbis commented 6 years ago

So, module is working OK. This is local munin issue. Try to do

munin-update --nofork --debug

as described here http://munin-monitoring.org/wiki/FAQ_no_graphs

rrolla commented 6 years ago

Just found that these graphs are on different node eg mc.local :: virtulis.mc.local not router :: r1

virtulis.mc.local is where munin is installed

screenshot from 2018-08-02 16-38-40

What u suggest, how can i move to router :: r1?

snowirbis commented 6 years ago

Sorry, I not consult about munin itself, but try to help you. I need to see your full munin conf.