Skip to content

Check_command with ARGS is giving command_status as 0 #18

@abhigupta1207

Description

@abhigupta1207

I am trying to create a job in prometheus for the below check command in nrpe.cfg.

command[check_test]=/usr/local/bin/check_test.py -i $ARG1$

I am not able to get command_status as 1 for this command. I tried multiple check_commands with $ARG1$ and it seems like NRPE exporter is not able to run the check_commands with dynamic ARGS.

HELP command_duration Length of time the NRPE command took
TYPE command_duration gauge
command_duration 0.052347708
HELP command_ok Indicates whether or not the command was a success
TYPE command_ok gauge
command_ok 0
HELP command_status Indicates the status of the command
TYPE command_status gauge
command_status 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions