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
Don't miss your chance to attend the 2014 Nagios World conference!

Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.


check_nagios_config

Bookmark and Share

Rating
0 votes
Favoured:
0
Current Version
0.10
Last Release Date
2013-11-29
Compatible With
  • Nagios 3.x
E-mail
License
GPL
Hits
22004
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