NSClient++ Help (#1) - Change down SERVICESTATE to warning (#317) - Message List

Change down SERVICESTATE to warning

Hi,

is it possible to alter the state of e.g.

check_nt!SERVICESTATE!-d SHOWALL -l 'W3SVC'

to warning if the service is down.

I believe this would be interesting for service that are down but do not require immediate action.

Is there a way to do that?

Regards,

Matthias

  • Message #960

    Check the config section there you can specify which states report what...

    MickeM

    • Message #966

      Thanks for your answer.....

      what config section are you talking about?

      I don't want to change to generell handling of service checks.

      I need something like a parameter for each check_nt!SERVICESTATE, that changes down->critical or down->warning.

      Matthias

      • Message #970

        Check [CheckSystem] it is all the check_all_services[XXX]=<value> I am talking about.

        [Check System]
        ...
        ;# CHECK ALL SERVICES
        ;  Configure how to check services when a CheckAll is performed.
        ;  ...=started means services in that class *has* to be running.
        ;  ...=stopped means services in that class has to be stopped.
        ;  ...=ignored means services in this class will be ignored.
        ;check_all_services[SERVICE_BOOT_START]=ignored
        ;check_all_services[SERVICE_SYSTEM_START]=ignored
        ;check_all_services[SERVICE_AUTO_START]=started
        ;check_all_services[SERVICE_DEMAND_START]=ignored
        ;check_all_services[SERVICE_DISABLED]=stopped
        

        MickeM

        • Message #979

          Thanks for the answer but if I understand correctly ... this would do "something" to a group (I can not really change)... and when I look in the Notice-Text of the Showall explanation: "This does not affect the actual resulting code, just the text message. ". This is not what I want.

          Maybe adding a parameter is an idea for the next version ;-)

          Thanks for your answers and such a great tool.

          Matthias

          • Message #980

            ohhh... sorry... I misread...

            You want something like "exclude=myservice" but more like "only warn no critical=myservice"?

            Feel free to request such a feature. it "could" be done with Lua but not easily...

            MickeM

Subscriptions