Nagios-users Digest, Vol 61, Issue 3
Navdeep Sidhu
Navdeep.Sidhu at tatatel.co.in
Mon Jun 6 06:58:05 CEST 2011
Hi Nibin
I'm not aware in which mode I had configured pnp4nagios (my apologies).
Anyways I'm pasting excerpt of my host configuration & serviceextinfo
file so that you can get the clear picture. In fact, in Nagios web
console, I'm able to see Memory & CPU utilization of Cisco devices
however unable to view the graphs. I'm using check_snmp_mem.pl plugin to
capture Memory utilization of Cisco devices. Let me know if any other
info required from me. I would really appreciate your help in this
regard.
Excerpts of host Configuration File
define command{
command_name process-service-perfdata
command_line /usr/bin/perl
/usr/local/nagios/libexec/process_perfdata.pl
}
Excerpts of Serviceextinfo File
define serviceextinfo{
host_name L3-Switch
service_description MEM
action_url
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
}
Regards
Navdeep Sidhu
-----Original Message-----
From: nagios-users-request at lists.sourceforge.net
[mailto:nagios-users-request at lists.sourceforge.net]
Sent: Saturday, June 04, 2011 12:15 PM
To: nagios-users at lists.sourceforge.net
Subject: Nagios-users Digest, Vol 61, Issue 3
Send Nagios-users mailing list submissions to
nagios-users at lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/nagios-users
or, via email, send a message with subject or body 'help' to
nagios-users-request at lists.sourceforge.net
You can reach the person managing the list at
nagios-users-owner at lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Nagios-users digest..."
Today's Topics:
1. Re: Check_NRPE on AIX (Daniel Ceola)
2. Re: Non obvious 127 plugin error (Craig Stewart)
3. Re: Non obvious 127 plugin error (Justin T Pryzby)
4. Re: Non obvious 127 plugin error (Craig Stewart)
5. Re: Non obvious 127 plugin error (Craig Stewart)
6. Re: Checking multiple TCP ports for a single status?
(Matthew Jurgens)
7. RRDTool exits with errors -> ERROR: can't make a graph
without contents (Navdeep Sidhu)
8. Re: RRDTool exits with errors -> ERROR: can't make a graph
without contents (Nibin VM)
9. Re: Non obvious 127 plugin error (Justin T Pryzby)
10. Has anyone else seen this? (Henry R. Prins)
11. Re: Has anyone else seen this? (Roberto Nunnari)
12. Re: Has anyone else seen this? (Giorgio Zarrelli)
----------------------------------------------------------------------
Message: 1
Date: Thu, 2 Jun 2011 16:47:28 +0000
From: Daniel Ceola <DCeola at twgi.net>
Subject: Re: [Nagios-users] Check_NRPE on AIX
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <40B7337A7D70B149A34D5A0FD9FDFA8C01EED9 at twgiex.twgi.net>
Content-Type: text/plain; charset="us-ascii"
I've finally gotten a chance to look at this again. Thank you to those
that responded with helpful information. However, I just realized that
I am working on an AIX 5.1 system, and since the binaries I'm using are
written for 5.3, there are compatibility issues which seem to be causing
my problems. I may need to look around for a different solution, to
monitor my AIX system.
Thanks,
Daniel Ceola
From: Kyle O'Donnell [mailto:nagios at isprime.org]
Sent: Thursday, May 19, 2011 11:51 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Check_NRPE on AIX
Those are the binaries that I compiled and uploaded a couple years ago.
We are still using them today, but if you have any issues let me know.
I would suggest running the check_disk with the -x /proc as it is in
nrpe as the same user nrpe is running as via command line to ensure it
behaves as expected
I have had no issue using sudo on aix btw.
--kyleo
On May 18, 2011 9:32 AM, "Daniel Ceola"
<DCeola at twgi.net<mailto:DCeola at twgi.net>> wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Thu, 02 Jun 2011 13:04:15 -0300
From: Craig Stewart <Craig.Stewart at corp.xplornet.com>
Subject: Re: [Nagios-users] Non obvious 127 plugin error
To: Giorgio Zarrelli <zarrelli at linux.it>
Cc: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <4DE7B47F.4000500 at corp.xplornet.com>
Content-Type: text/plain; charset=ISO-8859-1
Giorgio,
I appreciate all your guesses.
As far as the ulimits.conf file was, this system didn't have one! I did
run the ulimits -a as the nagios user anf got this:
-bash-4.2$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 32100
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
-bash-4.2$
Craig
Craig Stewart
Systems Integration Analyst
Craig.Stewart at corp.xplornet.com
Xplornet - Broadband, Everywhere
On 06/02/2011 11:30 AM, Giorgio Zarrelli wrote:
> We are making guesses, so check ulimits.conf
>
> Ciao,
>
> Giorgio
>
> Il giorno 02/giu/2011, alle ore 15:58, Craig Stewart
> <Craig.Stewart at corp.xplornet.com> ha scritto:
>
>> Giorgio,
>>
>> It's bash.
>>
>> [root at nms tmp]# ls -l /bin/sh
>> lrwxrwxrwx. 1 root root 4 May 31 11:39 /bin/sh -> bash
>> [root at nms tmp]#
>>
>> I've been doing a bit of reading and it looks like the maximum
arguments
>> is a kernel setting built at compile time. I'm having a hard time
>> wrapping my head around how the check works when run directly and
fails
>> when called by the Nagios process.
>>
>> I'm starting to wonder if I should point the /bin/sh to something
like
>> csh or some such as a test.
>>
>> Craig
>> --
>> Craig Stewart
>> Systems Integration Analyst
>> Craig.Stewart at corp.xplornet.com Tel: (506) 328-1245 Cell: (506)
425-0111
>> Xplornet - Broadband, Everywhere
>>
>> On 06/02/2011 10:43 AM, Giorgio Zarrelli wrote:
>>> Check wether your shell is a Dash or a Bash. That means, check where
the
>>> /bin/sh symlink is pointing to.
>>>
>>> Ciao,
>>>
>>> Giorgio
>>>
>>> Il giorno 02/giu/2011, alle ore 14:43, Craig Stewart
>>> <Craig.Stewart at corp.xplornet.com> ha scritto:
>>>
>>>> All,
>>>>
>>>> SELinux was enabled (DOH!) and has been now disabled. Didn't fix
my
>>>> problem though. Thanks for that Clint, I don't know HOW many times
>>>> SELinux has bitten me. Should know by now.
>>>>
>>>> I ran the strace as suggested by Justin and saw THIS little tidbit
>>> flash by:
>>>>
>>>> 11769 execve("/bin/sh", ["sh", "-c",
"/usr/lib/nagios/plugins/check_dig
>>>> -H 142.166.86.18 -l www.xplornet.com -a 142.166.86.46 -w 0.5 -c 1
-t
>>>> 5"], [/* 189 vars */]) = -1 E2BIG (Argument list too long)
>>>> 11751 --- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11769,
>>>> si_status=127, si_utime=0, si_stime=0} (Child exited) --
>>>>
>>>> Argument list too long???? So, SOMETHING (I suspect the shell)
doesn't
>>>> like that many arguments passed. Well, making progress.
>>>>
>>>> By the way, this is a bone stock OS install (Fedora 15 currently)
and I
>>>> haven't tweaked anything.
>>>>
>>>> Cheers all!
>>>>
>>>> Craig
>>>> --
>>>> Craig Stewart
>>>> Systems Integration Analyst
>>>> Craig.Stewart at corp.xplornet.com
>>>> Xplornet - Broadband, Everywhere
>>>>
>>>> On 06/01/2011 05:36 PM, Clint Dilks wrote:
>>>>> Hi
>>>>>
>>>>> Just wondering if SE Linux is disabled on your system? If not
check
>>>>> your audit log and see if access to the plugin is being denied
>>>>>
>>>>> On Thu, Jun 2, 2011 at 8:15 AM, Justin T Pryzby
<justinp at norchemlab.com
>>>>> <mailto:justinp at norchemlab.com>> wrote:
>>>>>
>>>>> You can also strace the main nagios process:
>>>>> strace -fs999 -e execve -p PID_OF_NAGIOS
>>>>> or
>>>>> sudo strace -fs999 -e execve -p `ps o pid h -C nagios3 --sort
>>>>> start_time |sed q` 2>&1 |grep -Fw execve |grep -Fw check_dig
>>>>>
>>>>> 127 is the return status of the shell when a command isn't
found:
>>>>> justinp at justinp:~$ asdf; echo $?
>>>>> bash: asdf: command not found
>>>>> 127
>>>>>
>>>>> man sh => /EXIT STATUS/
>>>>>
>>>>> Justin
>>>>>
>>>>> On Wed, Jun 01, 2011 at 04:23:05PM -0300, Craig Stewart wrote:
>>>>>> Giorgio
>>>>>>
>>>>>> As apache user:
>>>>>>
>>>>>> bash-4.2$ /usr/lib/nagios/plugins/check_dig -H 72.45.111.250
>>>>> <tel:72.45.111.250> -l
>>>>>> www.xplornet.com <http://www.xplornet.com> -a 142.166.86.46 -w
0.5
>>>>> -c 1 -t 5
>>>>>> DNS OK - 0.096 seconds response time (www.xplornet.com
>>>>> <http://www.xplornet.com>. 864 IN A
>>>>>> 142.166.86.46)|time=0.095553s;0.500000;1.000000;0.000000
>>>>>>
>>>>>>
>>>>>> You understand my confusion.
>>>>>>
>>>>>> Craig
>>>>>>
>>>>>> Craig Stewart
>>>>>> Systems Integration Analyst
>>>>>> Craig.Stewart at corp.xplornet.com
>>>>> <mailto:Craig.Stewart at corpxplornet.com
>>> <mailto:Craig.Stewart at corpxplornet.com
> <mailto:Craig.Stewart at corp.xplornet.com>>> Tel: (506) 328-1245
>>>>> <tel:%28506%29%20328-1245> Cell: (506) 425-0111
>>>>> <tel:%28506%29%20425-0111>
>>>>>> Xplornet - Broadband, Everywhere
>>>>>>
>>>>>> On 06/01/2011 04:18 PM, Giorgio Zarrelli wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm curious. Please, do a su - as the apache user and execute
>>>>> the check
>>>>>>> as that user.
>>>>>>>
>>>>>>> Ciao,
>>>>>>>
>>>>>>> Giorgio
>>>>>>
>>>>>>
>>>>>
>>>
>
------------------------------------------------------------------------
------
>>>>>> Simplify data backup and recovery for your virtual environment
>>>>> with vRanger.
>>>>>> Installation's a snap, and flexible recovery options mean your
>>>>> data is safe,
>>>>>> secure and there when you need it. Data protection magic?
>>>>>> Nope - It's vRanger. Get your free trial download today.
>>>>>> http://p.sf.net/sfu/quest-sfdev2dev
>>>>>> _______________________________________________
>>>>>> Nagios-users mailing list
>>>>>> Nagios-users at lists.sourceforge.net
>>>>> <mailto:Nagios-users at 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
>>>>>>
>>>>>
>>>>>
>>>
>
------------------------------------------------------------------------
------
>>>>> Simplify data backup and recovery for your virtual environment
with
>>>>> vRanger.
>>>>> Installation's a snap, and flexible recovery options mean your
data
>>>>> is safe,
>>>>> secure and there when you need it. Data protection magic?
>>>>> Nope - It's vRanger. Get your free trial download today.
>>>>> http://p.sf.net/sfu/quest-sfdev2dev
>>>>> _______________________________________________
>>>>> Nagios-users mailing list
>>>>> Nagios-users at lists.sourceforge.net
>>>>> <mailto:Nagios-users at 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 message has been scanned for viruses and
>>>>> dangerous content by *MailScanner* <http://www.mailscanner.info/>,
> and is
>>>>> believed to be clean.
>>>>
>>>>
>>>
>
------------------------------------------------------------------------
------
>>>> Simplify data backup and recovery for your virtual environment with
>>> vRanger.
>>>> Installation's a snap, and flexible recovery options mean your data
is
>>> safe,
>>>> secure and there when you need it. Data protection magic?
>>>> Nope - It's vRanger. Get your free trial download today.
>>>> http://p.sf.net/sfu/quest-sfdev2dev
>>>> _______________________________________________
>>>> Nagios-users mailing list
>>>> Nagios-users at 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
>>>
>>>
>
------------------------------------------------------------------------
------
>>> Simplify data backup and recovery for your virtual environment with
> vRanger.
>>> Installation's a snap, and flexible recovery options mean your data
> is safe,
>>> secure and there when you need it. Data protection magic?
>>> Nope - It's vRanger. Get your free trial download today.
>>> http://p.sf.net/sfu/quest-sfdev2dev
>>> _______________________________________________
>>> Nagios-users mailing list
>>> Nagios-users at 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 message has been scanned by MailScanner
>>>
>
> --
> This message has been scanned by MailScanner
>
------------------------------
Message: 3
Date: Thu, 2 Jun 2011 10:07:42 -0700
From: Justin T Pryzby <justinp at norchemlab.com>
Subject: Re: [Nagios-users] Non obvious 127 plugin error
To: nagios-users at lists.sourceforge.net
Message-ID: <20110602170742.GA15646 at norchemlab.com>
Content-Type: text/plain; charset=us-ascii
Ah, I think it may be due to a ngaios setting of
"enable_environment_macros":
nagios.sourceforge.net/docs/3_0/configmain.html
Nagios [can] export all sorts of data relating to the state of the
check, and that can be useful, but it seems as if your configuration
is too big or complicated or such to fit. Do your other checks work?
What if you make their argument list as long as for check_dig?
I think it's possible that some checks are run with bigger inherited
environment than other checks, due to servicegroups and such. The
execve() E2BIG error is due to a kernel limit on the size of "argument
list plus environment". You could also write a check (or replace the
check_dig command) with something like "set
>/var/lib/nagios3/nagios-environment" or some other nagios-writable
path. There shouldn't be more than (say) a kilobyte of environment.
It's also possible that you're sourceing something huge like
/etc/bash_completion, but that doesn't explain why it doesn't affect
your user accounts and other nagios checks. Or you can rerun the
strace with "-v" to cause the environment to be displayed.
Justin
On Thu, Jun 02, 2011 at 09:43:42AM -0300, Craig Stewart wrote:
> All,
>
> SELinux was enabled (DOH!) and has been now disabled. Didn't fix my
> problem though. Thanks for that Clint, I don't know HOW many times
> SELinux has bitten me. Should know by now.
>
> I ran the strace as suggested by Justin and saw THIS little tidbit
flash by:
>
> 11769 execve("/bin/sh", ["sh", "-c",
"/usr/lib/nagios/plugins/check_dig
> -H 142.166.86.18 -l www.xplornet.com -a 142.166.86.46 -w 0.5 -c 1 -t
> 5"], [/* 189 vars */]) = -1 E2BIG (Argument list too long)
> 11751 --- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11769,
> si_status=127, si_utime=0, si_stime=0} (Child exited) --
>
> Argument list too long???? So, SOMETHING (I suspect the shell)
doesn't
> like that many arguments passed. Well, making progress.
>
> By the way, this is a bone stock OS install (Fedora 15 currently) and
I
> haven't tweaked anything.
>
> Cheers all!
>
> Craig
> --
> Craig Stewart
> Systems Integration Analyst
> Craig.Stewart at corp.xplornet.com
> Xplornet - Broadband, Everywhere
>
> On 06/01/2011 05:36 PM, Clint Dilks wrote:
> > Hi
> >
> > Just wondering if SE Linux is disabled on your system? If not check
> > your audit log and see if access to the plugin is being denied
> >
> > On Thu, Jun 2, 2011 at 8:15 AM, Justin T Pryzby
<justinp at norchemlab.com
> > <mailto:justinp at norchemlab.com>> wrote:
> >
> > You can also strace the main nagios process:
> > strace -fs999 -e execve -p PID_OF_NAGIOS
> > or
> > sudo strace -fs999 -e execve -p `ps o pid h -C nagios3 --sort
> > start_time |sed q` 2>&1 |grep -Fw execve |grep -Fw check_dig
> >
> > 127 is the return status of the shell when a command isn't
found:
> > justinp at justinp:~$ asdf; echo $?
> > bash: asdf: command not found
> > 127
> >
> > man sh => /EXIT STATUS/
> >
> > Justin
> >
> > On Wed, Jun 01, 2011 at 04:23:05PM -0300, Craig Stewart wrote:
> > > Giorgio
> > >
> > > As apache user:
> > >
> > > bash-4.2$ /usr/lib/nagios/plugins/check_dig -H 72.45.111.250
> > <tel:72.45.111.250> -l
> > > www.xplornet.com <http://www.xplornet.com> -a 142.166.86.46 -w
0.5
> > -c 1 -t 5
> > > DNS OK - 0.096 seconds response time (www.xplornet.com
> > <http://www.xplornet.com>. 864 IN A
> > > 142.166.86.46)|time=0.095553s;0.500000;1.000000;0.000000
> > >
> > >
> > > You understand my confusion.
> > >
> > > Craig
> > >
> > > Craig Stewart
> > > Systems Integration Analyst
> > > Craig.Stewart at corp.xplornet.com
> > <mailto:Craig.Stewart at corp.xplornet.com> Tel: (506) 328-1245
> > <tel:%28506%29%20328-1245> Cell: (506) 425-0111
> > <tel:%28506%29%20425-0111>
> > > Xplornet - Broadband, Everywhere
> > >
> > > On 06/01/2011 04:18 PM, Giorgio Zarrelli wrote:
> > > > Hi,
> > > >
> > > > I'm curious. Please, do a su - as the apache user and
execute
> > the check
> > > > as that user.
> > > >
> > > > Ciao,
> > > >
> > > > Giorgio
> > >
> > >
> >
------------------------------------------------------------------------
------
> > > Simplify data backup and recovery for your virtual environment
> > with vRanger.
> > > Installation's a snap, and flexible recovery options mean your
> > data is safe,
> > > secure and there when you need it. Data protection magic?
> > > Nope - It's vRanger. Get your free trial download today.
> > > http://p.sf.net/sfu/quest-sfdev2dev
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > <mailto:Nagios-users at 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
> > >
> >
> >
------------------------------------------------------------------------
------
> > Simplify data backup and recovery for your virtual environment
with
> > vRanger.
> > Installation's a snap, and flexible recovery options mean your
data
> > is safe,
> > secure and there when you need it. Data protection magic?
> > Nope - It's vRanger. Get your free trial download today.
> > http://p.sf.net/sfu/quest-sfdev2dev
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > <mailto:Nagios-users at 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 message has been scanned for viruses and
> > dangerous content by *MailScanner* <http://www.mailscanner.info/>,
and is
> > believed to be clean.
>
>
------------------------------------------------------------------------
------
> Simplify data backup and recovery for your virtual environment with
vRanger.
> Installation's a snap, and flexible recovery options mean your data is
safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
------------------------------
Message: 4
Date: Thu, 02 Jun 2011 14:33:15 -0300
From: Craig Stewart <Craig.Stewart at corp.xplornet.com>
Subject: Re: [Nagios-users] Non obvious 127 plugin error
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <4DE7C95B.7020402 at corp.xplornet.com>
Content-Type: text/plain; charset=ISO-8859-1
Justin,
I ran across that one as well and set the following in nagios.cfg:
enable_environment_macros=0
This didn't help. I do have a fairly large config (about 8k hosts and
12k service checks) but I didn't think it was THAT big.
Actually the check_dig command isn't the only one that isn't working.
The "service-notify-by-email" command also barfs on the output of SOME
checks, not all. This is simply a "printf blah blah blah" command
defined in Nagios, not a compiled plug in. The check_ping command works,
but I understand it's just a wrapper for the ping command itself. A
number of custom bash and perl check commands work, but admittedly I
simply pass the $HOSTNAME$ to them as an argument.
I've rewritten the DNS-Check command so that everything except the
$HOSTNAME$ is "hard coded" but I don't think this will work. I'm
admittedly grasping at straws now. This is what the command line will
look like:
/usr/lib/nagios/plugins/check_dns -s $HOSTADDRESS$ -H www.xplornet.com
-a 142.166.86.46 -w 0.25 -c 5 -t 10
Craig
Craig Stewart
Systems Integration Analyst
Craig.Stewart at corp.xplornet.com
Xplornet - Broadband, Everywhere
On 06/02/2011 02:07 PM, Justin T Pryzby wrote:
> Ah, I think it may be due to a ngaios setting of
> "enable_environment_macros":
> nagios.sourceforge.net/docs/3_0/configmain.html
>
> Nagios [can] export all sorts of data relating to the state of the
> check, and that can be useful, but it seems as if your configuration
> is too big or complicated or such to fit. Do your other checks work?
> What if you make their argument list as long as for check_dig?
> I think it's possible that some checks are run with bigger inherited
> environment than other checks, due to servicegroups and such. The
> execve() E2BIG error is due to a kernel limit on the size of "argument
> list plus environment". You could also write a check (or replace the
> check_dig command) with something like "set
>>/var/lib/nagios3/nagios-environment" or some other nagios-writable
> path. There shouldn't be more than (say) a kilobyte of environment.
> It's also possible that you're sourceing something huge like
> /etc/bash_completion, but that doesn't explain why it doesn't affect
> your user accounts and other nagios checks. Or you can rerun the
> strace with "-v" to cause the environment to be displayed.
>
> Justin
>
------------------------------
Message: 5
Date: Thu, 02 Jun 2011 15:53:55 -0300
From: Craig Stewart <Craig.Stewart at corp.xplornet.com>
Subject: Re: [Nagios-users] Non obvious 127 plugin error
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <4DE7DC43.4090103 at corp.xplornet.com>
Content-Type: text/plain; charset=ISO-8859-1
All,
Just an update:
Appending "enable_environment_macros=0" to the end of the nagios.cfg
file as opposed to putting it just after all the file declarations
appears to have fixed it. I didn't think it was that sensitive to
placement in the config file.
Thanks all!
Craig
--
Craig Stewart
Systems Integration Analyst
Craig.Stewart at corp.xplornet.com Tel: (506) 328-1245 Cell: (506) 425-0111
Xplornet - Broadband, Everywhere
On 06/02/2011 02:33 PM, Craig Stewart wrote:
> Justin,
>
> I ran across that one as well and set the following in nagios.cfg:
>
> enable_environment_macros=0
>
> This didn't help. I do have a fairly large config (about 8k hosts and
> 12k service checks) but I didn't think it was THAT big.
------------------------------
Message: 6
Date: Fri, 03 Jun 2011 09:29:15 +1000
From: Matthew Jurgens <nagiosusers at edcint.co.nz>
Subject: Re: [Nagios-users] Checking multiple TCP ports for a single
status?
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <4DE81CCB.9040008 at edcint.co.nz>
Content-Type: text/plain; charset="iso-8859-1"
Something a little more powerful and generic that can be used in
multiple scenarios
check_multi
See:
http://exchange.nagios.org/directory/Plugins/Others/check_multi/details
On 30/05/2011 6:11 PM, quanta wrote:
> Take a look at this:
> http://www.theillien.com/Sys_Admin_v12/html/v14/i12/a6_l2.htm
>
> On 12/30/2010 01:56 AM, Daniel Wittenberg wrote:
>> Write a simple script that does both checks and returns results?
>>
>> Dan
>>
>> -----Original Message-----
>> From: stan [mailto:stanb at panix.com]
>> Sent: Wednesday, December 29, 2010 12:39 PM
>> To: nagios List
>> Subject: [Nagios-users] Checking multiple TCP ports for a single
status?
>>
>>
>> I think I need to verify that both port 135, and 445 are avaialble on
>> some
>> Windows amchines. As I understand it, both of these need to be up.
I'd
>> like
>> to make this a single check. Looks like check_tcp will only accept a
>> single
>> -p argument. Is this correct? If so, is there a way I can AND to
>> different
>> check_tcp runs, and report a single status back to Nagios?
>>
>>
>
------------------------------------------------------------------------
------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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 message.
> Checked by AVG - www.avg.com
> Version: 10.0.1375 / Virus Database: 1509/3668 - Release Date:
05/29/11
>
>
--
Smartmon System Monitoring <http://www.smartmon.com.au>
www.smartmon.com.au <http://www.smartmon.com.au>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 7
Date: Fri, 3 Jun 2011 16:11:14 +0530
From: "Navdeep Sidhu" <Navdeep.Sidhu at tatatel.co.in>
Subject: [Nagios-users] RRDTool exits with errors -> ERROR: can't make
a graph without contents
To: <nagios-users at lists.sourceforge.net>
Message-ID: <9169798C154CD846B738065B6A75DABF011B20E8 at PB-CHD-MBX02>
Content-Type: text/plain; charset="us-ascii"
Hi
I'm using Nagios 2.8 with RRD tool version 1.0.50 & PNP version 0.3
installed. Nagios is running on RHEL-4
I'm facing an issue in RRD Tool. Recently I have configured this tool
for Cisco devices (under serviceextinfo.cfg file) so that memory & CPU
utilization should be available in graphs however I'm getting following
error when trying to view the graphs
RRDTool exits with errors -> ERROR: can't make a graph without contents
This tool is working fine with Intel platform servers & displaying the
graphs however not working in Cisco devices.
Kindly help
Regards
Navdeep Sidhu
======================================
i-choose online store at www.tataindicom.com
Your Comfort.Your Convenience.YourChoice.
======================================
DISCLAIMER:
The information contained in this message (including any attachments) is
confidential and may be privileged. If you have received it by mistake
please notify the sender by return e-mail and permanently delete this
message and any attachments from your system. Any dissemination, use,
review, distribution, printing or copying of this message in whole or in
part is strictly prohibited. Please note that e-mails are susceptible to
change.TATATELESERVICES LTD. (including its group companies) shall not
be liable for the improper or incomplete transmission of the information
contained in this communication nor for any delay in its receipt or
damage to your system. TATA TELESERVICES LTD. (or its group companies)
does not guarantee that the integrity of this communication has been
maintained nor that this communication is free of viruses, interceptions
or interference.
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 8
Date: Fri, 3 Jun 2011 16:41:38 +0530
From: Nibin VM <nibin.vm at piserve.com>
Subject: Re: [Nagios-users] RRDTool exits with errors -> ERROR: can't
make a graph without contents
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <BANLkTi=BCytATVT1fz1sX5xcDDe1YwwFAg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
in what mode you have configured pnp4nagios?
On Fri, Jun 3, 2011 at 4:11 PM, Navdeep Sidhu
<Navdeep.Sidhu at tatatel.co.in>wrote:
> Hi
>
>
>
> I'm using Nagios 2.8 with RRD tool version 1.0.50 & PNP version 0.3
> installed. Nagios is running on RHEL-4
>
>
>
> I'm facing an issue in RRD Tool. Recently I have configured this tool
for
> Cisco devices (under serviceextinfo.cfg file) so that memory & CPU
> utilization should be available in graphs however I'm getting
following
> error when trying to view the graphs
>
>
>
> *RRDTool exits with errors -> ERROR: can't make a graph without
contents *
>
>
>
> This tool is working fine with Intel platform servers & displaying the
> graphs however not working in Cisco devices.
>
>
>
> Kindly help
>
>
>
> Regards
>
> Navdeep Sidhu
>
> ======================================
> i-choose online store at www.tataindicom.com
> Your Comfort. Your Convenience. Your Choice.
> ======================================
>
> DISCLAIMER:
> The information contained in this message (including any attachments)
is
> confidential and may be privileged. If you have received it by mistake
> please notify the sender by return e-mail and permanently delete this
> message and any attachments from your system. Any dissemination, use,
> review, distribution, printing or copying of this message in whole or
in
> part is strictly prohibited. Please note that e-mails are susceptible
to
> change. TATA TELESERVICES LTD. (including its group companies) shall
not be
> liable for the improper or incomplete transmission of the information
> contained in this communication nor for any delay in its receipt or
damage
> to your system. TATA TELESERVICES LTD. (or its group companies) does
not
> guarantee that the integrity of this communication has been maintained
or
> that this communication is free of viruses, interceptions or
interferences.
>
>
>
>
------------------------------------------------------------------------
------
> Simplify data backup and recovery for your virtual environment with
> vRanger.
> Installation's a snap, and flexible recovery options mean your data is
> safe,
> secure and there when you need it. Discover what all the cheering's
about.
> Get your free trial download today.
> http://p.sf.net/sfu/quest-dev2dev2
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
--
Regards,
Nibin.
---------------------------------
Nibin.V.M
Systems Engineer(Unix)
PiServe.com
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 9
Date: Fri, 3 Jun 2011 11:43:23 -0700
From: Justin T Pryzby <justinp at norchemlab.com>
Subject: Re: [Nagios-users] Non obvious 127 plugin error
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <20110603184323.GA8425 at norchemlab.com>
Content-Type: text/plain; charset=us-ascii
The placement of the option may be significant if that option is set
somewhere else in the file, or in another file referenced by
"cfg_file" or "cfg_dir" options.
Our nagios-spawned environment has 6K of data, and
NAGIOS_SERVICEGROUPMEMBERS, in particular, is about 1k of that.
Justin
On Thu, Jun 02, 2011 at 02:33:15PM -0300, Craig Stewart wrote:
> This didn't help. I do have a fairly large config (about 8k hosts and
> 12k service checks) but I didn't think it was THAT big.
On Thu, Jun 02, 2011 at 03:53:55PM -0300, Craig Stewart wrote:
> Appending "enable_environment_macros=0" to the end of the nagios.cfg
> file as opposed to putting it just after all the file declarations
> appears to have fixed it. I didn't think it was that sensitive to
> placement in the config file.
On 06/02/2011 02:33 PM, Craig Stewart wrote:
>> I ran across that one as well and set the following in nagios.cfg:
>>
>> enable_environment_macros=0
>>
>> This didn't help. I do have a fairly large config (about 8k hosts
and
>> 12k service checks) but I didn't think it was THAT big.
------------------------------
Message: 10
Date: Fri, 3 Jun 2011 19:33:07 +0000
From: "Henry R. Prins" <HPrins at multidataservices.com>
Subject: [Nagios-users] Has anyone else seen this?
To: "'nagios-users at lists.sourceforge.net'"
<nagios-users at lists.sourceforge.net>
Message-ID:
<E163DECDEE12BB4996599C88D2023838067DBE34 at MDS-BlackBerry2.multidataservi
ces.local>
Content-Type: text/plain; charset="us-ascii"
Hey guys,
I have two web servers which I have been monitoring.
define host{
use web-server
host_name MDS-Support
alias MDS Support on Apache Web Server
address 67.88.41.150
parents rtr-t1-ext-150
contact_groups webadmins
}
define host{
use web-server
host_name MDS-Main-Website
alias multidataservices main website
address www.multidataservices.com
parents Internet
contact_groups webadmins
}
But somehow I got this message today when one of the two was not
responding:
***** Nagios *****
Notification Type: PROBLEM
Service: HTTP
Host: MDS Support on Apache Web Server
Address: www.multidataservices.com<http://www.multidataservices.com>
State: CRITICAL
Date/Time: Fri Jun 3 15:03:22 EDT 2011
Additional Info:
CRITICAL - Socket timeout after 10 seconds
It seems the Host Name is for one entry and the Address is from the
other. Anyone know what I am doing wrong?
Henry.
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 11
Date: Sat, 04 Jun 2011 00:52:17 +0200
From: Roberto Nunnari <roberto.nunnari at supsi.ch>
Subject: Re: [Nagios-users] Has anyone else seen this?
To: Nagios Users List <nagios-users at lists.sourceforge.net>,
HPrins at multidataservices.com
Message-ID: <4DE965A1.4030304 at supsi.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Henry R. Prins wrote:
> Hey guys,
>
> I have two web servers which I have been monitoring.
>
> define host{
> use web-server
> host_name MDS-Support
> alias MDS Support on Apache Web Server
> address 67.88.41.150
> parents rtr-t1-ext-150
> contact_groups webadmins
> }
>
> define host{
> use web-server
> host_name MDS-Main-Website
> alias multidataservices main website
> address www.multidataservices.com
> parents Internet
> contact_groups webadmins
> }
>
>
> But somehow I got this message today when one of the two was not
responding:
>
> ***** Nagios *****
>
> Notification Type: PROBLEM
>
> Service: HTTP
> Host: MDS Support on Apache Web Server
> Address: www.multidataservices.com <http://www.multidataservices.com>
> State: CRITICAL
>
> Date/Time: Fri Jun 3 15:03:22 EDT 2011
>
> Additional Info:
>
> CRITICAL - Socket timeout after 10 seconds
>
>
> It seems the Host Name is for one entry and the Address is from the
> other. Anyone know what I am doing wrong?
>
> Henry.
Humm.. I believe it would be better to set as address the IP address and
not the dns name.. Then, if you define the service for checking the http
service, use the http command that also takes the virtulHost name.
Hope this helps.
Best regards.
Robi
------------------------------
Message: 12
Date: Sat, 4 Jun 2011 08:44:41 +0200
From: Giorgio Zarrelli <zarrelli at linux.it>
Subject: Re: [Nagios-users] Has anyone else seen this?
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Cc: "nagios-users at lists.sourceforge.net"
<nagios-users at lists.sourceforge.net>
Message-ID: <F80BC077-F6B8-4946-8722-2D567610DE99 at linux.it>
Content-Type: text/plain; charset="us-ascii"
Pleae,
Paste the web-server template the http service and commando definitions
and related template.
Ciao,
Giorgio
Il giorno 03/giu/2011, alle ore 21:33, "Henry R. Prins"
<HPrins at multidataservices.com> ha scritto:
> Hey guys,
>
>
>
> I have two web servers which I have been monitoring.
>
>
>
> define host{
>
> use web-server
>
> host_name MDS-Support
>
> alias MDS Support on Apache Web Server
>
> address 67.88.41.150
>
> parents rtr-t1-ext-150
>
> contact_groups webadmins
>
> }
>
>
>
> define host{
>
> use web-server
>
> host_name MDS-Main-Website
>
> alias multidataservices main website
>
> address www.multidataservices.com
>
> parents Internet
>
> contact_groups webadmins
>
> }
>
>
>
>
>
> But somehow I got this message today when one of the two was not
responding:
>
>
>
> ***** Nagios *****
>
>
>
> Notification Type: PROBLEM
>
>
>
> Service: HTTP
>
> Host: MDS Support on Apache Web Server
>
> Address: www.multidataservices.com
>
> State: CRITICAL
>
>
>
> Date/Time: Fri Jun 3 15:03:22 EDT 2011
>
>
>
> Additional Info:
>
>
>
> CRITICAL - Socket timeout after 10 seconds
>
>
>
>
>
>
>
> It seems the Host Name is for one entry and the Address is from the
other. Anyone know what I am doing wrong?
>
>
>
> Henry.
>
>
------------------------------------------------------------------------
------
> Simplify data backup and recovery for your virtual environment with
vRanger.
> Installation's a snap, and flexible recovery options mean your data is
safe,
> secure and there when you need it. Discover what all the cheering's
about.
> Get your free trial download today.
> http://p.sf.net/sfu/quest-dev2dev2
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------
------
Simplify data backup and recovery for your virtual environment with
vRanger.
Installation's a snap, and flexible recovery options mean your data is
safe,
secure and there when you need it. Discover what all the cheering's
about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
End of Nagios-users Digest, Vol 61, Issue 3
*******************************************
======================================
i-choose online store at www.tataindicom.com
Your Comfort.Your Convenience.YourChoice.
======================================
DISCLAIMER:
The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110606/98f1e1bd/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list