Re: [Nagios-users] Service Dependencies - refer to self

2007-02-07 Thread Andy Shellam (Mailing Lists)

Matthew Joyce wrote:
I like to see this issue come up time and time again, if only to 
hopefully get address in v2.8 or v3
It would be so much simpler if there was a parent_service directive in 
the service definition.
 
Andy, will you share you php script ?
 
Thanks


Hi Matt,

Yep no problem, unfortunately I'm short of time at the moment, but as 
and when I've done it I'll let you have it.


Thanks,

Andy.

 
 
*Matthew Joyce*
02 9382 0051* |* IT Manager* |* Children's Cancer Institute Australia 
for Medical Research
 



*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of
*Andy Shellam (Mailing Lists)
*Sent:* Monday, 5 February 2007 7:24 PM
*To:* moshe sharon
*Cc:* Nagios Users Mailing List
*Subject:* Re: [Nagios-users] Service Dependencies - refer to self

moshe sharon wrote:

Hi
 
its pretty simple solution without perl script. create a

service called NRPE
and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20 <http://212.150.36.20>
 
when running this command against NRPE daemon you should get

response "NRPE v2.0"
 
now create your dependencies that this NRPE is the master

server and the other dependent on it.


Yes, that's what I've done, but how do you do it by simply
defining one dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client
service depend on every other NRPE server in the network, not just
the server that service instance runs on.


Andy.

!DSPAM:37,45c9284218511209245668! 



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Service Dependencies - refer to self

2007-02-06 Thread Matthew Joyce
I like to see this issue come up time and time again, if only to
hopefully get address in v2.8 or v3
It would be so much simpler if there was a parent_service directive in
the service definition.
 
Andy, will you share you php script ?
 
Thanks
 
 
Matthew Joyce 
02 9382 0051 | IT Manager | Children's Cancer Institute Australia for
Medical Research 
 




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Shellam (Mailing Lists)
Sent: Monday, 5 February 2007 7:24 PM
To: moshe sharon
Cc: Nagios Users Mailing List
Subject: Re: [Nagios-users] Service Dependencies - refer to self


moshe sharon wrote: 

Hi
 
its pretty simple solution without perl script. create a
service called NRPE 
and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20
 
when running this command against NRPE daemon you should
get response "NRPE v2.0"
 
now create your dependencies that this NRPE is the
master server and the other dependent on it.


Yes, that's what I've done, but how do you do it by simply
defining one dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client
service depend on every other NRPE server in the network, not just the
server that service instance runs on.


Andy.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Service Dependencies - refer to self

2007-02-05 Thread Andy Shellam (Mailing Lists)

moshe sharon wrote:

Hi
 
its pretty simple solution without perl script. create a service 
called NRPE

and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20 
 
when running this command against NRPE daemon you should get response 
"NRPE v2.0"
 
now create your dependencies that this NRPE is the master server and 
the other dependent on it.


Yes, that's what I've done, but how do you do it by simply defining one 
dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client service 
depend on every other NRPE server in the network, not just the server 
that service instance runs on.



Andy.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Service Dependencies - refer to self

2007-02-04 Thread moshe sharon

Hi

its pretty simple solution without perl script. create a service called NRPE

and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20

when running this command against NRPE daemon you should get response "NRPE
v2.0"

now create your dependencies that this NRPE is the master server and the
other dependent on it.

Hope it Help

Moshe Sharon
http://www.centerity.com



On 2/4/07, Andy Shellam (Mailing Lists) <
[EMAIL PROTECTED]> wrote:


Hugo van der Kooij wrote:

On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote:



Is there any way to make a service dependency refer to the service's own
host?


In your case I would write a tiny script and generate the service
dependencies. I guess some 20 lines of perl might do the trick if you are
fluent in perl.

Hugo.




Thanks Hugo, I'll probably do it in PHP as I haven't touched Perl other
than the very basics.
Was just hoping there may have been an easier way I'd missed in the docs
;)


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null





--
Moshe Sharon
http://www.centerity.com
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Service Dependencies - refer to self

2007-02-04 Thread Andy Shellam (Mailing Lists)

Hugo van der Kooij wrote:

On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote:

  

Is there any way to make a service dependency refer to the service's own
host?



In your case I would write a tiny script and generate the service 
dependencies. I guess some 20 lines of perl might do the trick if you are 
fluent in perl.


Hugo.

  


Thanks Hugo, I'll probably do it in PHP as I haven't touched Perl other 
than the very basics.

Was just hoping there may have been an easier way I'd missed in the docs ;)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Service Dependencies - refer to self

2007-02-04 Thread Hugo van der Kooij
On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote:

> Is there any way to make a service dependency refer to the service's own
> host?

In your case I would write a tiny script and generate the service 
dependencies. I guess some 20 lines of perl might do the trick if you are 
fluent in perl.

Hugo.

-- 
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Service Dependencies - refer to self

2007-02-04 Thread Andy Shellam (Mailing Lists)
Is there any way to make a service dependency refer to the service's own 
host?

For example:

I have a list of services that perform basic health checking 
(disk-space, swap-space, load, uptime etc) across all servers defined in 
Nagios.
There is also a service on every server that checks that NRPE is running.

What I'd like to do is create a service dependency so that all the basic 
health checks only get checked/notified if NRPE is running.
However, I cannot seem to create a dependency that refers to it's own host.

E.g.

define servicedependency {
hostgroup_nameall_servers
service_descriptionRemote Monitoring Agent
dependent_hostgroup_nameall_servers
dependent_service_descriptionDisk Space (OS)
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

What this does, and I understand why, is that one server's "Disk Space 
(OS)" service depends on every other server's "Remote Monitoring Agent", 
instead of just it's own.

I'd need something like:

define servicedependency {
host_name_self
service_descriptionRemote Monitoring Agent
dependent_host_name_self
dependent_service_descriptionDisk Space (OS)
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

So the service "Disk Space (OS)" is dependent on the "Remote Monitoring 
Agent" on that same server.

The only way forward I can see for now is creating a service dependency 
for every host, for every health check service (which for me means 
upwards of 40 dependencies.)

I hope this is a good enough explanation of what I'm trying to do - can 
this be done?

Thanks

Andy.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null