Hi. I'm trying to work out where some of the default alert settings come from.
For example - disk usage - I'm reading section 12.1.7 "disk" of http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/plugin-check- commands and it tells me "The check_disk plugin checks the amount of used disk space..." and says that the default warning threshold is 20% free space, and the default critical threshold is 10% free space. Sure enough, if I set up a service check with »check_command = "disk"« and no other parameters, then it alerts with the above thresholds. However, if I run a direct command to run /usr/lib/nagios/plugins/check_disk then it tells me "check_disk: Could not parse arguments" and indicates that "- w limit -c limit" are required parameters. So, I'm trying to work out where the 10% and 20% default thresholds are defined. The background reason for this is a little more complicated - I have some hosts where I can run standard Icinga checks (because Icinga is installed on them) and others where I need to use check_by_ssh (because I can install the plugins but I can't install Icinga itself). I'm trying to find a way to define the SSH-based checks using the same thresholds as the standard checks, and I've gone a long way to being able to say "run these checks on this group of hosts" with a transparent test in the background to see whether the check can be run directly or needs converting into a by_ssh check, but in the latter case I am still having to define my own default thresholds, and I want to know where I can find these defined for the standard checks so I can simply re-use them (or re-use the current values if someone has redefined them for certain cases). So, I guess my question comes down to: where can I find where »check_command = "disk"« gets converted into »/usr/lib/nagios/plugins/check_disk« along with the associated default warning and critical thresholds? Antony. -- Programming is a Dark Art, and it will always be. The programmer is fighting against the two most destructive forces in the universe: entropy and human stupidity. They're not things you can always overcome with a "methodology" or on a schedule. - Damian Conway, Perl God Please reply to the list; please *don't* CC me. _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users