Search found 8 matches

by jkbuster
Wed Aug 13, 2014 3:14 pm
Forum: Open Source Nagios Projects
Topic: Using host macros in static service definition
Replies: 18
Views: 7205

Re: Using host macros in static service definition

Even if I'm just using the servicegroups directive in a service definition? I was hoping that since I'm in a service definition I'd be able to leverage the host variable.
by jkbuster
Wed Aug 13, 2014 1:11 pm
Forum: Open Source Nagios Projects
Topic: Using host macros in static service definition
Replies: 18
Views: 7205

Re: Using host macros in static service definition

In more testing, I'm able to get it to expand in the check_command, but not in the servicegroups part of the service definition. Copy/pasted so this isn't the issue I'm having.
by jkbuster
Wed Aug 13, 2014 1:03 pm
Forum: Open Source Nagios Projects
Topic: Using host macros in static service definition
Replies: 18
Views: 7205

Re: Using host macros in static service definition

eloyd wrote:Look at http://nagios.sourceforge.net/docs/3_0/ ... tvars.html more closely. You need to prefix your variable with _HOST OR _SERVICE to make them expand.
Haven't I?

The variable is _env, and I'm using $_HOSTENV$
by jkbuster
Wed Aug 13, 2014 12:48 pm
Forum: Open Source Nagios Projects
Topic: Using host macros in static service definition
Replies: 18
Views: 7205

Using host macros in static service definition

I'm trying to use custom host variables as part of my service definition. More specifically for the servicegroups definition. Has anyone else tried to do this with any success? Example: define host { ... _environment testing } define service { ... servicegroups $_HOSTENVIRONMENT$-service1 } The over...
by jkbuster
Tue Jun 18, 2013 10:46 am
Forum: Open Source Nagios Projects
Topic: Servicegroup Members defined by logic
Replies: 1
Views: 883

Servicegroup Members defined by logic

I'm trying to do something fancy, and maybe a little too fancy. Here's the example: Host1 is in hostgroups "type1" and "env1" Host2 is in hostgroups "type1" and "env2" Services are applied to the "type1" hostgroup I want certain services of Host1's t...
by jkbuster
Mon Feb 18, 2013 11:13 am
Forum: Open Source Nagios Projects
Topic: User Command Limitations
Replies: 6
Views: 2695

Re: User Command Limitations

Yes, thanks jsmurphy! I figured that would be the case, but I thought I'd ask. We're beginning our education process, but the ability to force this would be helpful.

Thanks again!

--
JKB
by jkbuster
Thu Feb 14, 2013 2:31 pm
Forum: Open Source Nagios Projects
Topic: User Command Limitations
Replies: 6
Views: 2695

Re: User Command Limitations

slansing, Thanks for the quick response! I have looked at the nagios documentation. The section you've referred me to is how to schedule downtime, I already do that. I'm trying to force others to do so as well. Instead they disable notifications, then forget to re-enable them when they are done and ...
by jkbuster
Thu Feb 14, 2013 1:10 pm
Forum: Open Source Nagios Projects
Topic: User Command Limitations
Replies: 6
Views: 2695

User Command Limitations

I've been looking for a way to limit certain individual commands to a small group of users, such as making it so that only 2 people can disable notifications for a host or service. But, everything I've found has been to enable/disable users from submitting any commands. I'm looking for a way to sche...