[Check_mk (english)] Ping Arguments

Your command line is wrong. No arts in it…
Connected by DROID on Verizon Wireless

···

-----Original message-----

From: David Callahan dwcallahan@gmail.com**
To:** “checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de**
Sent:** Tue, Dec 6, 2011 23:09:23 GMT+00:00**
Subject:** [Check_mk (english)] Ping Arguments

I am trying to change the default ping arguments for certain “ping only” hosts.

I have added in a TAG “pingargs” for a few different hosts and added in check-mk-ping-args into my into the check_mk_templages.cfg.

define command {

command_name check-mk-ping-args

command_line /omd/sites/core/lib/nagios/plugins/check_icmp $HOSTADDRESS$

}

I also added in the following in my main.mk

extra_service_conf[“check_command”] = [

    ( "check-mk-ping-args!500.0,50%!750.0,75%", ["pingargs"], ALL_HOSTS,  ),

]

The only time I can see the change is if I change “pingargs” to “ping” but this affects all hosts.

Dave Callahan


This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.


Scott,

Great. I added in the args for the check command and that worked for the host only. When I added in a ping only host with WATO I get a service called check-mk-ping associated with that host. I have a tag called pingargs and the following in my main.mk

extra_service_conf[“check_command”] = [
( “check_mk_ping_args!500.0,20%!800.0,75%”, [“pingargs”], ALL_HOSTS, ),
]

This is the same check_command that works for the host so why wouldn’t that work for the service? What am I missing?

Thanks!

Dave Callahan

···

On Tue, Dec 6, 2011 at 6:38 PM, Lander, Scott slander@hearstsc.com wrote:

Your command line is wrong. No arts in it…
Connected by DROID on Verizon Wireless

-----Original message-----

From: David Callahan dwcallahan@gmail.com**
To:** “checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de**
Sent:** Tue, Dec 6, 2011 23:09:23 GMT+00:00**
Subject:** [Check_mk (english)] Ping Arguments

I am trying to change the default ping arguments for certain “ping only” hosts.

I have added in a TAG “pingargs” for a few different hosts and added in check-mk-ping-args into my into the check_mk_templages.cfg.

define command {

command_name check-mk-ping-args

command_line /omd/sites/core/lib/nagios/plugins/check_icmp $HOSTADDRESS$

}

I also added in the following in my main.mk

extra_service_conf[“check_command”] = [

    ( "check-mk-ping-args!500.0,50%!750.0,75%", ["pingargs"], ALL_HOSTS,  ),

]

The only time I can see the change is if I change “pingargs” to “ping” but this affects all hosts.

Dave Callahan


This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.


Substitute the “ALL_HOSTS” with the tags you need"

extra_service_conf[“check_command”] = [

( “check-mk-ping!-w 6000.0,50% -c 9000.0,60%”, ALL_HOSTS, [“PING”] ),

]

extra_host_conf[“check_command”] = [

( “check-mk-ping!-w 6000.0,50% -c 9000.0,60%”, ALL_HOSTS),

]

···

On Dec 7, 2011, at 12:11 PM, David Callahan wrote:

Scott,

Great. I added in the args for the check command and that worked for the host only. When I added in a ping only host with WATO I get a service called check-mk-ping associated with that host. I have a tag called pingargs and the following in my main.mk

extra_service_conf[“check_command”] = [
( “check_mk_ping_args!500.0,20%!800.0,75%”, [“pingargs”], ALL_HOSTS, ),
]

This is the same check_command that works for the host so why wouldn’t that work for the service? What am I missing?

Thanks!

Dave Callahan

On Tue, Dec 6, 2011 at 6:38 PM, Lander, Scott slander@hearstsc.com wrote:

Your command line is wrong. No arts in it…
Connected by DROID on Verizon Wireless

-----Original message-----

From: David Callahan dwcallahan@gmail.com**
To:** “checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de**
Sent:** Tue, Dec 6, 2011 23:09:23 GMT+00:00**
Subject:** [Check_mk (english)] Ping Arguments

I am trying to change the default ping arguments for certain “ping only” hosts.

I have added in a TAG “pingargs” for a few different hosts and added in check-mk-ping-args into my into the check_mk_templages.cfg.

define command {

command_name check-mk-ping-args

command_line /omd/sites/core/lib/nagios/plugins/check_icmp $HOSTADDRESS$

}

I also added in the following in my main.mk

extra_service_conf[“check_command”] = [

    ( "check-mk-ping-args!500.0,50%!750.0,75%", ["pingargs"], ALL_HOSTS,  ),

]

The only time I can see the change is if I change “pingargs” to “ping” but this affects all hosts.

Dave Callahan


This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.



checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Victor,

That seems to have done the trick. It makes since now that I see it.

Thanks!

···


Dave Callahan

On Dec 7, 2011 7:02 PM, “Victor Carpetto” victor@owlbydesign.com wrote:

I’m writing this from my phone, but try this… In the service check command you are replacing the ping command. So, the end has to end in [“ping”]. The hosts you select to do this on need to be specified as a tag before ALL_HOSTS, like so.

extra_service_conf[“check_command”] = [
( “check_mk_ping!-w 6000.0,50% -c 9000.0,60%”, [“your_host_tag”], ALL_HOSTS, [“ping”]),
]

On Dec 7, 2011, at 4:55 PM, David Callahan wrote:

The extra_host_conf works fine but the extra_service_config just doesnt seem to take my tag or pingargs. I checked the check_mk_objects and the service defined is check_mk_pingonly. I also see my tag of pingargs.

I tried the following

extra_service_conf[“check_command”] = [
( “check-mk-ping!-w 6000.0,50% -c 9000.0,60%”, ALL_HOSTS, [“pingargs”] ),
]

extra_service_conf[“check_command”] = [

            ( "check_mk_pingonly!-w 6000.0,50% -c 9000.0,60%", ALL_HOSTS, ["pingargs"] ),

]

The only time I get a change is when I change “pingargs” to “ping” but this effects all hosts services with the check_mk_pingonly.

Any other ideas?


Dave Callahan

On Wed, Dec 7, 2011 at 12:44 PM, Victor Carpetto victor@owlbydesign.com wrote:

Substitute the “ALL_HOSTS” with the tags you need"

extra_service_conf[“check_command”] = [

( “check-mk-ping!-w 6000.0,50% -c 9000.0,60%”, ALL_HOSTS, [“PING”] ),

]

extra_host_conf[“check_command”] = [

( “check-mk-ping!-w 6000.0,50% -c 9000.0,60%”, ALL_HOSTS),

]

On Dec 7, 2011, at 12:11 PM, David Callahan wrote:

Scott,

Great. I added in the args for the check command and that worked for the host only. When I added in a ping only host with WATO I get a service called check-mk-ping associated with that host. I have a tag called pingargs and the following in my main.mk

extra_service_conf[“check_command”] = [
( “check_mk_ping_args!500.0,20%!800.0,75%”, [“pingargs”], ALL_HOSTS, ),
]

This is the same check_command that works for the host so why wouldn’t that work for the service? What am I missing?

Thanks!

Dave Callahan

On Tue, Dec 6, 2011 at 6:38 PM, Lander, Scott slander@hearstsc.com wrote:

Your command line is wrong. No arts in it…
Connected by DROID on Verizon Wireless

-----Original message-----

From: David Callahan dwcallahan@gmail.com**
To:** “checkmk-en@lists.mathias-kettner.decheckmk-en@lists.mathias-kettner.de**
Sent:** Tue, Dec 6, 2011 23:09:23 GMT+00:00**
Subject:** [Check_mk (english)] Ping Arguments

I am trying to change the default ping arguments for certain “ping only” hosts.

I have added in a TAG “pingargs” for a few different hosts and added in check-mk-ping-args into my into the check_mk_templages.cfg.

define command {

command_name check-mk-ping-args

command_line /omd/sites/core/lib/nagios/plugins/check_icmp $HOSTADDRESS$

}

I also added in the following in my main.mk

extra_service_conf[“check_command”] = [

    ( "check-mk-ping-args!500.0,50%!750.0,75%", ["pingargs"], ALL_HOSTS,  ),

]

The only time I can see the change is if I change “pingargs” to “ping” but this affects all hosts.

Dave Callahan


This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin@hearstsc.com) immediately by email and delete the original message.



checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en