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_nagios_config

Rating
0 votes
Favoured:
0
Current Version
0.10
Last Release Date
2013-11-29
Compatible With
  • Nagios 3.x
License
GPL
Hits
44085
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_nagios_config
Verify the nagios configuration with 'nagios -v'. There are many situations where a nagios configuration can sit broken without anyone noticing.

$ ./check_nagios_config -h

Usage: check_nagios_config [options]

 -h      :  Display this help text.
 -c FILE :  Location of nagios configuration file, nagios.cfg.
            (Default is: /etc/nagios/nagios.cfg)
 -n FILE :  Location of nagios main executable file, nagios.
            (Default is: /usr/sbin/nagios)
 -x DIR  :  Run in a chroot environment based at DIR.
 -X FILE :  Location of the chroot executable file.
            (Default is: /usr/sbin/chroot)
 -s      :  Use sudo to run the command.
 -p      :  Add performance data output for graphing.
-l : Add long output excluding the lines starting with 'Processing'.
 -W NUM  :  Don't alert until NUM warnings have been reached.
            (Default is: 0)
 -C NUM  :  Don't alert until NUM errors have been reached.
            (Usually zero unless there's a really good reason.)
            (Default is: 0)

Example:
  Check the configuration, alerting on any errors or warnings that
  Nagios reports. Also create performance data for graphing.

    ./check_nagios_config -p