Switch wizard and Names instead of IP Addresses - CaSe Issue
Posted: Wed May 13, 2015 7:43 pm
XI 2014 R2.7.
Network Switch / Router Wizard v 2.1.7
I ran the Switch / Router wizard against the device WAP01 <--- note the upper case name
XI host can correctly resolve this dns name so I chose it instead of the IP Address
I gave it the hostname "D-Link DAP-2310 - WAP01" ... but that isnt' relevant.
Wizard completed fine.
MRTG conf file was created: WAP01.cfg
Correct target names in config file:
Uppercase files are not being created in /var/lib/mrtg/ BUT lowercase ones are:
Which causes the services to fail with:
So it seems that MRTG always dumps the files in /var/lib/mrtg/ as LOWERcase files.
So either there is a flag for MRTG to stop this from happening OR the switch wizard needs to convert the following to lowercase:
Network Switch / Router Wizard v 2.1.7
I ran the Switch / Router wizard against the device WAP01 <--- note the upper case name
XI host can correctly resolve this dns name so I chose it instead of the IP Address
I gave it the hostname "D-Link DAP-2310 - WAP01" ... but that isnt' relevant.
Wizard completed fine.
MRTG conf file was created: WAP01.cfg
Correct target names in config file:
Code: Select all
Target[WAP01_1]: 1:somethingsecure@WAP01:161::::2Code: Select all
ls /var/lib/mrtg/WAP*.*
ls: cannot access /var/lib/mrtg/WAP*.*: No such file or directory
ls /var/lib/mrtg/wap*.*
/var/lib/mrtg/wap01_2.rrd /var/lib/mrtg/wap01_5.rrd /var/lib/mrtg/wap01_7.rrd
/var/lib/mrtg/wap01_4.rrd /var/lib/mrtg/wap01_6.rrdCode: Select all
/var/lib/mrtg/WAP01_6.rrd does not exist.Code: Select all
define service {
host_name D-Link DAP-2310 - WAP01
service_description ath0 Bandwidth
use xiwizard_switch_port_bandwidth_service
check_command check_xi_service_mrtgtraf!WAP01_6.rrd!150,150!240,240!M
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard switch
register 1
}Code: Select all
define host {
host_name D-Link DAP-2310 - WAP01
use xiwizard_switch_host
address WAP01
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts nagiosadmin
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image switch.png
statusmap_image switch.png
_xiwizard switch
register 1
}So it seems that MRTG always dumps the files in /var/lib/mrtg/ as LOWERcase files.
So either there is a flag for MRTG to stop this from happening OR the switch wizard needs to convert the following to lowercase:
- The address when cfgmaker is run
The check_command for the service which points to the specific RRD file