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
"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
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
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
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
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
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
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
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
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?
>
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,
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
>
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
-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
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 %
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
... 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
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
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
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
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
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
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
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:
> >
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:
>
>
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
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
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.
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
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
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..
>
>
>
>
>
>
> __
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
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.
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
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
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
50 matches
Mail list logo