Re: [Nagios-users] Monitor DB Server without outside IP Address

2007-03-01 Thread John Cianfarani
Could have the DB Server only have a route for the nagios box.

Thanks
John

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tobias
Klausmann
Sent: Thursday, March 01, 2007 6:12 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Monitor DB Server without outside IP Address

Hi! 

On Thu, 01 Mar 2007, Marc Powell wrote:
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Patrick Morris
> > Sent: Thursday, March 01, 2007 4:07 PM
> > To: James Pells
> > Cc: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] Monitor DB Server without outside IP Address
> > 
> > There are reasons people don't make their DB boxes available from the
> > internet.  A couple better solutions might be:
> > 
> > 1. Monitor the box from inside the network it's on, or
> > 2. Have the DB submit passive checks to your monitoring box.
> 
> Depending on what you are actually interested in monitoring some other
> options might be...
> 
> 3. create a small script on your web server that performs checks on your
> DB and outputs a web page than you can check with check_http.
> 4. check_nrpe -> webserver calls check_nrpe -> DB server (untested but
> should work)

Note though that longer NRPE cascades (>=3 hops) can be
notopriously difficult to debug. Worse, if you don't have proper
dependencies (between your NRPE checks and a check for NRPE
itself), you can very easily spam your cell into oblivion ;)

Also, some DB machines deliberately have no default route (or one
not letting them leave their nets). So passive sending is not
possibel, either.

So, from a security standpoint, I'd recommend the "webpage does
the checks and is checked by check_http" approach.

Regards,
Tobias


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitor DB Server without outside IP Address

2007-03-01 Thread Tobias Klausmann
Hi! 

On Thu, 01 Mar 2007, Marc Powell wrote:
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Patrick Morris
> > Sent: Thursday, March 01, 2007 4:07 PM
> > To: James Pells
> > Cc: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] Monitor DB Server without outside IP Address
> > 
> > There are reasons people don't make their DB boxes available from the
> > internet.  A couple better solutions might be:
> > 
> > 1. Monitor the box from inside the network it's on, or
> > 2. Have the DB submit passive checks to your monitoring box.
> 
> Depending on what you are actually interested in monitoring some other
> options might be...
> 
> 3. create a small script on your web server that performs checks on your
> DB and outputs a web page than you can check with check_http.
> 4. check_nrpe -> webserver calls check_nrpe -> DB server (untested but
> should work)

Note though that longer NRPE cascades (>=3 hops) can be
notopriously difficult to debug. Worse, if you don't have proper
dependencies (between your NRPE checks and a check for NRPE
itself), you can very easily spam your cell into oblivion ;)

Also, some DB machines deliberately have no default route (or one
not letting them leave their nets). So passive sending is not
possibel, either.

So, from a security standpoint, I'd recommend the "webpage does
the checks and is checked by check_http" approach.

Regards,
Tobias


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitor DB Server without outside IP Address

2007-03-01 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Patrick Morris
> Sent: Thursday, March 01, 2007 4:07 PM
> To: James Pells
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Monitor DB Server without outside IP
Address
> 
> 


> There are reasons people don't make their DB boxes available from the
> internet.  A couple better solutions might be:
> 
> 1. Monitor the box from inside the network it's on, or
> 2. Have the DB submit passive checks to your monitoring box.

Depending on what you are actually interested in monitoring some other
options might be...

3. create a small script on your web server that performs checks on your
DB and outputs a web page than you can check with check_http.
4. check_nrpe -> webserver calls check_nrpe -> DB server (untested but
should work)

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitor DB Server without outside IP Address

2007-03-01 Thread Patrick Morris

On Thu, 01 Mar 2007, James Pells wrote:

> Right now I am thinking about setting up nagios to do a nrpe_check on a
> different port on my webserver, and configure my firewall to forward that
> port to my dbserver, which will also have the nrpe daemon running on it.
> 
> It seems like that should work, if only I could configure my IP TABLES
> correctly.
> 
> I would appreciate if anyone has any better solutions to this problem.

If I were going to make a recommendation, it would be:

Don't do it.  You're asking for trouble.

There are reasons people don't make their DB boxes available from the
internet.  A couple better solutions might be:

1. Monitor the box from inside the network it's on, or
2. Have the DB submit passive checks to your monitoring box.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitor DB Server without outside IP Address

2007-03-01 Thread James Pells

I just started using Nagios to monitor my two web servers from a development
box outside of the production network.

I would like to use Nagios to monitor my DB server which has no outside IP
Address, but is on the same network as my webserver.

I was wondering if you guys have any easy solutions for this?

Right now I am thinking about setting up nagios to do a nrpe_check on a
different port on my webserver, and configure my firewall to forward that
port to my dbserver, which will also have the nrpe daemon running on it.

It seems like that should work, if only I could configure my IP TABLES
correctly.

I would appreciate if anyone has any better solutions to this problem.

Thank you,
Jimmy
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] nagiosgraph render issue

2007-03-01 Thread Robert Hajime Lanning


> It seems the data isn't collected, but it is (checked in the
> nagiosgraph.log).  My concern now is the gap between checks
> (10 mins), perhaps nagiosgraph is droping/unable to display
> such distant data. As a workaround I've lowered check interval
> to 90 secs (waiting to see what happens).

Make sure this is set correctly in nagiosgraph.conf:

# Heartbeat. In seconds, twice the size of servicecheck intervals
heartbeat = 600

If you have to change it, you will need to delete your RRD files,
so that nagiosgraph will create new ones with the correct heartbeat.

If you are checking every 10 minutes, the heartbeat needs to be
1200 seconds.

RRD throws out data that is not within the correct time window.

-- 
And, did Galoka think the Ulus were too ugly to save?
 -Centauri


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] NDOUtils Problem with Acknowledgements table out of sync...

2007-03-01 Thread Danny Russell
Hello everyone,

I have the following:

* ndoutils-1.4b2

* nagios-2.7-1.el4.rf

* CentOS release 4.4 (Final)

* mysql-5.0.22-1.centos.1

 

The ndoutils is running really well. I am just having one
question...When an item is acknowledged, a record is created in the
Acknowledgements table. That works. But, when the service or host
recovers, the record does not get deleted from the acknowledgements
table? Is anyone else having similar experiences? Am I missing a
"virtually deleted" column within the table?

 

Thanks, Much Appreciated,

Danny

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] list remote logged on users

2007-03-01 Thread dave stern - e-mail.pluribus.unum
Anyone know of a plugin (NRPE, nsclient) that will display back to nagios on
linux a list of users logged into win2000 or winXP? I can do this on the window
side thru scripting and running from the resource kit psloggedon on each host.
My users would find it useful to see which machines are available

TIA

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Event Handler problems

2007-03-01 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy
> Sent: Thursday, March 01, 2007 8:17 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Event Handler problems
> 
> Hi,
> 
> I have been trying to set up the Nagios Eventhandler option for quite
> sometime in vain. I perused the link
> http://nagios.sourceforge.net/docs/1_0/eventhandlers.html and tried
out
> a number of time but the script to be execute by the event handler
never
> gets executed.. :(
> 
> In the nagios log, I see the Event Handler being invoked fine and
> nothing else happens.
> 
> Any ideas/ suggestions ?

Is your event handler executable by the nagios user? I'd add debug
output to the event handler that gets written to a file to make sure
that it's actually running and getting the input you expect. For
example, in all my event handlers written in sh, I have the following as
the first thing done --

LOGFILE=/usr/local/nagios/var/eventhandler.log; export LOGFILE

echo -n `date` . " " >> $LOGFILE 2>&1
echo "$0 IFP service check ($1) ($2) ($3) ($4)... " >> $LOGFILE 2>&1

And lines like the following at appropriate places --

echo -n `date` . " " >> $LOGFILE
2>/usr/local/nagios/var/eventhandler.log 2>&1
echo -n "$0 Restarting IFP service (2nd soft critical state) on $4... "
>> $LOGFILE 2>&1
/usr/bin/ssh $4 'sudo /etc/init.d/n2h2-ifpserver restart' >>$LOGFILE
2>&1

This allows for intimate tracing of the execution of the event handler
to catch any problems.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Event Handler problems

2007-03-01 Thread Sandeep Narasimha Murthy
Hi,

I have been trying to set up the Nagios Eventhandler option for quite
sometime in vain. I perused the link
http://nagios.sourceforge.net/docs/1_0/eventhandlers.html and tried out
a number of time but the script to be execute by the event handler never
gets executed.. :(

In the nagios log, I see the Event Handler being invoked fine and
nothing else happens.

Any ideas/ suggestions ?

Thnx,
sg

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Fw: Windows Process Checking

2007-03-01 Thread Frost, Mark {PBG}
Robert,

I think you may misunderstand what this program is used for.  It's a program 
that you run on a Windows box to collect information from the Windows 
Performance Data Helper (PDH) library that Microsoft provides.  It would have 
no function on a *nix box.

In our case, we have a Linux Nagios installation which uses NRPE to connect 
remotely to Windows machines and runs the wincheck_counter.exe program as a 
plugin which returns whatever information about that windows box we want (like 
cpu load at that moment, for example).

The PDH.DLL file is really only needed if your particular windows box doesn't 
have it already.  Win2K, WinXP and Win2K3 already have it although I've had 
some weird issues with wincheck_counter.exe on Win2K, but maybe that's just me.

Hope that helps.

Mark


-Original Message-
From: [EMAIL PROTECTED] on behalf of Robert Wolfe
Sent: Thu 3/1/2007 5:42 AM
To: [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Fw:  Windows Process Checking
 
1.0x and 2.x versions of Nagios.

Begin forwarded message:

Date: Thu, 1 Mar 2007 05:36:49 -0500
From: Robert Wolfe <[EMAIL PROTECTED]>
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Windows Process Checking



I downloaded the wincheck_counter plugin from nagiosexchange.org.  However, I 
only noticed a .dll file and an .exe file.  I am assuming that these will not 
work under *NIX installations of Nagios?  If not, is there a plugin comparable 
to this for running on *NIX-based Nagios configurations?
-- 
Robert Wolfe (MCP/Linux+) <[EMAIL PROTECTED]>
http://www.shatterit.com
Linux:  Improvise! Adapt! Overcome!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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



-- 
Robert Wolfe (MCP/Linux+) <[EMAIL PROTECTED]>
http://www.shatterit.com
Linux:  Improvise! Adapt! Overcome!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Recommend hardware specs

2007-03-01 Thread Sean Keplinger

On Wed, 28 Feb 2007, [EMAIL PROTECTED] wrote:

> Do you guys agree with this list? The article also said that disk speed 
> (scsi) was also very important. I think I will be monitoring 1000> 
> hosts. With distributed nagios servers.

I'm running on an HP DL380 (dual 1.4Ghz PIII's) with 2GB RAM. The disks 
are SCSI, RAID5. The OS is SLES10. We have about 500 hosts and over 550 
service checks.

The load average is 3.01, 1.03, 0.51. Memory usage is about 1.5 GB with 
most of that in cache.

>From the results we've seen, the box that I'm using (although fairly old 
now) is over powered. Adding more service checks or increasing their 
frequency would probably have an impact on overall load.


HTH,
Sean
-- 
Sean Keplinger  /  Visit my Hiking/Backpacking and Projects
skeplin AT gmail DOT com   /   blog at: http://spookyworld.dnsalias.com/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] SOLVED: nsclient++ and nrpe commands

2007-03-01 Thread Mies, Christian
It was an issue in NSC.INI on my Client.
 
thanks for support!

Mit freundlichem Gruß

Christian Mies 

it-novum GmbH, Edelzeller Str. 44, 36043 Fulda, Germany 
FON:+49 (661) 103-874(333)  FAX: +49 (661) 103-334
MAIL:   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]> WEB:   
http://www.itnovum.de 
http://www.itnovum.de/>
  
Handelsregister: Amtsgericht Fulda, HRB 1934 
Geschäftsführer:Michael Kienle (Vorsitz), Stefan Heil
Sitz der Gesellschaft: Fulda 
UstID-Nr:DE813211784 
Steuernr.:   018/225/03095 

 




Von: Steve Shipway [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 28. Februar 2007 23:17
An: Mies, Christian
Cc: nagios-users
Betreff: RE: [Nagios-users] nsclient++ and nrpe commands


I believe that the 'Illegal metacharacter' error message is generated 
because your command contains a '>' character, which could potentially be 
someone trying to use shell redirect to break in to your machine.
 
You will definitely need to escape or quote the > to prevent the shell 
interpreting it.
 
I don't know if this error is being produced by check_nrpe, by 
nsclient++, or by Nagios itself.  Certainly on our system, Nagios 1.4 does not 
check commands for illegal characters, and check_nrpe 2.5.2 does not either, so 
my guess is that nsclient++ is doing it.  Make sure you have your parameters 
quoted and check nsclient++ for definitions of illegal characters...
 
Steve

--
Steve Shipway
ITSS, University of Auckland
(09) 3737 599 x 86487
[EMAIL PROTECTED]



 




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Mies, Christian
Sent: Thursday, 1 March 2007 10:36 a.m.
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nsclient++ and nrpe commands


Hi,
I'm trying to use nsclient++ on Windows Machines. Everything is 
working fine, instead of check_nrpe with checkEventLog :-(
If I type:
./check_nrpe -H 172.16.101.13 -p 5666 -c checkeventlog -a 
file=System filter=in filter=all truncate=512 MaxWarn=1 MaxCrit=1 
filter-eventType==info filter-generated=>10m
 
on my shell, I get no output. If I try ./check_nrpe -H 
172.16.101.13 -p 5666 -c checkeventlog -a file=System filter=in filter=all 
truncate=512 MaxWarn=1 MaxCrit=1 filter-eventType==info filter-generated=\>10m 
I'll get a error :Illegal Meta Character. Any ideas to this?
Who is using nsclient++ with Eventlog Functionallity?
 
regards

Christian Mies 

 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Windows Process Checking

2007-03-01 Thread Jorg . Schulz
Hi 

The wincheck_counter plugin has to be on a w2k or 2003 box. 
The plugin to get the information is check_nrpe from the Linux/unix site.

If you want to get info from remote hosts (linux) you need a NRPE or via
SNMP


Example 

Here are some samples of monitoring stuff you can do with the counter.

[quote]# General Health
command[check_gen_sut]=C:\winnt\wincheck\wincheck_counter -C "System" -P
"System Up Time" -f "System Up Time is %f Seconds"
command[check_gen_prq]=C:\winnt\wincheck\wincheck_counter -C "System" -P
"% Registry Quota in use" -w 75 -c 85 -f "Registry Quota in use is %f%%"

# Processor Health
command[check_proc_tpt]=C:\winnt\wincheck\wincheck_counter -C "Processor"
-I "_Total" -P "% Processor Time" -w 70 -c 85 -f "Processor Time is %f%%"
command[check_proc_pql]=C:\winnt\wincheck\wincheck_counter -C "System" -P
"Processor Queue Length" -w 80 -c 90 -f "Processor Queue Length is %f"
command[check_proc_ppt]=C:\winnt\wincheck\wincheck_counter -C "Processor"
-I "_Total" -P "% Privileged Time" -w 20 -c 25 -f "Processor Privileged
Time is %f%%"
command[check_proc_dpt]=C:\winnt\wincheck\wincheck_counter -C "Processor"
-I "_Total" -P "% DPC Time" -w 40 -c 50 -f "Deferred Procedure calls is
%f%%"

# Memory Health
command[check_mem_pps]=C:\winnt\wincheck\wincheck_counter -C "Memory" -P
"Pages/sec" -c 50 -w 25 -f "Pages per second is %f"
command[check_mem_fps]=C:\winnt\wincheck\wincheck_counter -C "Memory" -P
"Page Faults/sec" -w 50 -c 100 -f "Page Faults per second is %f"
command[check_mem_pfu]=C:\winnt\wincheck\wincheck_counter -C "Paging File"
-I "_Total" -P "% Usage" -w 65 -c 71 -f "Paging File Usage is %f%%"

# Disk Health
command[check_disk_c]=C:\winnt\wincheck\wincheck_counter -C "LogicalDisk"
-I "C:" -P "% Free Space" -w 20 -c 10 -f "Disk C is %f%% free."
command[check_disk_pdt]=C:\winnt\wincheck\wincheck_counter -C
"PhysicalDisk" -I "_Total" -P "% Disk Time" -w 40 -c 50 -f "%% Disk Time
is %f"
command[check_disk_rql]=C:\winnt\wincheck\wincheck_counter -C
"PhysicalDisk" -I "_Total" -P "Avg. Disk Read Queue Length" -w 1 -c 2 -f
"Avg. Read Queue Length is %f"
command[check_disk_wql]=C:\winnt\wincheck\wincheck_counter -C
"PhysicalDisk" -I "_Total" -P "Avg. Disk Write Queue Length" -w 1 -c 2 -f
"Avg. Write Queue Length is %f"

# Exchange 5.5
command[msexchangeimc_que_out]=C:\winnt\wincheck\wincheck_counter -C
"MSExchangeIMC" -P "Queued Outbound" -w 200 -c 250 -f "Queued Outbound is
%f Emails Waiting for Delivery"
[/quote]

Checkcommands.cfg

define command {
command_name  check_nrpe
command_line  /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$
}
Services.cfg (examples)

define service {
host_name  exchange
service_descriptioncheck_disk_c
check_command  check_nrpe!check_disk_c
usegeneric-service
max_check_attempts3
normal_check_interval  3
retry_check_interval  1
check_period  24x7
notification_interval  0
notification_period24x7
notification_options  w,u,c,r
contact_groupsadmins
}
Regards 


/Jörg
I downloaded the wincheck_counter plugin from nagiosexchange.org.
However, I only noticed a .dll file and an .exe file.  I am assuming that
these will not work under *NIX installations of Nagios?  If not, is there
a plugin comparable to this for running on *NIX-based Nagios
configurations?
-- 
Robert Wolfe (MCP/Linux+) <[EMAIL PROTECTED]>
http://www.shatterit.com
Linux:  Improvise! Adapt! Overcome!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@

Re: [Nagios-users] nagiosgraph render issue

2007-03-01 Thread Jorg . Schulz


 

 

On Thu, Mar 01, 2007 at 10:39:34AM +0100, [EMAIL PROTECTED] wrote:
> Hej Kyle

Hi Jorg, thanks for the reply :-)

> What version of rrdtool you use
> What version of Nagios 

nagios 2.4 and rrdtool 1.0.49-1
> Hm, your rrdtool is a little bit old RRDtool 1.2.18 is the what i use 
 


 
> Nagios.cfg ? 
> 
> process_performance_data=1
> service_perfdata_file=/var/log/nagios/perfdata.log
>
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDES
C$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
> service_perfdata_file_mode=a
> service_perfdata_file_processing_interval=30
> service_perfdata_file_processing_command=process-service-perfdata

yes, exactly like this


> and this in command.cfg

yup

 
>  define command{
>command_nameprocess-service-perfdata
>command_line  /usr/local/nagios/nagiosgraph/insert.pl
> 
> 
> What happened when you do a tail -f /pathtothe/nagiosgraph.log ? Output
?
> There you can see whats happened like
> 
> "CGI info: RRDs::graph - -a PNG --start -3456 -w 350 -h 100 -l 0 -u
> 100
> Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph
> without contents" 

no, the graphics get rendered, but output is b0rked... don't really know
why
the rrd DB is properly populated
> can you create the graph by hand (see my example)
/usr/bin/rrdtool graph - --start 1170645140 --end 1170659540 --height 100
--width 500 --imgformat PNG --vertical-label "" --title "MailQueue"
--lower=0
DEF:var1=/usr/local/nagios/share/perfdata/NAGIOS/MAILQ.rrd:1:AVERAGE
AREA:var1#EACC00:"users " LINE1:var1#00:"" GPRINT:var1:LAST:"%3.4lf %s
LAST " GPRINT:var1:MAX:"%3.4lf %s MAX " GPRINT:var1:AVERAGE:"%3.4lf %s
AVERAGE \n" HRULE:75#00:"Warning on 75\n" HRULE:150#FF:"Critical
on 150\n" COMMENT:"Default Template\r" COMMENT:"Check Command
check_local_users\r"

/jörg

-- 
Hoy es Domingo, 1 de Enero de 1984.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Fw: Windows Process Checking

2007-03-01 Thread Robert Wolfe
1.0x and 2.x versions of Nagios.

Begin forwarded message:

Date: Thu, 1 Mar 2007 05:36:49 -0500
From: Robert Wolfe <[EMAIL PROTECTED]>
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Windows Process Checking



I downloaded the wincheck_counter plugin from nagiosexchange.org.  However, I 
only noticed a .dll file and an .exe file.  I am assuming that these will not 
work under *NIX installations of Nagios?  If not, is there a plugin comparable 
to this for running on *NIX-based Nagios configurations?
-- 
Robert Wolfe (MCP/Linux+) <[EMAIL PROTECTED]>
http://www.shatterit.com
Linux:  Improvise! Adapt! Overcome!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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



-- 
Robert Wolfe (MCP/Linux+) <[EMAIL PROTECTED]>
http://www.shatterit.com
Linux:  Improvise! Adapt! Overcome!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Windows Process Checking

2007-03-01 Thread Robert Wolfe

I downloaded the wincheck_counter plugin from nagiosexchange.org.  However, I 
only noticed a .dll file and an .exe file.  I am assuming that these will not 
work under *NIX installations of Nagios?  If not, is there a plugin comparable 
to this for running on *NIX-based Nagios configurations?
-- 
Robert Wolfe (MCP/Linux+) <[EMAIL PROTECTED]>
http://www.shatterit.com
Linux:  Improvise! Adapt! Overcome!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Nagios Alert integration with EMC Smarts

2007-03-01 Thread narendran.neelamegam
 
Hi,
 
Has any one integrated Nagios alerts with EMC Smarts.
 
Which approach should be taken to ensure that we can bring this integration out 
of the box.
 
To my mind I see two adapters.
 
SNMP Trap and Syslog adapter.
 
Which of these will be out of the box without much effort to the Nagios/Smarts 
guy.
 
Thanks and Regards,
 
Narendran Neelamegam
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] nagiosgraph render issue

2007-03-01 Thread kyle
On Thu, Mar 01, 2007 at 10:39:34AM +0100, [EMAIL PROTECTED] wrote:
> Hej Kyle

Hi Jorg, thanks for the reply :-)

> What version of rrdtool you use
> What version of Nagios 

nagios 2.4 and rrdtool 1.0.49-1
 
> Nagios.cfg ? 
> 
> process_performance_data=1
> service_perfdata_file=/var/log/nagios/perfdata.log
> service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
> service_perfdata_file_mode=a
> service_perfdata_file_processing_interval=30
> service_perfdata_file_processing_command=process-service-perfdata

yes, exactly like this


> and this in command.cfg

yup

 
>  define command{
>command_nameprocess-service-perfdata
>command_line  /usr/local/nagios/nagiosgraph/insert.pl
> 
> 
> What happened when you do a tail -f /pathtothe/nagiosgraph.log ? Output ?
> There you can see whats happened like
> 
> "CGI info: RRDs::graph - -a PNG --start -3456 -w 350 -h 100 -l 0 -u
> 100
> Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph
> without contents" 

no, the graphics get rendered, but output is b0rked... don't really know why
the rrd DB is properly populated


-- 
Hoy es Domingo, 1 de Enero de 1984.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] nagiosgraph render issue

2007-03-01 Thread kyle
On Thu, Mar 01, 2007 at 10:11:50AM +0100, kyle wrote:
> 
> Hi folks,
> 
> I'm having issues generating graphics with nagiosgraph - the installation is
> more or less OK but graphics show in a bizarre way ; for example below
> you'll find 2 graphs related to load in 2 linux servers :
> 
> http://caosdigital.com/rrd-load-server1.png
> http://caosdigital.com/rrd-load-server2.png

I've dumped the data actually stored in the .rrd files (with rrdtool 
dump) and I get funny stuff :


  NaN  NaN  
NaN 
  NaN  NaN  
NaN 
  NaN  NaN  
NaN 
  NaN  NaN  
NaN 

[...]

  1.00e-02  
1.00e-02  0.00e+00 
  1.00e-02  
1.00e-02  0.00e+00 


I'm pretty sure the regexp in the nagiosgraph 'map' file works (it's
the default), so I'm unsure why data doesn't get properly stored. Any
ideas here?  (load for that server is pretty low, less than 0.1)



-- 
Hoy es Domingo, 1 de Enero de 1984.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] nagiosgraph render issue

2007-03-01 Thread Jorg . Schulz
Hej Kyle
What version of rrdtool you use
What version of Nagios 

Nagios.cfg ? 

process_performance_data=1
service_perfdata_file=/var/log/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDES
C$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata

and this in command.cfg

 define command{
   command_nameprocess-service-perfdata
   command_line  /usr/local/nagios/nagiosgraph/insert.pl


What happened when you do a tail -f /pathtothe/nagiosgraph.log ? Output ?
There you can see whats happened like

"CGI info: RRDs::graph - -a PNG --start -3456 -w 350 -h 100 -l 0 -u
100
Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph
without contents" 

Regards 

/Jörg
 

 


-Ursprungligt meddelande-
Från: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] För
[EMAIL PROTECTED]
Skickat: den 1 mars 2007 10:12
Till: nagios-users@lists.sourceforge.net
Ämne: [Nagios-users] nagiosgraph render issue


Hi folks,

I'm having issues generating graphics with nagiosgraph - the installation
is
more or less OK but graphics show in a bizarre way ; for example below
you'll find 2 graphs related to load in 2 linux servers :

http://caosdigital.com/rrd-load-server1.png
http://caosdigital.com/rrd-load-server2.png


It seems the data isn't collected, but it is (checked in the
nagiosgraph.log).  My concern now is the gap between checks (10 mins),
perhaps nagiosgraph is droping/unable to display such distant data. As a
workaround I've lowered check interval to 90 secs (waiting to see what
happens).

I'm having the same issue with other services (free disk space, # of
process, whatever). 


Any idea will be greatly appreciated :-)




-- 
Hoy es Domingo, 1 de Enero de 1984.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] nagiosgraph render issue

2007-03-01 Thread kyle

Hi folks,

I'm having issues generating graphics with nagiosgraph - the installation is
more or less OK but graphics show in a bizarre way ; for example below
you'll find 2 graphs related to load in 2 linux servers :

http://caosdigital.com/rrd-load-server1.png
http://caosdigital.com/rrd-load-server2.png


It seems the data isn't collected, but it is (checked in the
nagiosgraph.log).  My concern now is the gap between checks (10 mins),
perhaps nagiosgraph is droping/unable to display such distant data. As a
workaround I've lowered check interval to 90 secs (waiting to see what
happens).

I'm having the same issue with other services (free disk space, # of
process, whatever). 


Any idea will be greatly appreciated :-)




-- 
Hoy es Domingo, 1 de Enero de 1984.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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