Hello, I am an absolute newborn with Nagios and I already must create a complete plugin.
I have the following in my diskspace.cfg that I have created in /usr/local/nagios/etc/objects
define command {
command_name check_xard
command_line $USER1$/check_xard -H $HOSTADDRESS$ -c check_xard -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
}
I wonder what I did wrong and if there's a sort of step-by-step instruction to understand how to operate with w,c etc.
Thank you
Why can't I see any difference when I use these parameters?
-
- Posts: 1
- Joined: Mon Jun 24, 2019 4:54 pm
Re: Why can't I see any difference when I use these paramete
You would need to pass additional arguments to see a difference. For example:
The resulting check that is run would then be:
The values given to -w and c may need to be tweaking. W and c usually indicate the warning and critical values, and these can be numbers, percentages, strings, etc...
https://assets.nagios.com/downloads/nag ... n/toc.html is a good place to start if you're new to Nagios. Check out the "Configuring Nagios" and "The Basics" sections.
Code: Select all
define service {
use generic-service
host_name myserver
service_description CheckHDD
check_command check_xard!50!60
notifications_enabled 0
notification_options w,c,u,r
}
Code: Select all
check_xard -H myserver -c check_xard -w 50 -c 60
https://assets.nagios.com/downloads/nag ... n/toc.html is a good place to start if you're new to Nagios. Check out the "Configuring Nagios" and "The Basics" sections.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.