Page 1 of 1
Adding ARGS to Service definition
Posted: Tue Jan 08, 2013 3:50 pm
by jcamillo
I am trying to create a new service and I need to have 10 args. Is there a way to add more args to a new service definition?
Thanks
Joe
Re: Adding ARGS to Service definition
Posted: Tue Jan 08, 2013 3:57 pm
by slansing
Would you mind sharing the command definition and service definition here? If you can place a string of arguments in say...the ARG1 field this could eliminate the issue of needing 10 separate fields as there are only 8 allotted.
Re: Adding ARGS to Service definition
Posted: Tue Jan 08, 2013 3:59 pm
by jcamillo
define service {
host_name jboss-qavpc-1
service_description Jboss-qavpc-log-check
check_command NagiosLogMonitor!logrobot!autonda!/opt/jboss/jboss-as/server/production/log/server.log!60m!'INFO'!'.'!1!-ndshow
max_check_attempts 1
check_interval 15
retry_interval 3
check_period 24x7
notification_interval 5
notification_period 24x7
notification_options w,r,c,f,s
contacts bgupta,nagiosadmin,pagerduty
register 1
}
Re: Adding ARGS to Service definition
Posted: Tue Jan 08, 2013 4:10 pm
by abrist
This very well could be encapsulated in an $ARG1$. Could you post the command definition as well?
Re: Adding ARGS to Service definition
Posted: Wed Jan 09, 2013 9:25 am
by jcamillo
Thanks. I was able to consolidate into one arg.