Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_mikrotik_users

Current Version
1.1
Last Release Date
2011-05-25
Compatible With
  • Nagios 3.x
License
GPL
Hits
99046
Files:
FileDescription
check_mikrotik_userscheck_mikrotik_users
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_mikrotik_users
This plugin checks how many wireless clients are connected.
Setting up mikrotik
Setting up a snmp v3 on mikrotik (works properly only with RouterOS v4.4 or greater):

snmp set enabled=yes contact=wifi@example.com location=Main_Building;
snmp community add name=monitoring security=private authentication-protocol=SHA authentication-password=SecretPasswd encryption-protocol=DES encryption-password=AnotherSecretPasswd read-access=yes address=192.168.1.1
Passwords lenght must be min 8 chars.

Installing check_mikrotik_users plugin
Download the plugin and save it to nagios plugins directory.

Set file permissions:
chown nagios:nagios check_mikrotik_users
chmod 740 check_mikrotik_users

Add following lines into your commands.cfg file
# 'check_mikrotik_users' command definition
define command{
command_name check_mikrotik_users
command_line $USER2$/check_mikrotik_users -H $HOSTADDRESS$ $ARG1$
}

Add following lines into your resource.cfg file
# Store some usernames and passwords (hidden from the CGIs)
$USER3$=monitoring
$USER4$=SecretPasswd
$USER5$=AnotherSecretPasswd

Define new service for your devices.
define service{
use generic-service ; Inherit values from a template
hostgroup_name aps ; Apply to all our APs
service_description Clients count.
check_command check_mikrotik_users!-P 3 -L authPriv -U $USER3$ -a SHA -A $USER4$ -x DES -X $USER5$
}