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

W3C Validation Check

Rating
0 votes
Favoured:
0
Current Version
201610112121
Last Release Date
2016-10-11
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
License
Apache
Hits
5636
Files:
FileDescription
check_w3c.shcheck_w3c.sh
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!
Plugin to check any Website if it's free of errors according to the W3C Validation Markup. Plugin working for website markup (html-output) as well as CSS
Nagios Plugin to check the W3C conformity of a website. The Plugin returns a Warning, when at least 1 error occurred in the validation

Example usage in Nagios:
Command: $USER1$/check_w3c.sh --markup --domain $ARG1$ --doctype $ARG2$ --encoding $ARG3$

Service: check_w3c.sh!http://www.markuswalther.org/!HTML5!utf8

Partially written by me! Markus Walther

This Plugin is based on the work of who wrote the bash script "bashw3c". Original source for the W3C Plugin:
https://github.com/edgleyUK/bashw3c

"bashw3c" was licensed under the Apache License, Version 2



Usage:
1. Types
--style CSS Validator
--markup HTML/XHTML Validator

2. Switches
--domain [DOMAIN] Domain name to run validator on
--doctype [DOCTYPE] Force checking markup type against specific doctype
--encoding [ENCODING] Force checking markup type against specific encoding
--profile [PROFILE] Force checking css type against specific profile
--media [MEDIUM] Force checking css type against specific medium type

Doctypes: HTML5, XHTML 1.0 (Strict, Transitional, Frameset), HTML 4.01 (Strict, Transitional, Frameset), HTML 3.2, HTML 2.0, XHTML 1.1, SVG 1.0, SVG 1.1, SVG 1.1 Tiny, SVG 1.1 Basic, MathML 2.0, SMIL (1.0, 2.0)

Encodings: utf-8, utf-16, iso-9959-(1, 2, 3, 4, 5, 6-i, 7, 8, 8-i, 9, 10, 11, 13, 14, 15, 16), us-ascii, euc-jp, shift_jis, iso-2022-jp, euc-kr, ksc_5601, gb2312, gb18030, big5, big5-HKSCS, tis-620, koi8-r, koi8-u, iso-ir-111, macintosh, windows-12(50, 51, 52, 53, 54, 55, 56, 57)

Profiles: css1, css2, css21, css3, svg, svgbasic, mobile, atsc-tv, tv

Mediums: all, braille, embossed, handheld, print, projection, screen, tty, tv, presentation

Run ./check_w3c [TYPE] for a list of switches relevant to that type