Nagios Plug-in default values

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
valbizures
Posts: 5
Joined: Mon Mar 10, 2014 12:40 pm

Nagios Plug-in default values

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Plug-in default values

Post 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).
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios Plug-in default values

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Plug-in default values

Post by abrist »

Do you have any further follow up OP, or should we close this thread?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked