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

2007-02-04 Thread Hugo van der Kooij
On Mon, 5 Feb 2007, moshe sharon wrote:

> 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.

How will this help if one has 40 servers with each machine running NRPE? 
And where one wants each service on a machine being dependent on the NRPE 
instance of that machine only?

It might work but you do not explain why it might work which I think would 
be vital information in this regard.

And putting a dependency on someone elses NRPE server without knowing the 
person would not be a wise move in my view.

Hugo.

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

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?


-
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] ascii frontend

2007-02-04 Thread Greg Martin
Rover??  I wrote a tool in 92-93 that monitored Banyan VINES server 
connectivity.  It was a shell tool as well (DOS).  I called that Rover, 
as well.  Imagine my surprise.

\\Greg

[EMAIL PROTECTED] wrote:
> Anyone out there remember Rover?!  Merit et al used it to manage
> the Internet/NSFNet back when some of you were in diapers.  Smart
> sysadmins latched on to it in the 80s/early 90s.
>
>  > Does anyone know of an ascii/text/curses frontend to nagios.
>  > ("dialog" based maybe?)
>
> Try Cnagios?  It's a clone of the old Rover console for Nagios 
> with perl regexp filtering support.
>
> Screenshot...
>
>  http://noc.hep.wisc.edu/cnagios.html
>
> Readme... 
>
>  http://noc.hep.wisc.edu/cnagios.txt
>
> Download...
>
>  ftp://noc.hep.wisc.edu/pub/src/cnagios
>
> steve 
> - - - 
> systems & network manager
> high energy physics
> university of wisconsin
>
> -
> 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
>
>   

-
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] Notification commands

2007-02-04 Thread Josef Fortier
Hi All:

Does anyone have any thoughts on notification best practices?

I just wrote a little shell script to use heredocs to send mail. This
seems preferable to the cookbook notifications, as it makes the message
body a lot more intuitive (you can format the message visually). There's
a simple caveat, the environmental variables that the shell sees are all
prepended with "NAGIOS_".

Looking at this, I added HTML email (multi-part alternative, easy
enough). I know there's a script floating around Nagios Exchange to do
this, but it did not work for me (I think it was built around an older
version of nagios and macros may have changed).

Of all this brings up a few questions I'd like to bounce off the mailing
list.

1) Is there a compelling reason to stick with the one-line
   sendmail/printf notifications? I can't think of any (they already
   shell out, so the approaches seem functionally very close).

2) Would it make sense to build a smarter version. The first idea
   that occurs to me is to build it to recognize HOST vs SERVICE
   messages transparently. Thinking about this some more, and this
   seems like a fairly clean way to build "business logic" into the
   notifications (i.e., indicating specialized escalation
   information for certain cases).

3) Is anyone else interested in posting a version of this to the
   Nagios Exchange?

Joe

-- 

___

Josef Fortier 
Network Administrator   
___

-
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] Adding hosts and services

2007-02-04 Thread Nedim Bicic

On 2/1/07, Nedim Bicic <[EMAIL PROTECTED]> wrote:


yeah i totally forgot about this

let me ask you in order for nagios to see and compile these host files and
services for example for
I would uncomment bellow line in nagios.cfg

#cfg_dir=/etc/nagios/routers

create this extension in nagios give it full permission on the directory
folder and file and it hould work ??

does that sound about right??

thanks



On 2/1/07, Josh Yost <[EMAIL PROTECTED]> wrote:
>
> Nedim Bicic wrote:
> > yeah i can create subdirectory for hosts and services and make a
> pointer in
> > nagios.cfg but let me ask you could you have multiple host.cfg files
> and
> > service.cfg files on the local host
> >
> > for example splitting hosts into areas and serivces into regions
> >
> > also my cpu is spiking in terms of processing i wonder if thats caused
>
> > by my
> > updated of host and services that are in the same files.???
> >
>
> Hi,
> If you define a cfg_dir, then it reads anything in that dir w/ a .cfg
> extension.  So yes, you can split it into as many files as you like.
>
> From the nagios.cfg:
>
> # You can also tell Nagios to process all config files (with a .cfg
> # extension) in a particular directory by using the cfg_dir
> # directive as shown below:
>
> #cfg_dir=/etc/nagios/servers
> #cfg_dir=/etc/nagios/printers
> #cfg_dir=/etc/nagios/switches
> #cfg_dir=/etc/nagios/routers
>
>
> - Josh
>


-
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


[Nagios-users] servicegroup_name in dependencies

2007-02-04 Thread Andy Shellam (Mailing Lists)
Can anyone see a problem with this service dependency setup?  Nagios 
complains with a "NULL service description/host name in service 
dependency definition" message with this configuration, but I cannot see 
anything wrong myself.

According to the manual:

--- start man quote ---
All Services In Multiple Servicegroups: If you want to create service 
dependencies for all services
that belong in one or more servicegroups, you can do use the 
servicegroup_name and/or dependent_
servicegroup_name directive as follows:

define servicedependency{
servicegroup_name SERVICEGROUP1,SERVICEGROUP2,...,SERVICEGROUPN
dependent_servicegroup_name SERVICEGROUP3,SERVICEGROUP4,...SERVICEGROUPN
other escalation directives ...
}
--- end man quote ---

I cannot get this to work under Nagios 2.7.

In my setup, I have a group called "aseu_web_servers."  Every host in 
that group (currently only one) has a service called "Web Service" 
which, using NRPE, checks that the local web server is running.
I then have a list of 13 websites assigned to a service group called 
"web_sites".

What I'm trying to do is setup a dependency on every website, with the 
"Web Service" on the host being the master service, so if the web server 
dies, I don't get a notification for every website that fails.

With the above manual excerpt, I figured the following would work:

define servicedependency {
hostgroup_nameaseu_web_servers
service_descriptionWeb Service
dependent_hostgroup_nameaseu_web_servers
dependent_servicegroup_nameweb_sites
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

Config check fails with: "NULL service description/host name in service 
dependency definition"

If I change "dependent_servicegroup_name" to 
"dependent_service_description" and put a single website in, instead of 
the "web_sites" group, it works, as follows:

define servicedependency {
hostgroup_nameaseu_web_servers
service_descriptionWeb Service
dependent_hostgroup_nameaseu_web_servers
dependent_service_description Website: www.andyshellam.eu
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

Config check results in "Total Warnings: 0; Total Errors:   0"

Even if I set a specific host name instead of a host group, it still 
complains whenever the "dependent_servicegroup_name" option is used.

This means I'll have to add in a service dependency for every website.  
I cannot use a wildcard in the "dependent_service_description" because 
there are other services on those servers that don't have a dependency 
on the web server.  If I add a new website, all I want to have to do is 
add it into the "web_sites" group and have everything else taken care 
of, which the manual says you can by using the 
"dependent_servicegroup_name" directive.

Is this a bug in Nagios, or can anyone tell me I'm missing something silly?

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