Problem parameter for check nscp-local-uptime

(Peter) #1

Hallo,

what is the correct syntax for the argument if i want to change both critical and warning
nscp_arguments -> crit=uptime<1h works!
nscp_arguments -> warn=uptime<4h works!

nscp_arguments -> crit=uptime<1h warn=uptime<4h not works

Thanks
Peter

#2

According to the NSClient docs it should work like that :man_shrugging:
https://docs.nsclient.org/reference/windows/CheckSystem/#check_uptime

Maybe try switching the positions of crit and warn :smiley:

have you tried running the check from the command line?

(Peter) #3

From command line is the check ok.
the problem is the definition in icinga director.

Peter

#4

Have you configured the nscp_arguments field as an array type?
If not change it to array and put both crit and warn into their own array field.
Similar to the nrpe_arguemnts field:
image

1 Like
(Peter) #5

Hallo log1c,

Thanks, type -> Array -> perfekt.

Pter