Re: [Nagios-users] monitor bsd by snmp

2007-01-30 Thread Mike Holloway

I use check_snmp_load with FreeBSD (5.3,6.1,6.2), works great.  Of  
course you do need to install net-snmp onto the server:

http://net-snmp.sourceforge.net/


-mike

On Jan 30, 2007, at 5:20 AM, Marc Boisis-Delavaud wrote:

> I want to monitor load and disk space of free/open BSD machine by  
> snmp.
> The plugins "check_snmp_load" from http://www.manubulon.com/nagios/  
> doesn't work with BSD.
> Is there anyone on the list who monitor bsd by snmp and how ?
>
> Thanks
>
>
>
> -- 
> ---
> 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] popen timeout received, but no child process

2007-01-02 Thread Mike Holloway

You might try compiling check_ping --without-ipv6, that solved a  
different problem for me that I was experiencing with check_ping.   
Also have a read of this thread:

https://sourceforge.net/mailarchive/message.php?msg_id=14887381

"it had to do with the ipv6 host check, where it
would check whether or not the host is an IPv6 address, by calling a
getaddrinfo(), and that would take long enough that SIGALRM would be
tripped, and child_process was NULL at that point."


-mike



On Jan 2, 2007, at 1:15 PM, Jay Chandler wrote:

> My apologies if this has already been discussed here-- a cursory  
> search
> of the archives didn't turn up much.
>
> The issue is discussed at
> http://www.meulie.net/portal_plugins/forum/forum_viewtopic.php? 
> 7842.last
> and my installation started throwing this error a couple hours ago  
> after
> a few weeks of trouble free running.  I restarted the Nagios  
> service and
> haven't had a recurrance since, but has anyone else experienced this?
> The OS is FreeBSD 6.1 with Nagios installed from the ports tree.
>
> Thanks very much in advance-- any other information I can provide,  
> will be!
>
> -- 
> Jay Chandler
> Network Administrator, Chapman University
> 714.628.7249 / [EMAIL PROTECTED]
> Today's Excuse: The co-locator cannot verify the frame-relay  
> gateway to the ISDN server.
>
>
> -- 
> ---
> 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] Schedule Downtime w/o authentication requirement

2006-12-19 Thread Mike Holloway

Subin, have a look through cgi.cfg

-mike


On Dec 19, 2006, at 12:30 PM, Subin Shakya wrote:

>
> Andreas, Thanks for your advice.  But, FYI, I have done what I could
> before I painfully signed up and advertised  my issue on this list.
>
> By the way, I am novice on Nagios (heck also with Linux) and took me a
> while to build the Nagios system which I am extremely proud of.
>
> What do you think? Can you pass your knowledge to me now?
>
> - Subin
>
> -Original Message-
> From: Andreas Ericsson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 19, 2006 1:27 AM
> To: Subin Shakya
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Schedule Downtime w/o authentication
> requirement
>
> Subin Shakya wrote:
>>  I want to configure nagios in such a way that it does not require  
>> any
>> kind of authorization/authentication including 'guest'.  How  
>> can I
>> do
>> that?
>> I do not know where to go in Nagios config to make this happen.
>> TIA, Symuser
>> =0D
>> Right now when I select a Host to schedule a downtime I get:
>> =0D
>> Sorry Dave, I can't let you do that...
>> It seems that you have chosen to not use the authentication
>> functionality of the CGIs.
>> I don't want to be personally responsible for what may happen  
>> as a
>> result of allowing unauthorized users to issue commands to
> Nagios,so
>> you'll have to disable this safeguard if you are really stubborn
> and
>> want to invite trouble.
>> Read the section on CGI authentication in the HTML documentation
> to
>> learn how you can enable authentication and why you should want
> to.
>>
>
> Nagios is more polite than I am. RTFM and do some thinking and you'll
> find the answer.
>
> On a sidenote; I know the answer but I'm not interested in giving  
> it to
> you when you haven't even bothered trying to find it for yourself.
>
> --
> Andreas Ericsson   [EMAIL PROTECTED]
> OP5 AB www.op5.se
> Tel: +46 8-230225  Fax: +46 8-230231
>
> ===
> Notice: This e-mail message, together with any attachments, contains
> information of Symyx Technologies, Inc. or any of its affiliates or
> subsidiaries that may be confidential, proprietary, copyrighted,
> privileged and/or protected work product, and is meant solely for
> the intended recipient. If you are not the intended recipient, and
> have received this message in error, please contact the sender
> immediately, permanently delete the original and any copies of this
> email and any attachments thereto.
>
> -- 
> ---
> 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] Using $ in password

2006-12-12 Thread Mike Holloway

In checkcommands.cfg, try wrapping ARG3 in single quotes on the  
command_line.  From experience, you are better off changing the  
password to not use a $ character.


# 'check_httpp' command definition
define command{
 command_namecheck_httpp
 command_line$USER1$/check_http -p $ARG1$ -I $ARG2$ -t  
120 -a '$ARG3$'


-mike






On Dec 12, 2006, at 1:49 PM, Kareem Mahgoub wrote:

> Thanks for all who replied to me, but unfortunately the three  
> solutions
> didn't work.
> Kindly if anyone has other ideas, post it.
> Regards
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, December 12, 2006 9:28 PM
> Subject: Re: [Nagios-users] Using $ in password
>
>
>> Normally, doubling the $ sign and eclosing the statement in single  
>> quotes
>> works fine.
>>
>> check_command check_httpp!61002!192.168.1.4!:'33$$77'
>>
>>
> __ 
> __
> ___
>>
>> Jason Shein
>> Network Administrator – Linux Systems
>> Iovate Health Sciences Inc.
>> 5100 Spectrum Way
>> Mississauga, ON L4W 5S2
>> ( 905 ) - 678 - 3119   x 3136
>> 1 - 888 - 334 - 4448,x 3136 (toll-free)
>> [EMAIL PROTECTED]
>>
>> Customer Service. Collaboration. Innovation. Efficiency.
>> Iovate's Information Technology Team
>>
>>
> __ 
> __
> ___
>>
>> CONFIDENTIALITY NOTICE:
>> THIS ELECTRONIC MAIL TRANSMISSION IS PRIVILEGED AND CONFIDENTIAL  
>> AND IS
>> INTENDED ONLY FOR THE REVIEW OF THE PARTY TO WHOM IT IS ADDRESSED.
>> THE INFORMATION CONTAINED IN THIS E-MAIL IS CONFIDENTIAL AND IS  
>> DISCLOSED
>> TO YOU UNDER THE EXPRESS UNDERSTANDING THAT YOU WILL NOT DISCLOSE IT
>> OR ITS CONTENTS TO ANY THIRD PARTY WITHOUT THE EXPRESS WRITTEN  
>> CONSENT
>> OF AN AUTHORIZED OFFICER OF IOVATE HEALTH SCIENCES SERVICES INC.  
>> IF YOU
>> HAVE
>> RECEIVED THIS TRANSMISSION IN ERROR, PLEASE IMMEDIATELY RETURN IT
>> TO THE SENDER.
>>
> __ 
> __
> ___
>>
>>
>>
>> "Kareem Mahgoub" <[EMAIL PROTECTED]>
>> Sent by: [EMAIL PROTECTED]
>> 12/12/2006 02:10 PM
>>
>> To
>> 
>> cc
>>
>> Subject
>> [Nagios-users] Using $ in password
>>
>>
>>
>>
>>
>>
>> Dear All,
>>
>> I have a simple question. What should I do to include the  
>> character $ as
>> one
>> of the password characters in the check command?
>>
>> Here are some required information:
>>
>> 1- OS FC 5
>>
>> 2- kernel 2.6.18-1
>>
>> 3- Nagios version 2.5
>>
>> 4- The command definition
>>
>> # 'check_httpp' command definition
>> define command{
>> command_namecheck_httpp
>> command_line$USER1$/check_http -p $ARG1$ -I $ARG2$ -t  
>> 120 -a
>> $ARG3$
>> }
>> 5- The service configuration
>>
>> define service{
>> use generic-service
>> host_name   
>> service_description YYY
>> contact_groups  ZZZ
>> check_command check_httpp!61002!192.168.1.4!:33$77
>> }
>> When I execute the command manually it works.
>>
>> Any help will be much appreciated
>>
>> Regards
>>
>>
>> - 
>> 
>> 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
>
>
> -- 
> ---
> 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 

Re: [Nagios-users] big performance issue with Nagios 2.5

2006-12-11 Thread Mike Holloway
In nagios.cfg, what values are you using for service_reaper_frequency  
and sleep_time?  I'm using service_reaper_frequency=5 and  
sleep_time=1 for about 10 hosts and 200 services.  You might need to  
adjust your service_reaper_frequency down from the default with as  
many services as you are checking.

-mike




On Dec 11, 2006, at 1:33 AM, Daniel Meyer wrote:

> Hi everyone,
>
> i've ran into a somewhat anoying issue with nagios. First, this is my
> setup:
>
> - Dual Xeon 2.8 HT server running an up to date CentOS 4.4, nagios 2.5
> (rpm from Dag Wieers) and checking approx. 285 hosts and 1500 services
> - active host checks are off
> - host check is replaced by a dummy shell script which just says "ok"
> - approx. 15 services are critical, another 15 warning.
>
> So, whats the issue? When i came back into the office this morning  
> i found
> nagios having a service check latency of about 350 sec (maximum and  
> also
> average). I've had this last week to, and its "fixed" by simply  
> restarting
> the nagios daemon.
>
> I've set up some performance monitoring of nagios and the general  
> linux
> system, and this is what i see:
>
> - The load goes up to 2-2.5 within 12h of nagios running (not the  
> peaks,
> but the 15 minute average)
> - nagios runs fine for about 15-18 hours (not general numbers, but  
> what
> happened this weekend)
> - no unusual notifications over the whole weekend
>
> Any ideas where to look?
> -- 
> Q: Gentoo is too hard to install  =http:// 
> www.cyberdelia.de
> and I feel like whining.   =  
> [EMAIL PROTECTED]
> A: Please see /dev/null.  =
>(from the gentoo installer FAQ)  
> = \o/
>
> -- 
> ---
> 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] nagios.cmd file

2006-05-25 Thread Mike Holloway


nagios.cmd is a named-pipe created by nagios at runtime.  Make sure  
permissions on the directory specified in nagios.cfg's command_file=  
are set to allow read/write for the user running nagios.  The file  
should only exist while nagios is running (ps ax | grep nagios).


-mike

On May 25, 2006, at 1:54 PM, Oliver Marshall wrote:


Could someone be kind enough to email me a zip'd up copy of their
nagios.cmd file ? I haven't seen hide nor hair of mine, despite
recompiling, and doing no end of "make install-commandmode"

I've also updated my file database and tried to locate it that way,  
but

it's definitely not here.

Olly


---
All the advantages of Linux Managed Hosting--Without the Cost and  
Risk!
Fully trained technicians. The highest number of Red Hat  
certifications in

the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
___
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




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
___
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] Nagios is not working property

2006-01-23 Thread Mike Holloway


What external graphing package is being used?  While viewing the  
services, what is an example URL to a graph that is broken?  I'm  
thinking that nagiosgraph or another package is being used and that  
is what is actually broken.  If nagiosgraph, have a look at the  
nagiosgraph.log file to see what might be going on.


-mike


On Jan 21, 2006, at 7:53 PM, Miguel Angel R. Arce wrote:


Hi,

I know apache and mysql are working because the services are up.  
The graphs libraries are working property because I did a test with  
a php program and it did a draw using the libraries. Finally when I  
checked nagios status with nagios -v /etc/nagios/nagios.cfg it  
showed zero erros.


The last week the system was working propery and nobody changed  
something on nagios. I think the problem is some module, plugin,  
etc is not working because the server was restarded


Regards



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] retention issue

2006-01-19 Thread Mike Holloway


Works here too.  Looks like this needs to be punted to the dev guys  
for a bug fix.


-mike


On Jan 19, 2006, at 10:58 AM, Lori Adams wrote:

I haven’t figured out what broke.  But I have come up with a fix  
for retaining during restarts.




I edited the init script, and added

stop)

+cp $NagiosStatusFile $NagiosRetentionFile



Now the status.dat file is copied to the retention file.



-Lori



From: [EMAIL PROTECTED] [mailto:nagios-users- 
[EMAIL PROTECTED] On Behalf Of Lori Adams

Sent: Wednesday, January 18, 2006 11:57 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] retention issue



I’m using nagios-2.04b.



Here’s what happened.  We had nagios running using nagios-1.2.  We  
wanted to try out nagios-2.04b.  I set up an entire new nagios  
instance on the same machine.  We called this nagios instance,  
nagios-2.  I’ve moved nagios-2 to be in the same location as nagios 
(-1), the webserver etc.  Everything is running, I can access the  
cgis, etc.  All values have been updated to reflect the move.




But somewhere along the line retention got extremely screwy.  Here  
were my values:


retain_state_information=1

state_retention_file=/nagios-2.04/var/ 
retention.dat


retention_update_interval=60

use_retained_program_state=1



I had moved nagios-2 to be nagios on 1/11.  Anytime I restart (/etc/ 
init.d/nagios restart), the state values return to the values on  
the 11, with last check times set to 1/11.




I have updated the retention_update_interval to 2.  The  
retention.dat file is not updating while nagios is running.  It is  
also not updated when nagios shuts down, seen by both the code in  
the init script and the modification time of the retention file,  
even though the comments say it will:




So I decided to then remove the retention.dat file.  This worked  
great as the status no longer says 1/11 for the last check.  Except  
that no data is being retained.  So anytime I do a restart, all  
statuses go back to pending.




Does anyone have any thoughts?



-Lori





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
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] Alternative web interfaces for limiting web access?

2006-01-12 Thread Mike Holloway


Just to point a little more specifically into the url that Demetri  
posted:



"Authenticated contacts* are granted the following permissions for  
each service for which they are contacts (but not for services for  
which they are not contacts)...


Authenticated contacts* are granted the following permissions for  
each host for which they are contacts (but not for hosts for which  
they are not contacts)..."



-mike


On Jan 11, 2006, at 6:10 PM, Demetri Mouratis wrote:


On Wed, 11 Jan 2006, Michael T. Halligan wrote:


We monitor N different customer infrastructures with Nagios. Some of
our customers are starting to request access to the
web interface. Beyond writing our own custom interface, are there any
good projects out there to allow users with specified
access to only be able to see certain objects?


Nagios handles this natively.  Please see:

http://nagios.sourceforge.net/docs/2_0/cgiauth.html


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through  
log files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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] check_http

2006-01-12 Thread Mike Holloway


Easiest way would probably be to just hack on check_http.c to suit  
your needs (search for HTTP OK) and then recompile and copy the  
executable to your libexec folder.  A more convoluted way would be to  
write a script (sh or perl) that execs check_http and then passes the  
output through a stream editor and exits with the same exit code as  
check_http.  You would need to make a new checkcommand, maybe:


define command{
command_namecheck_http_formatted
command_line		$USER1$/check_http_formatted.sh $ARG1$ $ARG2$  
$ARG3$ $USER1$

}

and then for check_http_formatted.sh something like:

#!/bin/bash
output=`$4/check_http -H $1 -w $2 -c $3`
exitcode=$?
echo $output | sed -e 's/HTTP/$1 HTTP/'
exit($exitcode)



-mike



On Jan 12, 2006, at 3:26 AM, Richard Gliebe wrote:


I'm checking some local websites with the check_http plugin.

[...]
# 'check_http_alias' command definition
command_namecheck_http_alias
command_line$USER1$/check_http -H $ARG1$ -w $ARG2$ -c  
$ARG3$

..
..
where $ARG1$ is www.xyz.com ! $ARG2$ is 2 ! $ARG2$ is 5
[...]

Works fine ;-)

But now I want to manipulate the output from:

[...]
HTTP OK HTTP/1.1 200 OK - 42488 bytes in 0.013 seconds
to
www.xyz.com OK HTTP/1.1 200 OK - 42488 bytes in 0.013 seconds
[...]

any thinks ?

thanks in advance
Richard



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through  
log files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD  
SPLUNK!

http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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 issue

2006-01-11 Thread Mike Holloway


Ravi, has your device on 192.168.x.x been configured with an snmp  
community string of "public"?  Assuming so, perhaps first try from  
the command line manually something like:


snmpget -v 1 -c my_community_string  192.168.1.2 sysUpTime.0

which works for me on one of my hosts.  It's possible that you are  
missing libsnmp or something that is preventing snmpget from working.



-mike



On 1/11/2006 9:05 PM, Ravi Kumar wrote:

I'm having issue with snmp in 2.0Beta version.
/usr/lib/nagios/plugins/check_smtp -H  192.168.xxx.xxx
Connection refused
SMTP CRITICAL - 0.001 sec. response time|time=0.000781s;;;0.00
 /usr/lib/nagios/plugins/check_snmp -P 1 -H 192.168.xxx.xxx -o  
sysUpTime.0 -C public

SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public   
192.168.1.1:161  sysUpTime.0

Let me know how to fix.
thank!
  Yahoo! Photos – Showcase holiday pictures in hardcover
Photo Books . You design it and we’ll bind it!



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
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] retention.dat not created

2006-01-10 Thread Mike Holloway


Howdy fellow Nagios users.  I've been researching a Nagios issue I've  
been experience, and as I haven't yet been able to resolve it with  
help from the nagios forums, I thought I would try the mailing list.


My system: FreeBSD 6.0 / Nagios 2.0b6 and 2.0rc1

The problem: I've been unable to get retention.dat working as  
described in the documentation.  The file is never created.  It  
doesn't appear to be a file/dir permissions problem (running as  
nagios/nagios).  It's not a "multiple Nagios processes" problem.  The  
file never gets created or populated with data.  I've tried values of  
0, 3, and 60 for retention_update_interval, and have restarted Nagios  
(killed all procs) and given it plenty of time to populate  
retention.dat, I never see the file created.


My need is to have Nagios remember disabled service checks and  
disabled notifications when it is restarted.



Below are the relevant parts of my config (please assume a host entry  
exists):


retain_state_information=1
state_retention_file=/var/spool/nagios/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=1

define service{
name generic-service
active_checks_enabled 1
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 5
retry_check_interval 1
passive_checks_enabled 0
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
notification_interval 120
notification_period 24x7
notification_options c,r
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
register 0
}


define service{
use generic-service
host_name somehostname.domain.com
service_description SSH Secure Shell
contact_groups level_1_notifications
check_command check_ssh
}


And a couple of directory listings:

/var/spool # ls -la
drwxrwxrwx 2 nagios nagios 512 Jan 3 09:54 nagios


/var/spool/nagios # ls -la
-rw-rw-r-- 1 nagios nagios 784 Dec 29 18:35 comments.dat
-rw-rw-r-- 1 nagios nagios 241 Dec 28 15:21 downtime.dat
prw-rw 1 nagios nagios 0 Jan 3 09:54 nagios.cmd
-rw-r--r-- 1 nagios nagios 6 Jan 3 09:54 nagios.lock
-rw-rw-r-- 1 nagios nagios 165973 Jan 3 09:54 objects.cache
-rw-rw-r-- 1 nagios nagios 1294 Jan 3 09:55 perfdata.dat
-rw-rw-r-- 1 nagios nagios 165614 Jan 3 09:55 status.dat



Here's a link to the forums thread I've been working in, if I get an  
answer via the list I will also post it there for posterity:


http://www.meulie.net/forum_viewtopic.php?21.4934


Thanks in advance for any assistance guys and gals!

-mike


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
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