W
W
wolverine7772019-06-25 11:30:56
Nagios
wolverine777, 2019-06-25 11:30:56

Where can I read about -w -c plugin options for Nagios?

Hello, I understand that it’s complete nonsense, but I need to figure out how to write plugins for Nagios correctly very quickly :) They already sent to Google where I got a couple of interesting instructions, but I just can’t find one where it would be described in detail how to insert the -w warning options and -c critical, for example...
I understand correctly that you need to insert them
. I got something like this

define command {
 command_name check_xard
 command_line $USER1$/check_xard -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}

define service {
 use generic-service
 host_name myserver
 service_description CheckHDD
 check_command check_xard
 notifications_enabled 0
 notification_options    w,c,u,r
}

all this is in the diskspace.cfg file (as I called it) and the script itself is respectively called check_xard .. The plugin checks the remote machine myserver, the IP of which I have already registered in the config.
Everything seems to work, but it's still not clear how to manage these -with -w and many others. As I understand it, these are options, theoretically it is possible without them, but in practice there is little sense from such a plugin.
In a word, if there is someone who is an expert on Nagios, I would be very grateful if you point me in the right direction.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pcdesign, 2019-06-25
@pcdesign

You must decide this for yourself.
If we are talking about a disk, then write, for example.
That is, if the disk is 85% full, this is warning, and if 92% is already critical, something must be done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question