Adding ARGS to Service definition

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Adding ARGS to Service definition

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Adding ARGS to Service definition

Post 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.
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Adding ARGS to Service definition

Post 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
}
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Adding ARGS to Service definition

Post by abrist »

This very well could be encapsulated in an $ARG1$. Could you post the command definition as well?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Adding ARGS to Service definition

Post by jcamillo »

Thanks. I was able to consolidate into one arg.
Locked