Announcement

Collapse
No announcement yet.

check_snmp_mem_graph.pl

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • check_snmp_mem_graph.pl

    Here is my command:
    $USER1$/check_snmp_mem_graph.pl -H $HOSTADDRESS$ -C %ARG1% -w %ARG2% -c %ARG3% -f
    These are the arguments I use in the service definition :
    !String!100,75!100,85
    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$/check_snmp_mem_graph.pl -H $HOSTADDRESS$ -C %ARG1% -w %ARG2%,%ARG3% -c %ARG4%,%ARG5% -f
    And passed
    !String!100!75!100!85
    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 check_snmp_mem.pl with -g -S -f

    Your command seems to be good, what is the result of you execute :
    /usr/local/nagios/libexec/check_snmp_mem.pl -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.

    Comment


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

      Comment


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

        Comment

        Working...
        X