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

Fritz!Box 7490 check

Current Version
0.1
Last Release Date
2016-02-02
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Hits
14616
Files:
FileDescription
check_fritzcheck_fritz
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!
Script to check several items on the Fritz!Box 7490
I used some other scripts for the Fritz!Box to create this new script for the 7490 model.

usage: check_fritz -d -h hostname -f [-w ] [-c crit]
-d: enable debug output
-w: warn limit, depends on function
-c: critical limit, depends on function
functions:
linkuptime = connection time in seconds.
connection = connection status.
ipaddress = external ip address.
upstream = maximum upstream on current connection.
downstream = maximum downstream on current connection.
Reviews (1)
The linkuptime function doesn't take the input warning and critical arguments:

check_greater ${UPTIME} 1 0 "${RESULT}"

to fix it, you need to change that line to:

check_greater ${UPTIME} ${WARN} ${CRIT} "${RESULT}"

also, if you want the uptime in days/hours/minutes/seconds, you need to change the lines just above the fixed one to:

DAYS=$((${UPTIME}/3600/24))
HOURS=$(((${UPTIME}/3600)-(${DAYS}*24)))
MINUTES=$(((${UPTIME}-(${DAYS}*24*3600)-(${HOURS}*3600))/60))
SECONDS=$((${UPTIME}-(${DAYS}*24*3600)-(${HOURS}*3600)-(${MINUTES}*60)))
RESULT="Link uptime ${UPTIME} seconds (${DAYS}d ${HOURS}h ${MINUTES}m ${SECONDS}s)| uptime=${UPTIME} "