No announcement yet.

  • Filter
  • Time
  • Show
Clear All
new posts


    Here is my command:
    $USER1$/ -H $HOSTADDRESS$ -C %ARG1% -w %ARG2% -c %ARG3% -f
    These are the arguments I use in the service definition :
    This is the results I see in the monitoring:
    2 warnings and critical !
    It seems it is not passing warning and critical correctly.

    So I changed the command to:
    $USER1$/ -H $HOSTADDRESS$ -C %ARG1% -w %ARG2%,%ARG3% -c %ARG4%,%ARG5% -f
    And passed
    And I got:
    Numeric value for warning or critical !
    How should I be passing these args?

  • #2
    I do not have the command check_snmp_mem_graph, but I use with -g -S -f

    Your command seems to be good, what is the result of you execute :
    /usr/local/nagios/libexec/ -H $HOSTADDRESS$ -C String -w 100,75 -c 100,85 -f

    Rem : your warning and critical for Real Memory is the same (100%), your warning and critical for Swap are good (75% and 85%)

    The "2 warnings and critical !" message is a return of the command, so the parameters are good !

    Some commands just return the state of your request, for exemple chec_ifoperstatus which give just the state of an interface UP or DOWN but not the traffic on it, it could be the same for this ?
    Last edited by kurty100; 1 June 2007, 00:25.


    • #3
      I wonder if the %-sign enclosing the arguments is correct. I would have written
      $USER1$/ -H $HOSTADDRESS$ -C $ARG1$ -w $ARG2$ -c $ARG3$ -f


      • #4
        Excellent catch! That was quite the typo!