Announcement

Collapse
No announcement yet.

need help getting perfmon check syntax right

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

  • need help getting perfmon check syntax right

    Hi all,

    Using this guide:
    http://www.sperrgebiet.org/2010/06/m...nga-or-nagios/

    im testing this command from my centreon command interface

    Code:
    $USER1$/check_nrpe -H $HOSTADDRESS$ -p $ARG1$ -c checkCounter -a $ARG5$ $ARG2$Warn=$ARG3$ $ARG2$Crit=$ARG4$ ShowAll
    with the following arguments

    Code:
    !5666!Max!5!10!"\\PhysicalDisk(0 C:)\Current Disk Queue Length"
    and i get this error from centreon web

    Code:
    [TABLE="class: ListTable, width: 698"]
    [TR="class: ListHeader, bgcolor: #BFD0E2"]
    [TD="class: FormHeader, colspan: 2"][IMG]http://172.16.99.247/centreon/img/icones/16x16/exchange.gif[/IMG]  Plugin Test[/TD]
    [/TR]
    [TR="class: list_lvl_1, bgcolor: #D5DFEB"]
    [TD="class: ListColLvl1_name, colspan: 2"][IMG]http://172.16.99.247/centreon/img/icones/16x16/note.gif[/IMG]  Plugin test[/TD]
    [/TR]
    [TR="class: list_one, bgcolor: #FDF0D5"]
    [TD="class: FormRowField"]Command Line[/TD]
    [TD="class: FormRowValue"]/usr/lib/nagios/plugins/check_nrpe -H 192.168.0.9 -p '5666' -c checkCounter -a '"\\PhysicalDisk(0 C:)\Current Disk Queue Length"' 'Max'Warn='5' 'Max'Crit='10' ShowAll[/TD]
    [/TR]
    [TR="class: list_two, bgcolor: #EDF4FF"]
    [TD="class: FormRowField"]Output[/TD]
    [TD="class: FormRowValue"]Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).[/TD]
    [/TR]
    [TR="class: list_one, bgcolor: #F7FAFF"]
    [TD="class: FormRowField"]Status[/TD]
    [TD="class: FormRowValue"]UNKNOWN[/TD]
    [/TR]
    [/TABLE]
    I don't know what im doing wrong. The server is a 2008 R2
    here is a screenshot of the perfmon:
    Udklip.JPG

    its the top line im trying to implement.. not the marked one..

    I don't know what im doing wrong? Do i need the counter configured in my performance monitor aswell before centreon/nagios can use it?

    THANKS

    Casper
    CEO and owner of Ding IT in Denmark
    We do IT-Consultant work along with hosting
    www.dingit.dk
Working...
X