Re: [Nagios-users] analog nagios transmitter
Take a look at the Nagios Ampel Project http://www.smekal.at/code/NAmpel/ Bo Larsen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dave stern - e-mail.pluribus.unum Sent: 28. maj 2008 17:33 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] analog nagios transmitter Anyone know of a dirt-simple analog device that can take ANY red status's from nagios and transmit the signal to some visible device? Details: We have a medium nagios install on a closed network and wish to have it transmit a "something is wrong" message to some device not on the network. We are further constrained by what kind of a signal it can be so it must be just a 1 or 0. 1 Lights up a red light indicating we need to go to another building and look at nagios ie ANY host/service is down should trigger this. TIA - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Antwort: Re: Antwort: Re: NSCA and long output
> > check the value in nagios source code (include/nagios.h) too. > > It muste be at least the same or higher. > A value of 4096 will likely work well in Linux as pipes guarantee that > this many bytes can be written at once in that OS. POSIX requires 512 > bytes so this may vary between operating systems (PIPE_BUF should tell > you what the limit is). > Anything larger will likely cause fragments to be lost and/or > interleaved (the latter can happen if you have multiple writers at the > same time). See pipe(7) for more details. > The proper fix would bu using PROCESS_FILE instead to load long output. Hi Thomas, thank you for this valuable hint. I will test my setup in the next days, how it's behaviour is, if i send some long input with NSCA to the NSCA-Daemon on nagios server at the same time. best regards Thomas - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Antwort: Re: NSCA and long output
> On May 28, 2008, at 11:54 AM , Aaron Mills wrote: > > What I'm really trying to get is multi-line output. Nagios/NRPE > > supports > > this (v3.x) e.g.: > > > > TEXT OUTPUT | OPTIONAL PERFDATA > > LONG TEXT LINE 1 > > LONG TEXT LINE 2 > > > > This works for NRPE, but not with NSCA, since NSCA can only take a > > single line as an argument. > > > > What I'm trying to achieve is sending process monitoring data back > > passively like so: > > > > PROCS OK: > > Proc1: 3 processes running > > Proc2: 1 process running > > Proc3: 1 process running > > > > Any ideas? Hi Marc, I have a simila requirement here. As i refer before, i have change the two values in common.h (NSCA) and nagios.h (Nagios) to synchronize the MAX_INPUT Buffers to 7168 Byte. Then I recompiled all NSCA-Versions (Linux and Windows), Nagios and wrote my own plugins for some checks which produce one output line like: check test OK = host ahost bhost chost d The Nagios-GUI interpret the HTML-Tag and show your multiple lines if the corresponding switch in cgi.cfg is set. (escape_html=0) In my case are round about 15 lines possible. best regards Thomas - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Easier way to make nagios send mail as different user?
On 5/28/08 7:50 AM, Drew Weaver wrote: > The two ways I've come up with to make nagios send notifications as a > different user are: Drew, are you trying to customize the outgoing mail so that it _appears_ the mail is coming from a different user, or so that the mail is actually being emitted by a user other than the one running your nagios daemon? I'm guessing it's the former... > Write a wrapper which allows mail to be sent with normal headers No need to write anything - just use a different/better MUA. For example, I use mutt (in mailx mode) in a notification command, something like: > /usr/bin/printf "$MACROS_YOU_WANT_IN_THE_MESSAGE_BODY" |/usr/bin/mutt -x -s > "$MACROS_YOU_WANT_IN_THE_SUBJECT" $CONTACTEMAIL ...and then in a .muttrc for the nagios user, add a 'set from=' to match the pretty name of the user from whom I want the mail to appear to have originated. The bonus with this arrangement is that it gives me the opportunity to tweak additional settings on mail notifications, for example to set custom headers, inside .muttrc: > set hdrs > my_hdr X-Nagios: alert > my_hdr X-Priority: 1 ...etc. Depending on what you're actually shooting for, you may also need to make some adjustments to the local MTA configuration, but if your goal is to change the superficial appearance of the mail, the above might be sufficient. > run nagios as a different user ...how would that solve your problem? > are there any different options? Yes :) Cheers, -tt - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Easier way to make nagios send mail as different user?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Although when running as a non-root user you may need to add the user to the trusted-users for this switch to work, or something equivalent if you're not using sendmail. Thomas On 28/05/08 09:50 AM, [EMAIL PROTECTED] wrote: > 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 different options? The mail >> command in linux/unix appears to be a little bit limited without a parameter >> to specify the from address. >> >> Any advice? >> >> -Drew >> >> > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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 > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIPg+A6dZ+Kt5BchYRAkaoAKD7gWHDcdrsZhYZyplDJTIRQEhXzQCgh4qJ ixGQyaM09JIvMgjT+lVVfek= =gydJ -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Antwort: Re: NSCA and long output
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/05/08 01:12 AM, Thomas Borger wrote: >> Looking at the NSCA sources, common.h has: >> #define MAX_PLUGINOUTPUT_LENGTH 512 >> I'm guessing that's the issue right there. The first thing I'd try is >> to bump that up to 4096, and recompile send_nsca and nsca. I haven't >> looked very carefully at the source or tried this myself, but it seems >> like a good place to start. >> Mike > > Yes that's right. I use this since a couple of days. But you have to > check the value in nagios source code (include/nagios.h) too. > It muste be at least the same or higher. A value of 4096 will likely work well in Linux as pipes guarantee that this many bytes can be written at once in that OS. POSIX requires 512 bytes so this may vary between operating systems (PIPE_BUF should tell you what the limit is). Anything larger will likely cause fragments to be lost and/or interleaved (the latter can happen if you have multiple writers at the same time). See pipe(7) for more details. The proper fix would bu using PROCESS_FILE instead to load long output. Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIPg436dZ+Kt5BchYRAjWNAKDmDsCnTFCAoiuapdy/KKShPyaA0wCffry8 H4pbn7Iv+aqaj1Lp+kIrJjs= =cEsA -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] NRPE: Unable to read output
On May 28, 2008, at 1:56 PM, Kaushal Shriyan wrote: > On Thu, May 29, 2008 at 12:22 AM, Marc Powell <[EMAIL PROTECTED]> wrote: > > > NRPE provides a debug option for problems such as this. There could be > many causes and you haven't provided any information to say which. If > you need further assistance, please detail > > NRPE version > How installed (source or package; which package) > How is it being run (inetd, xinetd, daemon) > (x)inetd configuration if that's being used. > any (x)inetd errors being generated if that's being used. > NRPE debug output when check is executed. > NRPE configuration for the command > Example test run of the check_total_procs command run on the > destination host as the NRPE user. > and, last but certainly not least, any troubleshooting/googleing > you've already done so that we don't repeat the ground you've already > covered. > > > Hi Marc > > I have enabled debug=1, But not able to see anything in the syslog > when i restart the nrpe using the below command > > sudo /etc/init.d/nrpe restart > > Any further clue No, not until you provide the information that's already been asked for. That will pretty much eliminate common problems. You're essentially asking us to make wild guesses based on no information and keep trying when they're wrong. It's a waste of time for all of us. I've seen 2 of the 10 in this thread; nrpe version and (no) nrpe debug output. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] NRPE: Unable to read output
(snip) >> > >> > when i run the below command i get NRPE: Unable to read output >> > >> > sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c >> > check_total_procs >> > NRPE: Unable to read output >> (/snip) is check_total_procs readable / executable by the nagios user at the monitored server? -- Saludos, Germán Delivering common sense since 1969. 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nagiosgraph plot no data, only "nan"
I have nagiosgraph set up on nagios. The plotting is working on services for local system, but not on the remote systems' services. Here is the nagiosgraph debug log for a service "biwofe_CPU". All values are "nan" since yesterday. I did many tries, at one time it showed only one data set plot. no continuous data were generated and plotted. I removed all files in rrd directory and restarted the nagios service. From the log I couldn't tell where could be the problem. Spent one whole day and still couldn't move forward.Appreciate if someone can help! === Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - processing perfdata: 1212002032||biwofe||biwofe_CPU||OK CPU Load ok.||'5'=2;80;90; '10'=2;80;90; '15'=4;80;90; Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input lastcheck:1212002032 Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input hostname:biwofe Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input perfdata:'5'=2;80;90; '10'=2;80;90; '15'=4;80;90; Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input servicedescr:biwofe_CPU Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - Input output:OK CPU Load ok. Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - Checking /usr/local/nagios/nagiosgraph/rrd/biwofe/biwofe_CPU___checkCPU.rrd Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ info - RRDs::update /usr/local/nagios/nagiosgraph/rrd/biwofe/biwofe_CPU___checkCPU.rrd 1212002032:2:2:4 Wed May 28 12:14:08 2008 $RCSfile: insert.pl,v $ $Revision: 1.25 $ debug - nagiosgraph exited Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - dbfilelist checkCPU,5,10,15 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - @db=checkCPU,5,10,15 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ info - Specified biwofe/biwofe_CPU___ db files in /usr/local/nagios/nagiosgraph/rrd: biwofe/biwofe_CPU___checkCPU.rrd Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - DS biwofe/biwofe_CPU___checkCPU.rrd lines: 10, 15, 5 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd line=10 color=CC0099 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd line=15 color=FF3300 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd line=5 color=33FF99 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ info - RRDs::graph - -a PNG --start -118800 DEF:10=/usr/local/nagios/nagiosgraph/rrd/biwofe/biwofe_CPU___checkCPU.rrd:10:AVERAGE LINE2:10#CC0099:10 GPRINT:10:MAX:Max\: %6.2lf%s GPRINT:10:AVERAGE:Avg\: %6.2lf%s GPRINT:10:MIN:Min\: %6.2lf%s GPRINT:10:LAST:Cur\: %6.2lf%s\n DEF:15=/usr/local/nagios/nagiosgraph/rrd/biwofe/biwofe_CPU___checkCPU.rrd:15:AVERAGE LINE2:15#FF3300:15 GPRINT:15:MAX:Max\: %6.2lf%s GPRINT:15:AVERAGE:Avg\: %6.2lf%s GPRINT:15:MIN:Min\: %6.2lf%s GPRINT:15:LAST:Cur\: %6.2lf%s\n DEF:5=/usr/local/nagios/nagiosgraph/rrd/biwofe/biwofe_CPU___checkCPU.rrd:5:AVERAGE LINE2:5#33FF99:5 GPRINT:5:MAX:Max\: %6.2lf%s GPRINT:5:AVERAGE:Avg\: %6.2lf%s GPRINT:5:MIN:Min\: %6.2lf%s GPRINT:5:LAST:Cur\: %6.2lf%s\n -t Check-CPU-Rate -snow-118800-0 -enow-0 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - @db=checkCPU,5,10,15 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ info - Specified biwofe/biwofe_CPU___ db files in /usr/local/nagios/nagiosgraph/rrd: biwofe/biwofe_CPU___checkCPU.rrd Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - DS biwofe/biwofe_CPU___checkCPU.rrd lines: 10, 15, 5 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd line=10 color=CC0099 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd line=15 color=FF3300 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ debug - file=biwofe/biwofe_CPU___checkCPU.rrd line=5 color=33FF99 Wed May 28 12:14:24 2008 $RCSfile: show.cgi,v $ $Revision: 1.49 $ info - RRDs::graph - -a PNG --start -777600 DEF:10=/usr/local/nagios/nagiosgraph/rrd/biwofe/biwofe_CPU___checkCPU.rrd:10:AVERAGE LINE2:10#CC0099:10 GPRINT:10:MAX:Max\: %6.2lf%s GPRINT:10:AVERAGE:Avg\: %6.2lf%s GPRINT:10:MIN:Min\: %6.2lf%s GPRINT:10:LAST:Cur\: %6.2lf%s\n DEF:15=/usr/local/nagios/nagiosgraph/rrd/biwofe/biwofe_CPU___checkCPU.rrd:15:AVERAGE LINE2:15#FF3300:15 GPRINT:15:MAX:Max\: %6
Re: [Nagios-users] NRPE: Unable to read output
On Thu, May 29, 2008 at 12:22 AM, Marc Powell <[EMAIL PROTECTED]> wrote: > > On May 28, 2008, at 1:38 PM, Kaushal Shriyan wrote: > > > Hi > > > > when i run the below command i get NRPE: Unable to read output > > > > sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c > > check_total_procs > > NRPE: Unable to read output > > > > NRPE provides a debug option for problems such as this. There could be > many causes and you haven't provided any information to say which. If > you need further assistance, please detail > > NRPE version > How installed (source or package; which package) > How is it being run (inetd, xinetd, daemon) > (x)inetd configuration if that's being used. > any (x)inetd errors being generated if that's being used. > NRPE debug output when check is executed. > NRPE configuration for the command > Example test run of the check_total_procs command run on the > destination host as the NRPE user. > and, last but certainly not least, any troubleshooting/googleing > you've already done so that we don't repeat the ground you've already > covered. > > -- > Marc > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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 > Hi Marc I have enabled debug=1, But not able to see anything in the syslog when i restart the nrpe using the below command sudo /etc/init.d/nrpe restart Any further clue Thanks and Regards Kaushal - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] NRPE: Unable to read output
On May 28, 2008, at 1:38 PM, Kaushal Shriyan wrote: > Hi > > when i run the below command i get NRPE: Unable to read output > > sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c > check_total_procs > NRPE: Unable to read output NRPE provides a debug option for problems such as this. There could be many causes and you haven't provided any information to say which. If you need further assistance, please detail NRPE version How installed (source or package; which package) How is it being run (inetd, xinetd, daemon) (x)inetd configuration if that's being used. any (x)inetd errors being generated if that's being used. NRPE debug output when check is executed. NRPE configuration for the command Example test run of the check_total_procs command run on the destination host as the NRPE user. and, last but certainly not least, any troubleshooting/googleing you've already done so that we don't repeat the ground you've already covered. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] NRPE: Unable to read output
On Thu, May 29, 2008 at 12:13 AM, Steve Pribyl <[EMAIL PROTECTED]> wrote: > I did the the same thing the other day. > > Make sure the nrpe.cfg is readable by the nrpe daemon. > Make sure that the path to the command is correct. > > Thanks > > Steve Pribyl > Senior Infrastructure Practitioner > Peel, Inc > 990 Grove St. Suite 204 > Evanston, IL 60201 > Phone: 847-424-0954 ex 14 > Cell: 847-343-2349 > Fax: 847-424-0986 > [EMAIL PROTECTED] > > > On 05/28/2008 01:38 PM, Kaushal Shriyan wrote: > > Hi > > > > when i run the below command i get NRPE: Unable to read output > > > > sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c > > check_total_procs > > NRPE: Unable to read output > > > > Thanks and Regards > > > > Kaushal > > > > > > > > > > - > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > > > > > > > > > > ___ > > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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 > Hi Steve kaushal$ ls -l /etc/nagios/nrpe.cfg -rw-r- 1 nagios nagios 3898 May 28 07:54 /etc/nagios/nrpe.cfg kaushal$ [I--] [ ~] net-analyzer/nagios-2.9 (0) [I--] [ ~] net-analyzer/nagios-nrpe-2.8.1 (0) OS: Gentoo Linux I am able to see the output for rest of the commands, only for check_total_procs I get *NRPE: Unable to read output* kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_users USERS OK - 2 users currently logged in kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_load OK - load average: 0.09, 0.15, 0.16 kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_disk1 DISK OK [101168544 kB (86%) free on /dev/sda2] kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_mysql Uptime: 1814627 Threads: 4 Questions: 21736723 Slow queries: 2 Opens: 43 Flush tables: 3 Open tables: 22 Queries per second avg: 11.979 kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_nrpe_status OK - NRPE is alive kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_total_procs *NRPE: Unable to read output* Any ideas Thanks and Regards Kaushal Please let me know if i am missing something - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] NRPE: Unable to read output
I did the the same thing the other day. Make sure the nrpe.cfg is readable by the nrpe daemon. Make sure that the path to the command is correct. Thanks Steve Pribyl Senior Infrastructure Practitioner Peel, Inc 990 Grove St. Suite 204 Evanston, IL 60201 Phone: 847-424-0954 ex 14 Cell: 847-343-2349 Fax: 847-424-0986 [EMAIL PROTECTED] On 05/28/2008 01:38 PM, Kaushal Shriyan wrote: > Hi > > when i run the below command i get NRPE: Unable to read output > > sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c > check_total_procs > NRPE: Unable to read output > > Thanks and Regards > > Kaushal > > > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > > > > > ___ > 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] NSCA and long output
On May 28, 2008, at 11:54 AM, Aaron Mills wrote: > What I'm really trying to get is multi-line output. Nagios/NRPE > supports > this (v3.x) e.g.: > > TEXT OUTPUT | OPTIONAL PERFDATA > LONG TEXT LINE 1 > LONG TEXT LINE 2 > > This works for NRPE, but not with NSCA, since NSCA can only take a > single line as an argument. > > What I'm trying to achieve is sending process monitoring data back > passively like so: > > PROCS OK: > Proc1: 3 processes running > Proc2: 1 process running > Proc3: 1 process running > > Any ideas? AFAIK, you're in uncharted territory. Based on what I've seen, the longer output support has only really been applied to active commands but the documentation does indicate that support for passive results is there. NSCA hasn't been updated to handle multi-line output as you've seen nor have I seen any talk that it's coming soon. I also expect that you might see problems using the normal mechanism of writing the check results to the external command _pipe_ due to OS size limitations there (~1K typically). I expect that would only be a problem with large data returns (nagios internally supports $OUTPUT$ + $LONGOUTPUT$ of about ~4K). At this point I think you're going to have to roll your own check result return mechanism that either writes appropriately sized commands to the external pipe or larger ones to a file and uses the external command PROCESS_FILE to reap the results. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] NRPE: Unable to read output
Hi when i run the below command i get NRPE: Unable to read output sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_total_procs NRPE: Unable to read output Thanks and Regards Kaushal - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] NSCA and long output
What I'm really trying to get is multi-line output. Nagios/NRPE supports this (v3.x) e.g.: TEXT OUTPUT | OPTIONAL PERFDATA LONG TEXT LINE 1 LONG TEXT LINE 2 This works for NRPE, but not with NSCA, since NSCA can only take a single line as an argument. What I'm trying to achieve is sending process monitoring data back passively like so: PROCS OK: Proc1: 3 processes running Proc2: 1 process running Proc3: 1 process running Any ideas? -Aaron Aaron Mills Systems Administrator Return Path, Inc. http://www.returnpath.net [EMAIL PROTECTED] From: Mike Hamrick <[EMAIL PROTECTED]> Subject: Re: [Nagios-users] NSCA and long output To: Nagios Users Mailinglist Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Hi Aaron, You wrote: > I've been trying to figure out if this is possible for a while. I'm > using NRPE and $LONGHOSTOUTPUT$ for a number of tests, which is great, > except for passive monitoring. We have several data centers that run > their own Nagios boxes and then ship the data back to the master > Nagios server via NSCA. The problem is that I can't get NSCA to > utilize the $LONGHOSTOUTPUT$ - this is kind of critical for things > like log file checks, etc. With NSCA this data doesn't get passed. Looking at the NSCA sources, common.h has: #define MAX_PLUGINOUTPUT_LENGTH 512 I'm guessing that's the issue right there. The first thing I'd try is to bump that up to 4096, and recompile send_nsca and nsca. I haven't looked very carefully at the source or tried this myself, but it seems like a good place to start. Mike - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] stop check
Hi, I'm running Nagios 3.01, after the restart of process in the web interface, some services have stopped check. The restart of nagios process was at 4:44PM in 05/26. after the restart he checked the services until the 11:57PM, but in 05/27 he did not check any further. What may have occurred? -- André O Moura http://andrem.wordpress.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] analog nagios transmitter
Anyone know of a dirt-simple analog device that can take ANY red status's from nagios and transmit the signal to some visible device? Details: We have a medium nagios install on a closed network and wish to have it transmit a "something is wrong" message to some device not on the network. We are further constrained by what kind of a signal it can be so it must be just a 1 or 0. 1 Lights up a red light indicating we need to go to another building and look at nagios ie ANY host/service is down should trigger this. TIA - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Not Receiving Notifications
Problem appears to be located at EXIM I found error messages that it's not able to relay to external domains.. Checking into that now ;) Thanks all! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: woensdag 28 mei 2008 16:12 To: nagios Subject: Re: [Nagios-users] Not Receiving Notifications On May 28, 2008, at 8:58 AM, Tim Van Caeyzeele wrote: > Thanks for the feedback, > > I executed the line I found in the commands.cfg > No errors received, but no mail received neither L > > [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# /usr/bin/printf "%b" > "* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n > \nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$ > \nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ > [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# > If you take a moment to read and understand the command, it's sending the output of a printf statement (basically fancy echo) to the command /usr/bin/mail, which specifies a subject (-s) of "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" to the e-mail address $CONTACTEMAIL$. The shell has no understanding of what the $MACROS$ are so they evaluate to $. Because of this you just sent an e-mail to the e-mail address '$' -- [logs]$ echo $CONTACTEMAIL$ $ [logs]$ Nagios substitutes appropriate values for the $MACROS$ _before_ running the command. If you're going to test like this -- 1) Test as the nagios user, not root. Nagios doesn't run as root and doesn't execute this command as root. 2) Substitute reasonable values for all the $MACROS$ above when testing. As for your general problem, verify that nagios is logging notifications in nagios.log. Verify that your SMTP server logs running on localhost show receipt from nagios and delivery to destination. If you do not see the former, your notification configuration for your host/service/or contact is incorrect. If you see receipt of the message from nagios in your SMTP server logs but no delivery, the logs should detail why. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Not Receiving Notifications
On May 28, 2008, at 8:58 AM, Tim Van Caeyzeele wrote: > Thanks for the feedback, > > I executed the line I found in the commands.cfg > No errors received, but no mail received neither L > > [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# /usr/bin/printf "%b" > "* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n > \nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$ > \nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" > $CONTACTEMAIL$ > [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# > If you take a moment to read and understand the command, it's sending the output of a printf statement (basically fancy echo) to the command /usr/bin/mail, which specifies a subject (-s) of "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" to the e-mail address $CONTACTEMAIL$. The shell has no understanding of what the $MACROS$ are so they evaluate to $. Because of this you just sent an e-mail to the e-mail address '$' -- [logs]$ echo $CONTACTEMAIL$ $ [logs]$ Nagios substitutes appropriate values for the $MACROS$ _before_ running the command. If you're going to test like this -- 1) Test as the nagios user, not root. Nagios doesn't run as root and doesn't execute this command as root. 2) Substitute reasonable values for all the $MACROS$ above when testing. As for your general problem, verify that nagios is logging notifications in nagios.log. Verify that your SMTP server logs running on localhost show receipt from nagios and delivery to destination. If you do not see the former, your notification configuration for your host/service/or contact is incorrect. If you see receipt of the message from nagios in your SMTP server logs but no delivery, the logs should detail why. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Not Receiving Notifications
Dear All, I'm running Nagios 3.0.2, although I (assume) I configured everything correctly for the notifications, I'm not receiving any. My email address is typed correctly in the contacts cfg file. Where should I start troubleshooting ? Regards, Tim Van Caeyzeele - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] Not Receiving Notifications
HI. Did you pre-load or substitute all those variables into the environment prior to running that, or did you just run exactly what's below? (For example, if $CONTACTEMAIL$ var was empty/null, I would think the command below would not work at all.. :\ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Van Caeyzeele Sent: Wednesday, May 28, 2008 9:58 AM To: Mark Baxter; nagios Subject: Re: [Nagios-users] Not Receiving Notifications Thanks for the feedback, I executed the line I found in the commands.cfg No errors received, but no mail received neither L [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# Tim. From: Mark Baxter [mailto:[EMAIL PROTECTED] Sent: woensdag 28 mei 2008 15:54 To: Tim Van Caeyzeele; nagios Subject: RE: [Nagios-users] Not Receiving Notifications Have you tried running the command for sending out an alert from the commandline? It is listed as the "command_line" option under "notify-service-by-email" in commands.cfg. It is where I would start. Mark Baxter OnDemand Administrator, Visma Proceedo AB Switchboard : +46 8 522 930 30 - Direct : +46 8 522 930 60 - Mobile : +46 73 978 92 60 - Fax : +46 8 58 88 48 29 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Van Caeyzeele Sent: 28 May 2008 15:47 To: nagios Subject: [Nagios-users] Not Receiving Notifications Dear All, I'm running Nagios 3.0.2, although I (assume) I configured everything correctly for the notifications, I'm not receiving any. My email address is typed correctly in the contacts cfg file. Where should I start troubleshooting ? Regards, Tim Van Caeyzeele - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] Not Receiving Notifications
Thanks for the feedback, I executed the line I found in the commands.cfg No errors received, but no mail received neither L [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ [EMAIL PROTECTED]:/usr/local/nagios/etc/objects# Tim. From: Mark Baxter [mailto:[EMAIL PROTECTED] Sent: woensdag 28 mei 2008 15:54 To: Tim Van Caeyzeele; nagios Subject: RE: [Nagios-users] Not Receiving Notifications Have you tried running the command for sending out an alert from the commandline? It is listed as the "command_line" option under "notify-service-by-email" in commands.cfg. It is where I would start. Mark Baxter OnDemand Administrator, Visma Proceedo AB Switchboard : +46 8 522 930 30 - Direct : +46 8 522 930 60 - Mobile : +46 73 978 92 60 - Fax : +46 8 58 88 48 29 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Van Caeyzeele Sent: 28 May 2008 15:47 To: nagios Subject: [Nagios-users] Not Receiving Notifications Dear All, I'm running Nagios 3.0.2, although I (assume) I configured everything correctly for the notifications, I'm not receiving any. My email address is typed correctly in the contacts cfg file. Where should I start troubleshooting ? Regards, Tim Van Caeyzeele - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] Easier way to make nagios send mail as different user?
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 different options? The mail > command in linux/unix appears to be a little bit limited without a parameter > to specify the from address. > > Any advice? > > -Drew > > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Email Alerts
On May 28, 2008, at 2:41 AM, Kaushal Shriyan wrote: > Hi, > > I just want only email alerts instead of sms alerts,How can i > configure it on a specific host Notification methods are determined on a per-contact basis so use a contact that doesn't specify sms notifications. Alternately, change your notification script so that it ignores sms notification attempts for this host. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 and SOAP
I'm not exactly sure what you're looking for, but our WebReboot integration plugins communicate with WebReboot Enterprise remote reboot devices. This is done using ZSI with Python. The source code is available under the Apache Software License at: http://dev.servprise.com/svn/nagios-plugin/trunk/ -- Kevin On May 19, 2008, at 3:07 AM, Nair wrote: > Any one tried SOAP request integration with Nagios? > > Thank you, > Nair. > > > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ > 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 and SOAP
On Mon, 2008-05-19 at 07:07 +, Nair wrote: > Any one tried SOAP request integration with Nagios? > A SOAP-XML interface (for say, perhaps, inter-component protocol communication with NRPE, NSCA, DNX, active-standby promotion) would be so fucking hawtte .. ~BAS > > Thank you, > Nair. > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] action_url issues
Hugo, Thanks for checking into this. I rolled back to version 3.0.1 and everything is working fine. For some reason the new code is reading the slashes on urls differently. See the lines on URL to Acknowledge. following is a mail notification from nagios-3.0.1 Gentlemen, 'BrookfieldES' is UP at this time. Notification Type: RECOVERY Host: BrookfieldES - 4250 Fairfax Drive, Arlington, VA 22203 AdditionalInfo: 36194VA/3600066VA State: UP Address: 10.32.0.111 Info: PING OK - Packet loss = 0%, RTA = 1.94 ms Date/Time: Wed May 28 08:05:09 EDT 2008 Comments: test Author: john URL to Acknowledge: http://10.31.50.16/nagios/cgi-bin/cmd.cgi?cmd_typ=33&host=BrookfieldES -- following is a mail notification from nagios-3.0.2 -- Gentlemen, 'BrookfieldES' is UP at this time. Notification Type: RECOVERY Host: BrookfieldES - 4250 Fairfax Drive, Arlington, VA 22203 AdditionalInfo: 36194VA/3600066VA State: UP Address: 10.32.0.111 Info: PING OK - Packet loss = 0%, RTA = 2.08 ms Date/Time: Wed May 28 07:33:05 EDT 2008 Comments: test Author: john URL to Acknowledge: http%3A%2F%2F10.31.50.16%2Fnagios%2Fcgi-bin%2Fcmd.cgi%3Fcmd_typ%3D33%26host%3DBrookfieldES Thanks, -john On Sat, May 24, 2008 at 9:54 AM, Hugo van der Kooij <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Nagios User wrote: > | Hello, > | > | I have nagios 3.0.2 installed on RHEL 5.0 64 bit server. Everything is > | working fine except for url links on action_url get messed up when I > | get alerts. Is this a bug on 3.0.2? > | > | should be > | > | http://10.31.48.16/nagios/cgi-bin/cmd.cgi?cmd_typ=33&host=$HOSTNAME$ > | > | and this what I get on alerts > | > | > http%3A%2F%2F10.31.48.16%2Fnagios%2Fcgi-bin%2Fcmd.cgi%3Fcmd_typ%3D33%26host%3DBullrunES > > This definitly looks like someone translated this later. Where do you > see this output? The output is the correct translation for the given > characters. > > So I suspect something in your (unmentioned!) SMTP environment. > > Hugo > > - -- > [EMAIL PROTECTED] http://hugo.vanderkooij.org/ > PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc > >A: Yes. >>Q: Are you sure? >>>A: Because it reverses the logical flow of conversation. >>>>Q: Why is top posting frowned upon? > > Bored? Click on http://spamornot.org/ and rate those images. > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.7 (GNU/Linux) > > iD8DBQFIOB4HBvzDRVjxmYERAou3AJ9IXOfCVAmRbwTj1DkCPizNHKn5owCfUjWV > EzCefZ9hbMr8696eWcY8Tfc= > =6KPN > -END PGP SIGNATURE- > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Antwort: Re: Massive HOST UP alerts in nagios.log for no reason
Andreas Ericsson <[EMAIL PROTECTED]> schrieb am 28.05.2008 13:19:00: > > The culprit seems to be: > > > > [EMAIL PROTECTED] archives]# egrep "HOST ALERT:.*UP;HARD" > > nagios-05-28-2008-00.log | wc -l > > 97716 > > > > So I have 97716 entries each day looking like: > > > > [1211844162] HOST ALERT: sw-00-o2;UP;HARD;1;OK - 1.2.3.4: rta 1,069ms, > > lost 0% > > > > with the hostname of course being always different - every host comes up > > every minute. > > > > Does anyone have any clue if this is intended behaviour or what I may have > > done wrong? > > > > stalking_options is one possible culprit. Thanks a lot Andreas - this was exactly the reason. Since I use a self-hacked version of Monarch for administrating nagios 3.0, I just missed the fact that it activates stalking for hosts by default on templates... regards Sascha -- Sascha Runschke Netzwerk- und Systemmanagement Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] FW: Re: Nagios 3.0 SLA Reporting
--- "Bo Philip Larsen" <[EMAIL PROTECTED]> wrote: > Have you been looking at iReport and JasperServer/JasperReport form > http://jasperforge.org/sf/projects/ireport it's a good alternative to > Crystal Reports. > > In the past we have been looking at SLA reporting out of nagios with > NDO, but unfortunately we had to stall this project for some time. > > Regards, > > Bo > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mohr > James > Sent: 27. maj 2008 18:11 > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios 3.0 SLA Reporting > > > -Ursprüngliche Nachricht- > > Von: Alan Cooper [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 27. Mai 2008 16:37 > > An: Mohr James > > Cc: nagios-users@lists.sourceforge.net > > Betreff: Re: [Nagios-users] Nagios 3.0 SLA Reporting > > > > Hi, > > > > We had a similar requirement - the quick & dirty way we > > managed to get reports out of Nagios & NDO was to write our > > own DB interogation script in perl (once you have the schema > > from the docs and a copy of SQLyg, the DB is easy to navigate). > > > > To get round the downtime reports for events in the past, I > > wrote a script that simply parsed the nagios logs (scheduled > > downtime events get logged by nagios, just not acted on) with > > epoch times, so it's straightforward to enter a downtime > > start / stop epoch pair, and then for each outage, you can > > check if it occured in a scheduled downtime period. > > > > Would love to hear if anyone has a more elegant solution. > > I figured something like that. My boss insists that there must be > something out there as there must be other companies with the same > problem. That might be true, but it is likely that other companies saw > that there was nothing and built their own solution, but never made it > available publically. > > Using the GUI to record a downtime is much easier than what we do now. > Even if it is in the past, it still appears in nagios.log and grepping > for SCHEDULE_SVC_DOWNTIME for the given host/service pair is pretty > straightforward. Perhaps the "long term" solution would be to change > the code (commands.c???) so that each time a downtime is entered it is > stored in a DB table at the same time it is written to the command > file. At that point all of the checks have been done and all we should > need to do is parse the output line and do a DB insert. > > I am curious what you use for the actual reporting. Does the "DB > interogation script" simply pull the data out of the DB or does it do > any reformating? We have been looking at using Crystal Reports, but we > currently still have the problem with the outages, but if we figure > out how to get it into the DB we should be OK. > > Regards, > > Jim Mohr > Just to let you know, we are working in a report module to be released in the next 3 months or so. The module (OpReports for Nagios) will be fully integrated with Nagios and allow you to generate SLA and SLM reports with all features described here, including what we call a "vertical and horizontal cuts". _ Dario B. BestettiOpServices R. Luciana de Abreu, 471 - Sala 403 Porto Alegre, RS - CEP 90570-060 Fone 55(51)30613588 Mobile 55(51)81518218 Fax 55(51)30613588 Email[EMAIL PROTECTED] "In God we trust, the rest we monitor ..." _ > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
[Nagios-users] Easier way to make nagios send mail as different user?
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 different options? The mail command in linux/unix appears to be a little bit limited without a parameter to specify the from address. Any advice? -Drew - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] Massive HOST UP alerts in nagios.log for no reason
[EMAIL PROTECTED] wrote: > Hi all, > > ever since I started building up our new nagios environment under nagios > 3.0, I noticed that my > logfile contains massive amounts of HOST UP alerts - even though the host > was never down before. > Actually I seem to have this log entry each time a host is checked, I > guess they get checked for > the predictive and cache host tests. But sadly it's getting a real pain, > since the logfile is growing > so big, that my firefox even crashes when I try to view it with the > webinterface. > My daily nagios.log has the massive amount of roundabout 110.000 entries > each day - which is > little bit too much for its 400 hosts / 1600 services imho. Nearly the > same checks (actually a few > less, but whatever) produce roundabout 10.000 lines of log on our nagios > 2.11 server each day. > > The culprit seems to be: > > [EMAIL PROTECTED] archives]# egrep "HOST ALERT:.*UP;HARD" > nagios-05-28-2008-00.log | wc -l > 97716 > > So I have 97716 entries each day looking like: > > [1211844162] HOST ALERT: sw-00-o2;UP;HARD;1;OK - 1.2.3.4: rta 1,069ms, > lost 0% > > with the hostname of course being always different - every host comes up > every minute. > > Does anyone have any clue if this is intended behaviour or what I may have > done wrong? > stalking_options is one possible culprit. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Massive HOST UP alerts in nagios.log for no reason
Hi all, ever since I started building up our new nagios environment under nagios 3.0, I noticed that my logfile contains massive amounts of HOST UP alerts - even though the host was never down before. Actually I seem to have this log entry each time a host is checked, I guess they get checked for the predictive and cache host tests. But sadly it's getting a real pain, since the logfile is growing so big, that my firefox even crashes when I try to view it with the webinterface. My daily nagios.log has the massive amount of roundabout 110.000 entries each day - which is little bit too much for its 400 hosts / 1600 services imho. Nearly the same checks (actually a few less, but whatever) produce roundabout 10.000 lines of log on our nagios 2.11 server each day. The culprit seems to be: [EMAIL PROTECTED] archives]# egrep "HOST ALERT:.*UP;HARD" nagios-05-28-2008-00.log | wc -l 97716 So I have 97716 entries each day looking like: [1211844162] HOST ALERT: sw-00-o2;UP;HARD;1;OK - 1.2.3.4: rta 1,069ms, lost 0% with the hostname of course being always different - every host comes up every minute. Does anyone have any clue if this is intended behaviour or what I may have done wrong? S -- Sascha Runschke Netzwerk- und Systemmanagement Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] urgent: nagios stoppt changing states
Hello,our nagios does not update any of the hosts/service states, i recognized it because I didnt get any mails in the last 24h. I restarted nagios and it told me there is no lock file, but a ps gave me the nagios process -- [11:02:50] Heiko : 2729 ?Ssl0:00 /usr/local/nagios/bin/nagios -d /etc/nagios//nagios.cfg 24068 ?S 0:00 \_ /usr/local/nagios/bin/nagios -d /etc/nagios//nagios.cfg 24069 ?S 0:00 \_ /bin/bash /usr/local/nagios/libexec/eventhandlers/submit_service_check.sh 172.17.3.104 Users 0 USERS OK - 0 users currently logged in 24071 ?S 0:00 \_ /usr/local/bin/send_nsca -H 172.17.4.161 -d ; -c /etc/nagios/send_nsca.cfg -p 5668 [EMAIL PROTECTED]:/var/nagios]# /etc/init.d/nagios stop Stopping nagios: No lock file found in /var/nagios//nagios.lock -- i did a reboot of the machine but nothing changed, I dont see a notice that the active checks are disabled. When I manually run a check it shows the correct values. How can I debug this? thx a lot Rupert - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Longs lines in cfg files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27/05/08 09:01 AM, Dirk H. Schulz wrote: > Hi Folks, > > can I break long lines within a config file in several lines? I have tried > the usual backslash, but nagios -v did not like it. > > What do yo do when you have dozens of hosts to put into one hostgroup to > get a manageable "members" line? I personally prefer assigning the hostgroups from the host definition, using the "hostgroups" variable. You can also put it in a template is you already have one per hostgroup, which will avoid having to repeat that line for each host in the hostgroup. Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIPROF6dZ+Kt5BchYRAt6FAKD7SA3GgOFO5HVB5pfHsF+vWJm3FQCggy2x dn5oUfgUj96EYQowkGk8Iz4= =D0AS -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] VMWare Infrastructure monitoring
Hi all, I've recently spent some time again on thinking about our VMWare Infrastructure (ESX clusters) and its monitoring. I'd like to hear some opinions from the list, how others implemented the monitoring. Currently my setup is as follows: - 3 ESX clusters with 6 hosts each - 100 VMs per cluster My current approach: The first cluster for example is defined as host "essesx-cluster" with 6 services ESX01, ESX02, ESX03. Those services are check_icmp checks on the IP of the service console of each ESX host. The hostcheck of the "essesx-cluster" host is then: check_cluster --service -w 1 -c 1 -d $SERVICESTATEID:essesx-cluster:ESX01$, $SERVICESTATEID:essesx-cluster:ESX02$,$SERVICESTATEID:essesx-cluster:ESX03$, $SERVICESTATEID:essesx-cluster:ESX04$,$SERVICESTATEID:essesx-cluster:ESX05$, $SERVICESTATEID:essesx-cluster:ESX06$ All VMs are childs of their corresponding cluster host. The ESX hosts itself are not monitored as hosts, just as services of the cluster. What do you think about that approach? Is it sophisticated or rather dumb? I have to admit that I am a bit clueless right now, as it looks quite weird. Does anyone see any problems with that appoach? /discuss regards Sascha -- Sascha Runschke Netzwerk- und Systemmanagement Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] Email Alerts
Hi, I just want only email alerts instead of sms alerts,How can i configure it on a specific host Thanks and Regards Kaushal - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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-devel] Bug in 3.0.2 with service escalation contact groups
Mathieu Gagné wrote: > Hi, > > Andy Shellam wrote: >> The lines >> you sent for the host escalation were actually for the host itself! The >> host escalation's contacts also had a space in the strtok() functions, >> which explains why a host escalation wouldn't register "Andy Shellam" as >> a contact name, but would recognise "NetServe Support" as a contact group. > > You are right. Sorry for this mistake. > > This however reinforce my statement regarding the inconsistency I found > across the source code. Should the white-space be considered as a field > separator or not? > > Somebody should verify the entire source and make sure the same behavior > applies everywhere. > If you want something done, do it yourself ;-) > Also, by removing the white-space separator, will this still work? (note > the white-space) > > define hostescalation { > contact_groupscontactgroup1, contactgroup2 > } > It should, but if spaces are allowed as parts of object identifiers, they must still be disallowed at the start and end of such identifiers, or there will be no sane way to separate variables from values (unless we force tabs there, which will break a lot of people's configurations). -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] FW: Re: Nagios 3.0 SLA Reporting
Have you been looking at iReport and JasperServer/JasperReport form http://jasperforge.org/sf/projects/ireport it's a good alternative to Crystal Reports. In the past we have been looking at SLA reporting out of nagios with NDO, but unfortunately we had to stall this project for some time. Regards, Bo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohr James Sent: 27. maj 2008 18:11 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios 3.0 SLA Reporting > -Ursprüngliche Nachricht- > Von: Alan Cooper [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 27. Mai 2008 16:37 > An: Mohr James > Cc: nagios-users@lists.sourceforge.net > Betreff: Re: [Nagios-users] Nagios 3.0 SLA Reporting > > Hi, > > We had a similar requirement - the quick & dirty way we > managed to get reports out of Nagios & NDO was to write our > own DB interogation script in perl (once you have the schema > from the docs and a copy of SQLyg, the DB is easy to navigate). > > To get round the downtime reports for events in the past, I > wrote a script that simply parsed the nagios logs (scheduled > downtime events get logged by nagios, just not acted on) with > epoch times, so it's straightforward to enter a downtime > start / stop epoch pair, and then for each outage, you can > check if it occured in a scheduled downtime period. > > Would love to hear if anyone has a more elegant solution. I figured something like that. My boss insists that there must be something out there as there must be other companies with the same problem. That might be true, but it is likely that other companies saw that there was nothing and built their own solution, but never made it available publically. Using the GUI to record a downtime is much easier than what we do now. Even if it is in the past, it still appears in nagios.log and grepping for SCHEDULE_SVC_DOWNTIME for the given host/service pair is pretty straightforward. Perhaps the "long term" solution would be to change the code (commands.c???) so that each time a downtime is entered it is stored in a DB table at the same time it is written to the command file. At that point all of the checks have been done and all we should need to do is parse the output line and do a DB insert. I am curious what you use for the actual reporting. Does the "DB interogation script" simply pull the data out of the DB or does it do any reformating? We have been looking at using Crystal Reports, but we currently still have the problem with the outages, but if we figure out how to get it into the DB we should be OK. Regards, Jim Mohr - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] FW: Re: Nagios 3.0 SLA Reporting
Have you been looking at iReport and JasperServer/JasperReport form http://jasperforge.org/sf/projects/ireport it's a good alternative to Crystal Reports. In the past we have been looking at SLA reporting out of nagios with NDO, but unfortunately we had to stall this project for some time. Regards, Bo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohr James Sent: 27. maj 2008 18:11 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios 3.0 SLA Reporting > -Ursprüngliche Nachricht- > Von: Alan Cooper [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 27. Mai 2008 16:37 > An: Mohr James > Cc: nagios-users@lists.sourceforge.net > Betreff: Re: [Nagios-users] Nagios 3.0 SLA Reporting > > Hi, > > We had a similar requirement - the quick & dirty way we > managed to get reports out of Nagios & NDO was to write our > own DB interogation script in perl (once you have the schema > from the docs and a copy of SQLyg, the DB is easy to navigate). > > To get round the downtime reports for events in the past, I > wrote a script that simply parsed the nagios logs (scheduled > downtime events get logged by nagios, just not acted on) with > epoch times, so it's straightforward to enter a downtime > start / stop epoch pair, and then for each outage, you can > check if it occured in a scheduled downtime period. > > Would love to hear if anyone has a more elegant solution. I figured something like that. My boss insists that there must be something out there as there must be other companies with the same problem. That might be true, but it is likely that other companies saw that there was nothing and built their own solution, but never made it available publically. Using the GUI to record a downtime is much easier than what we do now. Even if it is in the past, it still appears in nagios.log and grepping for SCHEDULE_SVC_DOWNTIME for the given host/service pair is pretty straightforward. Perhaps the "long term" solution would be to change the code (commands.c???) so that each time a downtime is entered it is stored in a DB table at the same time it is written to the command file. At that point all of the checks have been done and all we should need to do is parse the output line and do a DB insert. I am curious what you use for the actual reporting. Does the "DB interogation script" simply pull the data out of the DB or does it do any reformating? We have been looking at using Crystal Reports, but we currently still have the problem with the outages, but if we figure out how to get it into the DB we should be OK. Regards, Jim Mohr - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Antwort: Re: NSCA and long output
> Looking at the NSCA sources, common.h has: > #define MAX_PLUGINOUTPUT_LENGTH 512 > I'm guessing that's the issue right there. The first thing I'd try is > to bump that up to 4096, and recompile send_nsca and nsca. I haven't > looked very carefully at the source or tried this myself, but it seems > like a good place to start. > Mike Yes that's right. I use this since a couple of days. But you have to check the value in nagios source code (include/nagios.h) too. It muste be at least the same or higher. Thomas - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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