Re: [Nagios-users] Attempting to monitor the "Nagios Server" itself

2008-08-12 Thread kyle . odonnell
check the nagios exchange. there are plenty of nagios server related checks that might indicate impending failure. that being said, if nagios dies how can it monitor itself? I have scheduled a job in cron that monitors, restarts, and emails me when it dies. On 8/12/08, Bret Goodfellow <[EMAIL P

Re: [Nagios-users] Check Processes in Linux

2008-08-12 Thread kyle . odonnell
"bad interpreter" means the script is being executed by an interpreter that doesn't exist. I am guessing it says something like: #!/bin/bash at the top and bash is either not installed or in a different location. Make sure whichever interpreter it's referencing is correct. On 8/12/08, Fernand

Re: [Nagios-users] NRPE: Unable to read output

2008-08-12 Thread kyle . odonnell
I dont know if that will work, there is a specific option inside nrpe.cfg for executing commands via sudo: # COMMAND PREFIX # This option allows you to prefix all commands with a user-defined string. # A space is automatically added between the specified prefix string and the # command line from t

Re: [Nagios-users] Environment variables

2008-08-12 Thread kyle . odonnell
I usually have env variable files which I source depending on the instance/db. When I write my plugins I either specify the env variable file as a command line argument, or hardcode the sourcing in my script. On 8/12/08, Ciro Iriarte <[EMAIL PROTECTED]> wrote: > 2008/8/11 Hugo van der Kooij <[EMA

Re: [Nagios-users] NRPE: Unable to read output

2008-08-12 Thread kyle . odonnell
executing check_nrpe via sudo will not accomplish what you want. You will need to either modify the nrpe.cfg to execute commands via sudo, or write a wrapper for check_smartmon. I am not familiar with that plugin, but you may also be able to edit it and prepend /path/to/sudo before it execs smart

Re: [Nagios-users] Condition Based Active Check

2008-08-12 Thread kyle . odonnell
would creating a service dependency solve your problem? On 8/12/08, Jesse Callaway <[EMAIL PROTECTED]> wrote: > Hi Nair, > > I think you'd have to give an example of where you would use this, and > a specific case. Normally checking the availability of a service is > done with exactly an active ch

Re: [Nagios-users] unable to install nagios-plug ins on HP UX

2008-07-30 Thread kyle . odonnell
I compiled the hpux10.20/11.00 nrpe/nsca/nagios-plugins binaries available on the nagios exchange. The were compiled with parisc v1.1 (compat with 2.0). They work in 11.11 too. I don't have any 11.23 boxes around, but if you want my config.log from the 11.00 boxes let me know. On 7/30/08, Kaplan

Re: [Nagios-users] NetApp disk monitoring

2008-07-24 Thread kyle . odonnell
just add the -w -c anywhere, the number 9000 is the total number of disks, you can alert on each of the returned fields, in this case I just picked a high number of total disks as I dont care to alert if the number of disks grows larger than X(9000). warn on greater than 9000 total disks warn on g

Re: [Nagios-users] NetApp disk monitoring

2008-07-24 Thread kyle . odonnell
what check are you using? i use snmp: check_snmp -H $HOSTADDRESS$ -C $ARG1$ -t 60 -o .enterprises.789.1.6.4.1.0,.enterprises.789.1.6.4.2.0,.enterprises.789.1.6.4.8.0,.enterprises.789.1.6.4.7.0 -w 9000,9000,9000,0 -c 9000,9000,9000,2 -u 'Total Disks','Active','Spare','Failed' -l "" the last num

Re: [Nagios-users] CPU Usage for Linux

2008-07-17 Thread kyle . odonnell
i wrote a very simple one using vmstat to check the idle percentage /usr/bin/vmstat 1 1 | egrep '[0-9]' |awk '{print $15}' On 7/17/08, Jose Luis Garcia <[EMAIL PROTECTED]> wrote: > Why don't you like check_load? > > I wouldn't mind a CPU at 100% if no process is waiting to be run, would you? >

Re: [Nagios-users] check_nrpe missing

2008-06-25 Thread kyle . odonnell
check_nrpe does not come with the nagios-plugins. Download the nrpe source tarball. On 6/25/08, Natxo Asenjo <[EMAIL PROTECTED]> wrote: > hi, > > I followed the instructions on the guide to install nagios 3.03 and > the nagios-plugins-1.4.12. The operating system is debian stable, but > as I say,

Re: [Nagios-users] Best administration tool for Nagios

2008-06-03 Thread kyle . odonnell
monarch works well for me.. nagios 3 isn't 'supported' but it works just fine (if you don't need any of the new config options) On 6/3/08, alexus <[EMAIL PROTECTED]> wrote: > i like nagiosQL, i haven't tried latest version yet, but older had > some bugs, i really hope they fix it in new release >

Re: [Nagios-users] Easier way to make nagios send mail as different user?

2008-05-28 Thread kyle . odonnell
sendmail -f On 5/28/08, Drew Weaver <[EMAIL PROTECTED]> wrote: > The two ways I've come up with to make nagios send > notifications as a different user are: > > Write a wrapper which allows mail to be sent with normal headers or run > nagios as a different user, are there any diffe

Re: [Nagios-users] nagios-plugins fail to compile solaris 10 x86/x64

2008-05-21 Thread kyle . odonnell
-bash-3.00$ gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shar

Re: [Nagios-users] nagios-plugins fail to compile solaris 10 x86/x64

2008-05-21 Thread kyle . odonnell
I used the following: ./configure --prefix=/opt/nagios --enable-perl-modules --with-perl=/usr/bin/perl --without-ipv6 --without-openssl --without-ssl --disable-ssl --disable-openssl --with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args' --with-ps-format=%s %d %d %d %d %d %

Re: [Nagios-users] nagios npre

2008-05-01 Thread kyle . odonnell
if you use sudo to execute the reboot command sure. On 5/1/08, Ange Olivier AMBEMOU <[EMAIL PROTECTED]> wrote: > hi all > > i am new to nagios and i want to know if is possible to use nagios to reboot > on pc or service with command check_something, i see check_npre can be use > to make check for

Re: [Nagios-users] Cluster setup

2008-05-01 Thread kyle . odonnell
I have nagios on an nfs mount and share between 2 servers. Remember to point the entire var directory to local disk (performance reasons, and because the nagios command pipe wont work over nfs). Monitor the primary server from the secondary server via cron (run check_nrpe/check_by_ssh check_nagi

Re: [Nagios-users] Strange NRPE Problem...

2008-04-28 Thread kyle . odonnell
Does it work locally if you run it as the same user as the NRPE daemon is running? On 4/28/08, Gavin Williams <[EMAIL PROTECTED]> wrote: > Hi there, > > > > I'm having some strange NRPE behaviour. > > I've written a Perl script that runs a load of checks on our systems, > but the ones that are cau

Re: [Nagios-users] check_logfiles documentation

2008-04-16 Thread kyle . odonnell
http://www.consol.de/opensource/nagios/check-logfiles Theres an english flag in the top left. Near the bottom of the page there's a link with a load of examples. On 4/16/08, Victor Lanza <[EMAIL PROTECTED]> wrote: > Hi, > > > > Does anyone have a detailed doc written for configuring check_logf

Re: [Nagios-users] interfacing nagios to ibm director

2008-04-11 Thread kyle . odonnell
We've been looking at a few different methods. Using the Director server to execute send_nsca, or send snmptraps to snmptt which get picked up by nagios. Or dumping the director agent messages to syslog/ a log and picking up the messages with check_logfiles. On 4/10/08, Folkert van Heusden <[EMA

Re: [Nagios-users] Check_Disk Issues

2008-02-28 Thread kyle . odonnell
there is no -H hostaddress option for check_disk it is a local check. if you want to check filesystems remotely use nrpe or ssh. On 2/28/08, Hill Jeffrey <[EMAIL PROTECTED]> wrote: > In the commands.cfg file. > define command{ > command_name check_disk > command_line $USER1$/check_disk -H $HOSTA

Re: [Nagios-users] Plugin Output Standardization (was JMX plugin thread)

2008-02-27 Thread kyle . odonnell
My $0.02: plug-in output isn't completely arbitrary if you plan on processing performance data. considering that a single defined command can be turned into multiple services (assuming you use $ARG$ variables) I don't think printing the servicename would be helpful. The servicename is already av

Re: [Nagios-users] web interface on a different machine then Nagios daemon.

2008-02-11 Thread kyle . odonnell
make sure your submissions are being inserted into the cgi.pipe file, permissions might be an issue. On 2/11/08, seb <[EMAIL PROTECTED]> wrote: > Nice idea :) > > I have compile cmd.c ok > place it to the good path > script file and permissions set. > > when i try to submit passive result it not f

Re: [Nagios-users] PluginSource Code

2008-02-11 Thread kyle . odonnell
http://nagiosplugins.org/ nagiosexchange.org too On 2/11/08, Tatyaso Babar <[EMAIL PROTECTED]> wrote: > Hi All, > > > > Is there any way to get the source code/script of the nagios plugins > (like check_ping,Check_by_ssh etc) which are getting installed in binary > file mode? > > I just wanted to

Re: [Nagios-users] web interface on a different machine then Nagios daemon.

2008-02-11 Thread kyle . odonnell
woops email cut off.. Add a kill -9 of the tail/script in the nagios stop case. If you're concerned about file size, create a logrotate script for the file.. --Kyle On 2/11/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I found a way around this, but its not pretty: > > Modify nagios-src/c

Re: [Nagios-users] web interface on a different machine then Nagios daemon.

2008-02-11 Thread kyle . odonnell
I found a way around this, but its not pretty: Modify nagios-src/cgi/cmd.c to write to a flat file instead of the command pipe: int write_command_to_file(char *cmd){ FILE *fp; struct stat statbuf; /* bail out if the external command file doesn't exist */ if(stat

Re: [Nagios-users] Determining the success or failure of external commands

2008-01-23 Thread kyle . odonnell
Hi Scott, I'm in the process of doing something similar. I've come up with something that may help you. Read my thread entitle "nagios.cmd over nfs" http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[mode]=1&tx_maillisttofaq_pi1[showUid]=8571 If nfs isn't an option, Th

Re: [Nagios-users] nagios.cmd over nfs

2008-01-23 Thread kyle . odonnell
Thanks for the pointers. On 1/23/08, Thomas Guyot-Sionnest <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 23/01/08 08:12 AM, [EMAIL PROTECTED] wrote: > > Success! > > > > Web Server- > > cmd.c > > > > change: > > fopen(command_file,"w") > > to: > > fopen("/path

Re: [Nagios-users] nagios.cmd over nfs

2008-01-23 Thread kyle . odonnell
Success! Web Server- cmd.c change: fopen(command_file,"w") to: fopen("/path/to/cgi.pipe","a") Nagios Server- edit nagios startup script to: start) touch /path/to/cgi.pipe tail -f /path/to/cgi.pipe > /path/to/nagios.cmd stop) rm /path/to/cgi.pipe On 1/23/08, [EMAIL PROTECTED] <[EMAIL PROTEC

Re: [Nagios-users] nagios.cmd over nfs

2008-01-23 Thread kyle . odonnell
I was thinking of changing the cgi.cgi source to write to an actual file on the nfs mount, and then have tail -f nfswrittenfile.cmd-pipe > /path/to/nagios.cmd On 1/22/08, Thomas Guyot-Sionnest <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 22/01/08 03:38 PM, [E

Re: [Nagios-users] nagios.cmd over nfs

2008-01-22 Thread kyle . odonnell
... not so much It solves the web page spinning, but since nagios never picks up the data nothing happens. Back to the drawing board. On 1/22/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I found a neat but ugly work-around. After doing some reading, it > appears as though the fifo/pipe n

Re: [Nagios-users] nagios.cmd over nfs

2008-01-22 Thread kyle . odonnell
I found a neat but ugly work-around. After doing some reading, it appears as though the fifo/pipe needs to be opened for reading and writing at the same time. If I leave 'tail -f nagios.cmd' running on the remote site nfs mounting the pipe, data is processed! On 1/22/08, Sean McAvoy <[EMAIL PR

Re: [Nagios-users] Nagios NRPE til HPUX???

2008-01-15 Thread kyle . odonnell
I used gcc. I had to modify some of the nrpe/nsca code (changed some of the operators), and exclude some of the plugins from nagios-plugins used: On 1/15/08, Thanh vovinam <[EMAIL PROTECTED]> wrote: > Hello Nagios users, > > We are using Nagios NRPE to monitor some HPUX 11i machines. > Can we

Re: [Nagios-users] Monitor web server run multiple virtual web site

2008-01-09 Thread kyle . odonnell
try check_http instead On 1/9/08, trevor obba <[EMAIL PROTECTED]> wrote: > > > > I am running Nagios 2.5 on a Suse Enterprise 10; I would > like to monitor web server running IIS with multiple virtual web sites. > > > > > > Each virtual web site has different IP address, Domain name > and run on d

Re: [Nagios-users] Centralizing NRPE Configuration

2007-11-27 Thread kyle . odonnell
We have NRPE running over NFS. -Kyle On 11/26/07, Kevin Scott Sumner <[EMAIL PROTECTED]> wrote: > Robert, > > I second Aaron's CFengine suggestion. > > Moving an infrastructure towards using something like CFengine or puppet > will make you saner in the long run. Much, much saner. Setting it up

Re: [Nagios-users] I am getting this response when I start the nagios on my linux machine...

2007-11-01 Thread kyle . odonnell
do a ps and check if the nagios daemon is running. it sounds like the nagios user doesn't have a home directory, which shouldn't affect nagios The answers to many of your questions can be found in documentation. --kyle On 11/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Total Warning: 0

Re: [Nagios-users] NSCA & Nagios

2007-10-03 Thread kyle . odonnell
echo "hostname,servicename,state[0-3],output" | send_nsca -H nsca.server -c send_nsca.cfg -d "," nrpe.cfg (remote host) command[check_something]=/script/to exec -w $ARG1$ -c $ARG2$ commands.cfg (nagios server) check_command check_nrpe -H remotehost -c check_something -a $ARG1$ $ARG2$ --kyleo

Re: [Nagios-users] Network tuning for Nagios with slave servers

2007-09-07 Thread kyle . odonnell
Could always try: net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 65536 16777216 net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_sack = 0 On 9/7/07, Andreas Ericsson <[EMAIL PROTECTED]> wrote: > Wheeler, JF (Jonathan) wrote: > >

Re: [Nagios-users] Nagios performance and delayed checks

2007-09-06 Thread kyle . odonnell
Hi Kyle, I used the nagios tuning guide: http://nagios.sourceforge.net/docs/2_0/tuning.html I've also had some success with lowering the 'service_reaper_frequency' I've also found that lowering the host and service timeouts to be useful. --kyleo On 9/6/07, kyle <[EMAIL PROTECTED]> wrote: > >

Re: [Nagios-users] check_snmp_storage.pl doubt

2007-07-26 Thread kyle . odonnell
try check_snmp_storage.pl -H host -C community -q FixedDisk -m / -r -w 80 -c 90 since storage can monitor ram,swap,disk,flash memory, cd, floppys, etc you must specify which type of media, and if you only want '/' you need -r check_snmp_storage -H host -C community -q FixedDisk On 7/26/07, su

Re: [Nagios-users] check_procs timeout - Solaris 10

2007-07-25 Thread kyle . odonnell
It has been fixed with 1.4.9 The previous workaround was to reformat the ps-format config option. --kyleo On 7/25/07, Esben Bach <[EMAIL PROTECTED]> wrote: > Hi Sapon > This issue has been address a multitude of times (with differenet > solution suggestions). > > Someone has claimed that the che

Re: [Nagios-users] nagios scaling and server spec

2007-06-29 Thread kyle . odonnell
Hi Patrick, Ive currently got one server doing everything (and more) hosting 600 hosts and ~6000 services. The main server itself won't be doing any actual execution, it will just be receiving passive alerts. I would still like to keep one master, but just use multiple slaves that feed into it.

Re: [Nagios-users] OK prompt in Solaris

2007-06-20 Thread kyle . odonnell
I use nrpe and snmp to monitor various services on our sun servers. Each service using either is dependent on the 'nrpe' or 'snmp' service. If either of these services go down our ops team investigates. If a box drops to the 'ok' prompt, these services will not be running. This isn't directly mo

Re: [Nagios-users] Help optimizing nagios for when things go wrong

2007-06-15 Thread kyle . odonnell
http://nagios.sourceforge.net/docs/2_0/tuning.html I also just started playing with nagios.cfg: service_reaper_frequency reduced my service check latency from ~250 to ~30 seconds by changing the value from 15 to 5 On 6/15/07, Jim Avery <[EMAIL PROTECTED]> wrote: > On 15/06/07, George Bryan <[EM

Re: [Nagios-users] why are my notifications disabled when I add new hosts.

2007-06-06 Thread kyle . odonnell
are you using a host template that has the notifications disabled? On 6/6/07, abid dar <[EMAIL PROTECTED]> wrote: > why are my notifications disabled when I add new hosts? > > I have to manually enable notifications for each host. > > Nagios 3.0a3 > > TIA.. > > > > > > > __

Re: [Nagios-users] AIX NRPE questions

2007-06-05 Thread kyle . odonnell
now try check_nrpe -H 127.0.0.1 -p 5666 (-n for no ssl) Should see the version number: NRPE v2.8.1 If you see this, nrpe is working as expected. On 6/5/07, Sandor W. Sklar <[EMAIL PROTECTED]> wrote: > > On Jun 5, 2007, at 11:26 AM, Berg,David wrote: > > > Hmm... 127.0.0.1 is in the allowed_hos

Re: [Nagios-users] AIX NRPE questions

2007-06-05 Thread kyle . odonnell
Are you running from inetd AND trying to start in daemon mode? If so, that's your problem. It's one or the other. --kyleo On 6/5/07, Berg,David <[EMAIL PROTECTED]> wrote: > Hi, I was hoping someone might have some advice for me regarding > monitoring AIX nodes. > > I am attempting to get NRPE 2.

Re: [Nagios-users] --enable-neb does what exactly?

2007-03-13 Thread kyle . odonnell
I usually just modify the ports Makefile and re-compile. On 3/13/07, Jim Avery <[EMAIL PROTECTED]> wrote: > On 13/03/07, Steve Barnes <[EMAIL PROTECTED]> wrote: > > > How feasible is it to just replace the current nagios binary with the > > new one? Or will this fail horribly? > > That's what I di

Re: [Nagios-users] Nagios Konference 2007

2007-03-12 Thread kyle . odonnell
Do you have more details on the conf? I'd love to attend! On 3/12/07, Jay Radcliffe <[EMAIL PROTECTED]> wrote: > Has anyone from the United States gone to the Nagios Konference held > in germany? I am thinking of asking my management to send me as I am > in charge of our nagios architecture which

Re: [Nagios-users] Nagios drops service checks when executing a hostevent handler?

2007-03-08 Thread kyle . odonnell
Hi, In the nagios performance tuning doc they recommend changing the check_interval on host checks to 0. Running a host check isn't really required as the system will automagically run one when required. http://nagios.sourceforge.net/docs/2_0/tuning.html --kyleo On 3/8/07, Morris, Patrick <[EM