We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Nagios config file syntax

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios config file syntax

Postby SandraLewisFrin » Tue Apr 26, 2022 2:07 am


I need to know the name of Nagios config files syntax, and how to parsing.

An example of Nagios host define.

define host {
host_name bogus-router
alias Bogus Router #1
parents server-backbone
check_command check-host-alive
check_interval 5
retry_interval 1
max_check_attempts 5
check_period 24x7
process_perf_data 0
retain_nonstatus_information 0
contact_groups router-admins
notification_interval 30
notification_period 24x7
notification omegle shagle voojio_options d,u,r
Last edited by SandraLewisFrin on Fri Jun 17, 2022 6:57 am, edited 1 time in total.
Posts: 12
Joined: Fri Feb 18, 2022 4:44 am

Re: Nagios config file syntax

Postby PaulRajeshMEzra45 » Fri Apr 29, 2022 4:33 am

That's not an example of the Nagios configuration file. The Nagios configuration file (nagios.cfg) has an INI file syntax, i.e. name=value (but no sections).

The example you give is a Nagios object configuration file (referred to via cfg_file in the above config file), but I'm not sure what you're asking. The "name" of the syntax? I'm pretty sure it's not a standard syntax but simply "the" Nagios object syntax. In its simplest form, it's

define [object type] {
attribute value
New lines separate attributes. The attribute never contains spaces, but the value may, depending on the attribute. Some attributes also take multiple values (like notification_options).
Posts: 8
Joined: Wed Feb 16, 2022 2:47 am

Return to Community Support

Who is online

Users browsing this forum: No registered users and 20 guests