Page 1 of 1

Nagios Plug-in default values

Posted: Mon Sep 15, 2014 7:12 pm
by valbizures
Can someone provide me a link or a method of getting the values of the plugs in configured by default in Nagios.

For example:

Examples:
check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /
Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB
check_disk -w 100 -c 50 -C -w 1000 -c 500 -g sidDATA -r '^/oracle/SID/data.*$'
Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex
are grouped which means the freespace thresholds are applied to all disks together
check_disk -w 100 -c 50 -C -w 1000 -c 500 -p /foo -C -w 5% -c 3% -p /bar
Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M

I need to provide these values for a SOX Audit. I tried to open the plugins using VI but they're all distorted.

Thanks in advance.

Re: Nagios Plug-in default values

Posted: Tue Sep 16, 2014 9:27 am
by tmcdonald
The plugins you viewed were compiled binaries so they will look like garbage if opened in a text editor.

In order to find the arguments to the plugins, you will need to look at their command definitions and the associated services that use them. commands.cfg will contain the "skeleton" for the check, and the appropriate entry in your services file will contain the details (what arguments to pass).

Re: Nagios Plug-in default values

Posted: Wed Sep 17, 2014 11:35 am
by eloyd
You can also have Nagios do some of the reporting for you. Go to your Nagios dashboard and scroll all the way to the bottom on the left-hand navigation page. Find "Configuration" and select "Services" from the pull-down. Click Select.

At this point, you have a list of all services plus the check command (including parameters), frequency, check period, notification options, and a lot more. You can filter this list with the "Show only services named or on host" box, update it, and then print it out if you're so inclined.

Re: Nagios Plug-in default values

Posted: Wed Sep 17, 2014 4:39 pm
by abrist
Do you have any further follow up OP, or should we close this thread?