[Nagios-users] SNMP and Nagio newbie question.

2007-10-26 Thread Matt Lozier
Hello,

 

I've got Nagios installed and configured managing several Linux and Windows
XP boxes.  On each of the Windows machines I have the SNMP utilities
installed, so that if I execute:

 

#> snmpwalk -v 2c -c   

 

I retrieve the contents of the MIB.  The print out lists lots of useful
information, among which is a listing of each program that is installed on
the Windows machine.  

 

My question: Is there an easy way for Nagios to retrieve this information,
or do I need to write a shell script that executes the SNMPwalk, and parses
out the needed info?

 

Any and all input is appreciated!

 

Thank you,

 

---

Matt Lozier

IT Analyst

972.644.2581, ext. 248

972.661.2701  fax

 

 <http://www.spindletopoil.com/> 

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

 

<>-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] SNMP and Nagio newbie question.

2007-10-26 Thread Matt Lozier
Hi Mark,

 

Thank you for taking the time to respond to my question - much appreciated!


 

One more question branching off of your input: to get *every* instance of
'hrSWInstalledName.X' would I need to write a shell script to serve as a
wrapper program?  Or is there a way to get check_snmp to do this for me?

 

Many thanks,

 

---

Matt Lozier

IT Analyst

972.644.2581, ext. 248

972.661.2701  fax

 

 <http://www.spindletopoil.com/> 

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, October 26, 2007 1:20 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] SNMP and Nagio newbie question.

 


> Hello, 
>   
> I've got Nagios installed and configured managing several Linux and 
> Windows XP boxes.  On each of the Windows machines I have the SNMP 
> utilities installed, so that if I execute: 
>   
> #> snmpwalk -v 2c -c   
>   
> I retrieve the contents of the MIB.  The print out lists lots of 
> useful information, among which is a listing of each program that is
> installed on the Windows machine.   
>   
> My question: Is there an easy way for Nagios to retrieve this 
> information, or do I need to write a shell script that executes the 
> SNMPwalk, and parses out the needed info? 
>   
> Any and all input is appreciated! 
>   
> Thank you, 
>   
> --- 
> Matt Lozier 
> IT Analyst 
> 972.644.2581, ext. 248 
> 972.661.2701  fax 
>   
> [image removed] 
>   
> The information contained in this message or any attached document 
> is confidential and intended only for the individual(s) or entity to
> which it is addressed.   The information should be considered 
> privileged and confidential.  If you are not the intended recipient,
> you are hereby notified that any unauthorized use of the information
> contained in or transmitted with the communication, or 
> dissemination, distribution, or copying of this communication is 
> strictly prohibited by law.  If you have received this communication
> in error, please inform the sender by immediately returning this 
> communication to the sender and then deleting the original message 
> and any copy of it in your possession. 
>  -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser
> Download your FREE copy of Splunk now >>  <http://get.splunk.com/>
http://get.splunk.com/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
>  <https://lists.sourceforge.net/lists/listinfo/nagios-users>
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 

check_snmp -h in the libexec dir will give you the information that you
seek. You will need to define a command but check_snmp should do what you
need it to do.

<>-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] SNMP and Nagio newbie question.

2007-10-26 Thread Matt Lozier
Mark,

 

Well, I'm trying to monitor both.  I just want to be able to get a listing
at a moment's notice of which applications are installed on a given machine.
Seems that it would be easy enough, using the check_snmp plugin, to write a
wrapper program that will notify me via e-mail should a given application be
installed on someone's machine, or if a given application was removed from a
machine.  But I'd really like to get a listing of all of the installed apps.


 

I currently use SNMP w/Nagios to get a listing of all running applications
(everything that gets listed in the task manager) and services on a given
machine, and I'd like to have similar functionality with installed programs.

 

All advice is appreciated.

 

Thank you,

 

---

Matt Lozier

IT Analyst

972.644.2581, ext. 248

972.661.2701  fax

 

 <http://www.spindletopoil.com/> 

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, October 26, 2007 2:29 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] SNMP and Nagio newbie question.

 


"Matt Lozier" <[EMAIL PROTECTED]> wrote on 10/26/2007 02:10:20 PM:

> Hi Mark, 
>   
> Thank you for taking the time to respond to my question - much
appreciated!   
>   
> One more question branching off of your input: to get *every* 
> instance of 'hrSWInstalledName.X' would I need to write a shell 
> script to serve as a wrapper program?  Or is there a way to get 
> check_snmp to do this for me? 
>   
> Many thanks, 
>   
> --- 
 

What exactly are you wanting to monitor? Are you looking to make sure
certain things are installed or trying to make sure that nothing outside of
certain things get installed? I think that more information is needed in
order to discern what is best for you.

<>-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] NSClient++ install: "Too big to fit in memory"

2007-10-29 Thread Matt Lozier
Hello,

 

Has anyone ever run into this problem before when trying to install the
NSClient as a service?

 

At the command prompt I run: 

 

C:\> nsclient++ /install 

 

and the program reports "Too big to fit in memory" and finishes out.  The
service isn't installed - just closes out.

 

Any input is appreciated!

 

Thanks,

 

---

Matt Lozier

Network Administrator

972.644.2581, ext. 248

972.661.2701  fax

 

 <http://www.spindletopoil.com/> 

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

 

<>-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] NSClient++ install: "Too big to fit in memory"

2007-11-02 Thread Matt Lozier
In case any of you should run into this issue in the future, I discovered
what was causing this problem:

 

When I pulled the files from off of our storage server, they must have
gotten corrupted in the process.  I re-transferred the NSClient to the
client machine I want to manage, and re-ran the C:\> nsclient++ /install
command - all is well now.

 

Thank you,

 

---

Matt Lozier

Network Administrator

972.644.2581, ext. 248

972.661.2701  fax

 

 <http://www.spindletopoil.com/> 

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Lozier
Sent: Monday, October 29, 2007 12:24 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] NSClient++ install: "Too big to fit in memory"

 

Hello,

 

Has anyone ever run into this problem before when trying to install the
NSClient as a service?

 

At the command prompt I run: 

 

C:\> nsclient++ /install 

 

and the program reports "Too big to fit in memory" and finishes out.  The
service isn't installed - just closes out.

 

Any input is appreciated!

 

Thanks,

 

---

Matt Lozier

Network Administrator

972.644.2581, ext. 248

972.661.2701  fax

 

 <http://www.spindletopoil.com/> 

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

 

<><>-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Hello,

 

I'm monitoring about 30 machines using Nagios with SNMP checks.  I also have
a DHCP server casting each machine on the network their IP address on
start-up.  Some machines stay on the majority of the time, others for only
4-8 hours a day.  The machines generally maintain their same IP address over
time as DHCP is designed to try and give a machine back it's same IP, so
long as it's available.  However, there have been times when a machine has
changed its IP addresses as a result of using DHCP on this LAN.

 

Question:

 

When I write the host macro for a given machine, e.g:

 

define host{
host_name  random_machine 
address192.168.1.100
check_command  check_ping
}
 
Is there a way to have nagios use a variable to read its address rather than
keep the address static?  This would allow me to have a script scan the
network, and assign IPs to a given variable which is then read by the host's
*.cfg file in the /etc/objects directory.
 
Any and all advice is appreciated.
 
Thank you,

 

 

---

Matt Lozier

Network Administrator

972.644.2581, ext. 248

972.661.2701  fax

 

 <http://www.spindletopoil.com/> 

 

The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

 

<>-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Hi Benny,

Thank you for the reply, but unfortunately I'm not using DNS, and I don't
want to have to :-)

Just want to know if there is a way to monitor hosts that obtain their IP
address via DHCP.

I'll continue to see what I can do with this, and will reply to the list if
I find a solution.

Thanks again,
 

---
Matt Lozier
Network Administrator
972.644.2581, ext. 248
972.661.2701  fax
 

 
The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of C. Bensend
Sent: Monday, November 19, 2007 9:45 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring hosts and DHCP


> I'm monitoring about 30 machines using Nagios with SNMP checks.  I also
> have
> a DHCP server casting each machine on the network their IP address on
> start-up.  Some machines stay on the majority of the time, others for only
> 4-8 hours a day.  The machines generally maintain their same IP address
> over
> time as DHCP is designed to try and give a machine back it's same IP, so
> long as it's available.  However, there have been times when a machine has
> changed its IP addresses as a result of using DHCP on this LAN.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host

Pay particular attention to the address section...  You can use
the hostname in place of the IP address, at the cost of doing a
DNS lookup when the host is checked.

Benny


-- 
"If it's true that our species is alone in the universe, then I'd
have to say that the universe aimed rather low and settled for
very little."-- George Carlin



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Sorry, I meant to hit "reply to all."  My apologies.

Thanks,

---
Matt Lozier
IT Analyst
972.644.2581, ext. 248
972.661.2701  fax
 

 
The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

-Original Message-
From: Aaron M. Segura [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 2:09 PM
To: Matt Lozier
Cc: 'C. Bensend'; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring hosts and DHCP

Hard code the MAC -> IP assignment through your dhcp daemon.

??

On Mon, 2007-11-19 at 14:03 -0600, Matt Lozier wrote:
> Hi Benny,
> 
> Thank you for the reply, but unfortunately I'm not using DNS, and I don't
> want to have to :-)
> 
> Just want to know if there is a way to monitor hosts that obtain their IP
> address via DHCP.
> 
> I'll continue to see what I can do with this, and will reply to the list
if
> I find a solution.
> 
> Thanks again,
>  
> 
> ---
> Matt Lozier
> Network Administrator
> 972.644.2581, ext. 248
> 972.661.2701  fax
>  
> 
> 
> The information contained in this message or any attached document is
> confidential and intended only for the individual(s) or entity to which it
> is addressed.   The information should be considered privileged and
> confidential.  If you are not the intended recipient, you are hereby
> notified that any unauthorized use of the information contained in or
> transmitted with the communication, or dissemination, distribution, or
> copying of this communication is strictly prohibited by law.  If you have
> received this communication in error, please inform the sender by
> immediately returning this communication to the sender and then deleting
the
> original message and any copy of it in your possession.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of C.
Bensend
> Sent: Monday, November 19, 2007 9:45 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Monitoring hosts and DHCP
> 
> 
> > I'm monitoring about 30 machines using Nagios with SNMP checks.  I also
> > have
> > a DHCP server casting each machine on the network their IP address on
> > start-up.  Some machines stay on the majority of the time, others for
only
> > 4-8 hours a day.  The machines generally maintain their same IP address
> > over
> > time as DHCP is designed to try and give a machine back it's same IP, so
> > long as it's available.  However, there have been times when a machine
has
> > changed its IP addresses as a result of using DHCP on this LAN.
> 
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host
> 
> Pay particular attention to the address section...  You can use
> the hostname in place of the IP address, at the cost of doing a
> DNS lookup when the host is checked.
> 
> Benny
> 
> 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-19 Thread Matt Lozier
Hi Benny,

Yes, I'm using WINS.  We have a simple LAN here, nothing fancy.

I think that my best bet is having my DCHP daemon reserve a given IP for
each host.

Thanks for your help and suggestions -- much appreciated!

---
Matt Lozier
Network Administrator
972.644.2581, ext. 248
972.661.2701  fax
 

 
The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of C. Bensend
Sent: Monday, November 19, 2007 2:40 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring hosts and DHCP


> Thank you for the reply, but unfortunately I'm not using DNS, and I don't
> want to have to :-)
>
> Just want to know if there is a way to monitor hosts that obtain their IP
> address via DHCP.
>
> I'll continue to see what I can do with this, and will reply to the list
> if
> I find a solution.

Umm...  So how do you access the hosts, if they're switching
IPs on you and you're not using DNS?  Do you just rely on WINS or
something?

You could set up passive checks, and have the DHCPized machines
*send* you the test results, that way Nagios wouldn't have to have
some way of addressing them.  I *think* that would work?  I've
never tried it.

Benny


-- 
"If it's true that our species is alone in the universe, then I'd
have to say that the universe aimed rather low and settled for
very little."-- George Carlin



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Monitoring hosts and DHCP

2007-11-20 Thread Matt Lozier
Hari,

Thank you for this suggestion, but we do have a very small LAN here, and we
simply use the DHCP daemon that is comes with the software on our router.
If I were managing a larger LAN, it's likely that I would use a *nix host to
run a DHCP daemon.

I've configured the router so that it reserves a given IP for a given MAC
that is regularly on the network.  This way, the DHCP daemon can still do
its job of auto-assigning IPs to new machines, but it can also see to it
that the IP doesn't change over time (which solves the problem that I was
experiencing using Nagios).

Thanks to everyone for your help and suggestions!

---
Matt Lozier
IT Analyst
972.644.2581, ext. 248
972.661.2701  fax
 

 
The information contained in this message or any attached document is
confidential and intended only for the individual(s) or entity to which it
is addressed.   The information should be considered privileged and
confidential.  If you are not the intended recipient, you are hereby
notified that any unauthorized use of the information contained in or
transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by
immediately returning this communication to the sender and then deleting the
original message and any copy of it in your possession.

-Original Message-
From: Hari Sekhon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 3:50 AM
To: Matt Lozier
Cc: 'C. Bensend'; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitoring hosts and DHCP

If you dhcp server is on unix, write some code to parse the dhcp leases 
file to give you the mapping as dynamic input to your check. eg.

check_something -H `show_dhcp computer1` ..

or

check_something -H `check_nrpe -H dhcp_server -c show_dhcp -a computer1`

although this would require passing params through NRPE which I am 
absolutely against as a security risk. Alternatively you could define 
lots of nrpe definitions on the dhcp server to get around the need for 
args... show_dhcp_computer1 for example. Depends on how big your 
environment is really.

I actually starting writing something to display dhcp leases but got 
sidetracked and didn't finish. If you could wait a little while, there 
is a good chance that you can just use what I am writing, although I 
started it just to see who was getting dhcp leases on my network to keep 
an easier eye on it.
I will consider your situation and see what can be done about it when 
writing my plugin which I should pick up again and finish shortly...

-h

Hari Sekhon



Matt Lozier wrote:
> Hi Benny,
>
> Thank you for the reply, but unfortunately I'm not using DNS, and I don't
> want to have to :-)
>
> Just want to know if there is a way to monitor hosts that obtain their IP
> address via DHCP.
>
> I'll continue to see what I can do with this, and will reply to the list
if
> I find a solution.
>
> Thanks again,
>  
>
> ---
> Matt Lozier
> Network Administrator
> 972.644.2581, ext. 248
> 972.661.2701  fax
>  
>
>  
> The information contained in this message or any attached document is
> confidential and intended only for the individual(s) or entity to which it
> is addressed.   The information should be considered privileged and
> confidential.  If you are not the intended recipient, you are hereby
> notified that any unauthorized use of the information contained in or
> transmitted with the communication, or dissemination, distribution, or
> copying of this communication is strictly prohibited by law.  If you have
> received this communication in error, please inform the sender by
> immediately returning this communication to the sender and then deleting
the
> original message and any copy of it in your possession.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of C.
Bensend
> Sent: Monday, November 19, 2007 9:45 AM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Monitoring hosts and DHCP
>
>
>   
>> I'm monitoring about 30 machines using Nagios with SNMP checks.  I also
>> have
>> a DHCP server casting each machine on the network their IP address on
>> start-up.  Some machines stay on the majority of the time, others for
only
>> 4-8 hours a day.  The machines generally maintain their same IP address
>> over
>> time as DHCP is designed to try and give a machine back it's same IP, so
>> long as it's available.  However, there have been times when a machine
has
>> changed its IP addresses as a result of using DHCP on this LAN.
>> 
>
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host
>
> Pay particular attention t

[Nagios-users] Perpetual notifications.

2007-12-27 Thread Matt Lozier
Hello,

 

Is there any way to have Nagios send out notifications for a problem only
*once*.

 

About every half hour I get an e-mail notifying me that a host or service is
down, but I'm already aware of this.  I do want to be notified, but only
once.  If the host goes down at 5:30 pm, I only want to be notified again
once the host is back up.

 

Any help and all suggestions are welcomed and *appreciated*!

 

Thanks so much,

 

---

Matt 

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Perpetual notifications.

2007-12-27 Thread Matt Lozier
Max,

This does appear to work.  Thank you.

I did look through the documentation, but could not find this.  I obviously
wasn't looking in the right place ;-)

Thanks again,

---
Matt 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max Hetrick
Sent: Thursday, December 27, 2007 3:31 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Perpetual notifications.

Matt Lozier wrote:

> Is there any way to have Nagios send out notifications for a problem
> only **once**.
> 
> About every half hour I get an e-mail notifying me that a host or
> service is down, but I'm already aware of this.  I do want to be
> notified, but only once.  If the host goes down at 5:30 pm, I only want
> to be notified again once the host is back up.
> 
> Any help and all suggestions are welcomed and **appreciated**!

First, I would suggest reading the documentation, specifically the
object configuration files documentation, for the version you are
running before asking questions like this. If you read it, this question
will be quickly answered.

Nagios 2.x <http://nagios.sourceforge.net/docs/2_0/>
Nagios 3.x <http://nagios.sourceforge.net/docs/3_0/>

Set the notification_interval parameter on your hosts and services to 0.

Regards,
Max

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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