[Icinga-devel] Fwd: Problems with snmp checks in Icinga2 0.0.9 and 0.0.10

Michael Friedrich michael.friedrich at gmail.com
Tue Apr 15 11:54:48 CEST 2014


On 15.04.2014 11:31, Alex Dent wrote:
> Hi,
>
> I'm currently trying to implement some of the nagios-snmp-plugins checks
> in Icinga2. Some I got running, but I'm stuck now with a error where I
> can't get further. I created a config file for the check_snmp_storage.pl
> <http://check_snmp_storage.pl> check. When I run the check from the
> commandline with exactly the same flags, everything works as expected,
> but Icinga sends me the usage output of the check.

And this looks like?

>
> I am using Icinga2 0.0.9 and 0.0.10 with Icinga-web 1.11.0. My
> snmp-storage conf is:

0.0.10 is not yet tagged. Which version are you using?

# icinga2 --version

>
> object CheckCommand "snmp-storage" {
>          import "plugin-check-command",
>
>          command = [
>                  PluginDir + "/check_snmp_storage.pl
> <http://check_snmp_storage.pl>",
>                  "-H", "$HOSTADDRESS$",

that macro is $host.address$ in git next.

>                  "-C", SNMPCom,
>                  "-2",
>                  "-m", "$point$",
>                  "-w", "$wdisk$",
>                  "-c", "$cdisk$",
>                  "-T pu",
>                  "-f"
>          ],
>          macros = {
>                  point = "/",
>                  opt1 = "FixedDisk",

This var seems obsolete.

>                  wdisk = "80",
>                  cdisk = "90"
>          }

The macros dictionary does not exist anymore in git next, was 
renamed/merged with 'custom' into 'vars'.


> }
>
> SNMPCom is a global variable.
>
> Thanks for any replies
> Alex
>
>
>
> _______________________________________________
> icinga-devel mailing list
> icinga-devel at lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-devel
>


-- 
DI (FH) Michael Friedrich

michael.friedrich at gmail.com  || icinga open source monitoring
https://twitter.com/dnsmichi || lead core developer
dnsmichi at jabber.ccc.de       || https://www.icinga.org/team
irc.freenode.net/icinga      || dnsmichi


More information about the icinga-devel mailing list