[Nagios-users-br] Plugin XEN Nagios
Estou tendo dificuldade para instalar o plungin do XEN do Nagios: esse é o plugin para os intereçados : #!/bin/sh # # COPYRIGHT: (c) 2006 SUSE Linux GmbH. All rights reserved. # # AUTHOR : Axel Schmidt # # BELONGS TO : NLPOS/SLEPOS/Xen Nagios Integration # # DESCRIPTION : Runs xm list and returns the available xen vms # # $Revision: 1.0 $ # # Permission to use, copy, modify, distribute, and sell this software # and its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permission notice appear in # supporting documentation. # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHOR OR SUSE BE LIABLE FOR ANY CLAIM, DAMAGES # OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR # THE USE OR OTHER DEALINGS IN THE SOFTWARE. PARM1=$1 WARN=$2 PARM2=$3 CRIT=$4 if [ $PARM2 != -c -o $CRIT == ]; then echo Usage: $0 -w warning -c critical # Nagios exit code 3 = status UNKNOWN = orange if [ $PARM1 != -h ]; then exit 3 else echo echo -w = Minimum Number of Xen VMs to activate a warning message. echo -c = Number of Xen VMs to activate a critical message. echo -h = This help message. exit 3 fi fi RUNNING=$(sudo /usr/sbin/xm list | awk '!/[DN]/ {print $1 }') NBVMS=$(echo $RUNNING | wc -w) HNAME=$(hostname) #echo Xen Running = $RUNNING if [ $NBVMS -le $CRIT ]; then echo Critical Xen VMs Usage - Total NB: $NBVMS - detected VMs: $RUNNING # Nagios exit code 2 = status CRITICAL = red exit 2 else if [ $NBVMS -le $WARN ]; then echo Warning Xen VMs Usage - Total NB: $NBVMS - detected VMs: $RUNNING # Nagios exit code 1 = status WARNING = yellow exit 1 else echo OK: Xen Hypervisor \$HNAME\ is running Xen VMs: $RUNNING # Nagios exit code 0 = status OK = green exit 0 fi fi ## FIM Retirado do proprio site da Novell : http://www.novell.com/coolsolutions/feature/19490.html Eu coloque a entrada do comando no /etc/nagios3/commands.cfg : ### added for Xen VM Monitoring define command{ command_namecheck_xenvm command_line$USER1$/check_xenvm -w $ARG1$ -c $ARG2$ } Já reiniciei os seviços do nagios e o nrpe e continua com mesmo error: Warning: Return code of 127 for check of service 'Monitor XEN' on host 'fermat1' was out of bounds. Make sure the plugin you're trying to run actually exists. Então ele falar q o plugin não está funcionando, porem, fiz os teste local e funciou, será q tenho q colocar esse plugin em outro lugar ? Alguem ja usou esse plugin ? Obrigado -- -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki
Re: [Nagios-users] mem up to 99%
Hi === # /usr/sbin/nagios -v Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL = Best regards Jérôme -Ursprüngliche Nachricht- Von: Leveau Stanislas [mailto:stanislas.lev...@ac-caen.fr] Gesendet: Dienstag, 21. Juli 2009 16:17 An: Meyer Jerome Cc: Nagios-users@lists.sourceforge.net Betreff: Re: [Nagios-users] mem up to 99% hi what is your nagios version? Regards Stan Hi Now that nagios monitor my servers I noticed the following thing : The nscd (name service cache daemon) service used about 70-86% memory that grow up the memory used about 99% (see with top - mem) The only application that run on that server is : postfix and ntp! So, what should I make? Disable notification for this service or whta's else ? Server : SLES 10.3 Thanks Jérôme M. Meyer -- ___ 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] mem up to 99%
Hi Thanks for your answer! I'll tune it Here's the statistics: # nscd -g nscd configuration: 0 server debug level 130d 16h 2m 29s server runtime 6 current number of threads 32 maximum number of threads 0 number of times clients had to wait no paranoia mode enabled 3600 restart internal passwd cache: yes cache is enabled yes cache is persistent yes cache is shared 211 suggested size 216064 total data pool size 1136 used data pool size 600 seconds time to live for positive entries 20 seconds time to live for negative entries 30 cache hits on positive entries 169 cache hits on negative entries 28932 cache misses on positive entries 191 cache misses on negative entries 0% cache hit rate 12 current number of cached values 70 maximum number of cached values 2 maximum chain length searched 0 number of delays on rdlock 0 number of delays on wrlock 0 memory allocations failed yes check /etc/passwd for changes group cache: yes cache is enabled yes cache is persistent yes cache is shared 211 suggested size 216064 total data pool size 712 used data pool size 3600 seconds time to live for positive entries 60 seconds time to live for negative entries 250 cache hits on positive entries 3 cache hits on negative entries 1062 cache misses on positive entries 41864 cache misses on negative entries 0% cache hit rate 7 current number of cached values 39 maximum number of cached values 1 maximum chain length searched 0 number of delays on rdlock 0 number of delays on wrlock 0 memory allocations failed yes check /etc/group for changes hosts cache: yes cache is enabled no cache is persistent yes cache is shared 211 suggested size 216064 total data pool size 128 used data pool size 600 seconds time to live for positive entries 0 seconds time to live for negative entries 0 cache hits on positive entries 0 cache hits on negative entries 536 cache misses on positive entries 0 cache misses on negative entries 0% cache hit rate 1 current number of cached values 32 maximum number of cached values 2 maximum chain length searched 0 number of delays on rdlock 0 number of delays on wrlock 0 memory allocations failed yes check /etc/{hosts,resolv.conf} for changes regards Jérôme -Ursprüngliche Nachricht- Von: Marc Powell [mailto:m...@ena.com] Gesendet: Dienstag, 21. Juli 2009 16:30 An: nagios-user Mailinglist Betreff: Re: [Nagios-users] mem up to 99% On Jul 21, 2009, at 8:42 AM, Meyer Jerome wrote: Hi Now that nagios monitor my servers I noticed the following thing : The nscd (name service cache daemon) service used about 70-86% memory that grow up the memory used about 99% (see with top - mem) I don't think you're implying that nagios is causing this. Please clarify if you are. The only application that run on that server is : postfix and ntp! So, what should I make? Disable notification for this service or whta's else ? I've never seen nscd use a significant amount of memory. I'd try to determine what cache is using it and either tune/limit that cache, tune the reason it's being populated so heavily or disable caching of that altogether if it's a problem for you. The nscd manpage lists the - g option to display current usage stats. -- Marc - - Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- ___
Re: [Nagios-users] check_nrpe lost
Hello, check_nrpe and the nrpe daemon are considered to be nagios 'addons', and are part of the same package. Download it from the 'addons' area of 'Downloads' on the nagios website. Cheers, Guy. On Wed, Jul 22, 2009 at 9:33 AM, Jean Frontin fron...@irit.fr wrote: Hello, I am disapointed ! I lost this plugin. I download last nagios-plugins version and I don't find check_nrpe. Where canI find it ! Can anybody help me? Thanks you. -- Jean Frontin System team I R I T Université Paul-Sabatier 118, rte de Narbonne 31062 Toulouse cedex 9 France tel (33)(0)5 61 55 63 03 mail fron...@irit.fr -- ___ 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 mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_nrpe lost
Hi I'm using Nagios 3.0.6... and put check_nrpe as attach file. Best regards, Meilleures salutations Jérôme -Ursprüngliche Nachricht- Von: Jean Frontin [mailto:fron...@irit.fr] Gesendet: Mittwoch, 22. Juli 2009 10:33 An: nagios Betreff: [Nagios-users] check_nrpe lost Hello, I am disapointed ! I lost this plugin. I download last nagios-plugins version and I don't find check_nrpe. Where canI find it ! Can anybody help me? Thanks you. -- Jean Frontin System team I R I T Université Paul-Sabatier 118, rte de Narbonne 31062 Toulouse cedex 9 France tel (33)(0)5 61 55 63 03 mail fron...@irit.fr - - ___ 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 check_nrpe Description: check_nrpe -- ___ 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] Send Only one notification...
Good Day everyone, I was wondering if someone is kind enough to help me with a little thing I am stuck with. I need to create a helpdesk ticket from NAGIOS from certain devices. I am not sure of how to send only one email to the helpdesk but multiple emails to admins of these devices. any guidance and /or example would be greatly appreciated. thanks. Luis -- ___ 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] Send Only one notification...
Hey Luis, whats up man! Couldn't you just create a separate contact, and set it up with escalations, but only have it alert once? Maybe something like this... (note, untested). define hostescalation { host_name * first_notification 1 last_notification 1 notification_interval 60 contact_groups new_contact } Charlie On Jul 22, 2009, at 8:47 AM, Luis Fernando Lacayo wrote: Good Day everyone, I was wondering if someone is kind enough to help me with a little thing I am stuck with. I need to create a helpdesk ticket from NAGIOS from certain devices. I am not sure of how to send only one email to the helpdesk but multiple emails to admins of these devices. any guidance and /or example would be greatly appreciated. thanks. Luis -- ___ 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 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] Send Only one notification...
you could always write a custom notification command [ $NOTIFICATIONNUMBER$ -eq 1 ] echo host service blah blah | mail -s $contactemail$ On 7/22/09, Charlie Reddington charlie.redding...@gmail.com wrote: Hey Luis, whats up man! Couldn't you just create a separate contact, and set it up with escalations, but only have it alert once? Maybe something like this... (note, untested). define hostescalation { host_name * first_notification 1 last_notification 1 notification_interval 60 contact_groups new_contact } Charlie On Jul 22, 2009, at 8:47 AM, Luis Fernando Lacayo wrote: Good Day everyone, I was wondering if someone is kind enough to help me with a little thing I am stuck with. I need to create a helpdesk ticket from NAGIOS from certain devices. I am not sure of how to send only one email to the helpdesk but multiple emails to admins of these devices. any guidance and /or example would be greatly appreciated. thanks. Luis -- ___ 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 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] Send Only one notification...
Charlie Reddington wrote: Hey Luis, whats up man! Couldn't you just create a separate contact, and set it up with escalations, but only have it alert once? Maybe something like this... (note, untested). define hostescalation { host_name * first_notification 1 last_notification 1 notification_interval 60 contact_groups new_contact } That would result in only the helpdesk getting the first notification, which probably isn't the behavior he's looking for. On Jul 22, 2009, at 8:47 AM, Luis Fernando Lacayo wrote: Good http://nagios.telecity1.uk.ssp/docs/dependencies.html Day everyone, I was wondering if someone is kind enough to help me with a little thing I am stuck with. I need to create a helpdesk ticket from NAGIOS from certain devices. I am not sure of how to send only one email to the helpdesk but multiple emails to admins of these devices. any guidance and /or example would be greatly appreciated. thanks. Did you look at the archives? This was talked about fairly recently. http://article.gmane.org/gmane.network.nagios.user/63406 -Gius -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Alternative Notification Method
I haven't tried this myself, but you could try having a notification command that checks for a custom object variable ($_HOSTALTNOTIFY$) and does an if/else on the state of that variable? I'm not sure how Nagios behaves when a $BLAH$ doesn't exist, so you may need to define it globally as no or something and then override to yes but it could work. -Gius Mathew Walker wrote: Just thinking about something here and didn't make sense. Wanted to make sure I was not missing something... I define a contact like in the documentation... define contact{ contact_namejdoe alias John Doe host_notifications_enabled 1 service_notifications_enabled 1 service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email j...@localhost.localdomain mailto:j...@localhost.localdomain pager 555-5...@pagergateway.localhost.localdomain mailto:555-5...@pagergateway.localhost.localdomain address1x.x...@icq.com mailto:x.x...@icq.com address2555-555- can_submit_commands 1 } Sure he gets email alerts just fine, but what if I wanted to make sure the contacts got emails to his default email as well as ADDRESS1 or PAGER for a particular service? I create a service_notification_command called notify-by-address1 which would work, but I can only seem to specify this on the contact level so he would get alerts to both addresses for every service he's a contact for. I know I could alternatively create a 2nd contact and add that 2nd contact to the particular service, I just didn't know if I'm missing some other way to configure a contact 'method' for a given contact at a service/host level. Also I'm assuming I can modify this line... service_notification_commands notify-by-email,notify-by-address1 For a given service so they get alerts to both locations for all alerts. If not... perhaps be able to add something like this at the individual service/host level... contactjdoe:notify-by-email,jdoe:notify-by-pager defaulting to email if no method is defined... -- Mat W. - http://www.techadre.com Windows Live™ SkyDrive™: Store, access, and share your photos. See how. http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009 -- ___ 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 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] Ubuntu 9.x and Nagios 3.1.2 - Error declared with atribute warn_unused_result
Hello, When I try to compile Nagios on my new box I keep getting a lot of: utils.c:4475: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result utils.c:3352: warning: ignoring return value of âwriteâ, declared with attribute warn_unused_result utils.c: In function âsubmit_raw_external_commandâ: utils.c:4079: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result Errors. The make all, make, make install works fine and Nagios gets installed.. should I be worried about the errors? -- ___ 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] Can't I install Ndoutils on Ubuntu Desktop Edition?
Hi All, I need to install *Ndoutils* so that historical data can be fetched from Nagios. For this, I have installed Nagios 3.0.6 successfully on *Ubuntu 8.10 Desktop Edition*. One of the prerequisites for Ndoutils seems to be MySQL. However, I did not find any document for installation of MySQL on Ubuntu's Desktop Edition. Is it not possible or in other words, do I need Ubuntu Server Edition? Thanks, Jim =-=-=-= -- ___ 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] Error: Dependency is not satisfiable.
Hi All, I managed to installed MySQL server on the Ubuntu Desktop Edition machine. I downloaded all the .deb packages for Ubuntu 8.10, but unable to install ndoutils-nagios3-mysql. It fails with the error Error: Dependency is not satisfiable: ndoutils-common. When I try installing ndoutils-common, it fails with dependency error for ndoutils-nagios3-mysql (the one above). Can anyone help me in getting the same installed or with a document that explains the prerequisites installation steps? Thanks, Jim =-=-=-= Hi All, I need to install *Ndoutils* so that historical data can be fetched from Nagios. For this, I have installed Nagios 3.0.6 successfully on *Ubuntu 8.10 Desktop Edition*. One of the prerequisites for Ndoutils seems to be MySQL. However, I did not find any document for installation of MySQL on Ubuntu's Desktop Edition. Is it not possible or in other words, do I need Ubuntu Server Edition? Thanks, Jim =-=-=-= -- ___ 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] Can't I install Ndoutils on Ubuntu Desktop Edition?
apt-get install mysql-server mysql-client libmysqlclient15off libmysqlclient15-dev mysql is your db where you need to create the nagios db, user and then configure ndoutils to insert data - fetching can be done in different ways. Jimmyboy wrote: Hi All, I need to install *Ndoutils* so that historical data can be fetched from Nagios. For this, I have installed Nagios 3.0.6 successfully on *Ubuntu 8.10 Desktop Edition*. One of the prerequisites for Ndoutils seems to be MySQL. However, I did not find any document for installation of MySQL on Ubuntu's Desktop Edition. Is it not possible or in other words, do I need Ubuntu Server Edition? Thanks, Jim =-=-=-= -- ___ 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 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] Error: Dependency is not satisfiable.
On Jul 22, 2009, at 3:07 PM, Jimmyboy wrote: Hi All, I managed to installed MySQL server on the Ubuntu Desktop Edition machine. I downloaded all the .deb packages for Ubuntu 8.10, but unable to install ndoutils-nagios3-mysql. It fails with the error Error: Dependency is not satisfiable: ndoutils-common. When I try installing ndoutils-common, it fails with dependency error for ndoutils-nagios3-mysql (the one above). Can anyone help me in getting the same installed or with a document that explains the prerequisites installation steps? Since you took the path of downloading the packages manually -- sudo dpkg -i ndoutils-nagios-3-mysqlthe rest of filename ndoutils- commonthe rest of filename or sudo dpkg -i ndoutils-*.deb -- Marc -- ___ 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] Error: Dependency is not satisfiable.
get the latest ndoutils 1.4b8 from the nagios website and follow the install documentation. just setup your mysql db, import the db scheme and ./configure make ndoutils, cp binaries to nagios/bin and edit the cfgs to fit your needs. Jimmyboy wrote: Hi All, I managed to installed MySQL server on the Ubuntu Desktop Edition machine. I downloaded all the .deb packages for Ubuntu 8.10, but unable to install ndoutils-nagios3-mysql. It fails with the error Error: Dependency is not satisfiable: ndoutils-common. When I try installing ndoutils-common, it fails with dependency error for ndoutils-nagios3-mysql (the one above). Can anyone help me in getting the same installed or with a document that explains the prerequisites installation steps? Thanks, Jim =-=-=-= Hi All, I need to install *Ndoutils* so that historical data can be fetched from Nagios. For this, I have installed Nagios 3.0.6 successfully on *Ubuntu 8.10 Desktop Edition*. One of the prerequisites for Ndoutils seems to be MySQL. However, I did not find any document for installation of MySQL on Ubuntu's Desktop Edition. Is it not possible or in other words, do I need Ubuntu Server Edition? Thanks, Jim =-=-=-= -- ___ 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 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] Nagios NRPE Multiline Output trouble
Running Nagios 3.06 and NRPE 2.12. Nagios is running check_nrpe against a remote server running the NRPE daemon. One of the NRPE commands kicks off a perl script which needs to return multiple lines of output. The perl script does something like this: print (Line1;\nLine2;\nLine3;\n); I'm trying to use the Nagios 3.0 multiline capability to get the output's second and subsequent lines into the $LONGSERVICEOUTPUT$ macro, which in turn gets used in an email notification. I have other types of notifications (eg SMS and Pagers) where I don't use the $LONGSERVICEOUTPUT$ macro. I'm following the doc at the following URL: http://nagios.sourceforge.net/docs/3_0/pluginapi.html I just can't get this to work properly. If I run check_nrpe manually from the Nagios server, I see the multiple lines displayed on the console. However, Nagios always appears to discard everything after the first \n in the output. The closest thing that I have been able to make work is to use something like this in the perl script: print (Line1;\\rLine2;\\rLine3;\\r\n); This appears to work, but upon further investigation I found out that this is just placing everything into $SERVICEOUTPUT$. My SMS and Pager notifications show all the output, even though they are not configured with the $LONGSERVICEOUTPUT$ macro. Is there some setting in NRPE or Nagios that I need to set in order to support Multiline outputs properly? Or is this a bug? Daniel -- ___ 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