[Nagios-users] Critical and warnings values for a snmp check
Hello all, I have been using nagios for a long time, but now is the first time I want to make something not usual (at least, for me). I want to check system healthy for some of my dell servers ask them for the status by snmp. The check I run answers me the values: 1 - other 2 - unknown 3 - ok 4 - nonCriticalUpper 5 - criticalUpper 6 - nonRecoverableUpper 7 - nonCriticalLower 8 - criticalLower 9 - nonRecoverableLower 10 - failed so I want that my nagios check (I run it with the check_snmp command) answer me OK for the value 3, WARNING for 1, 2, 4 and 7 and CRITICAL for the rest. So, how do I have to configure the -w and -c options for the check_snmp command? -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA)/ \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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
Vedr.: [Nagios-users] Critical and warnings values for a snmp check
Hi Angel, I would write a bash plugin script to solve the problem if I were in your shoes... You should need a working snmp installation to get it running. /Thomas |-+ | | Angel L. Mateo | | | [EMAIL PROTECTED] | | | Sendt af:| | | [EMAIL PROTECTED]| | | ceforge.net | | || | || | | 21-11-2005 12:41 | | || |-+ --| | | | Til: nagios-users@lists.sourceforge.net | | cc: | | Vedr.:[Nagios-users] Critical and warnings values for a snmp check | --| Hello all, I have been using nagios for a long time, but now is the first time I want to make something not usual (at least, for me). I want to check system healthy for some of my dell servers ask them for the status by snmp. The check I run answers me the values: 1 - other 2 - unknown 3 - ok 4 - nonCriticalUpper 5 - criticalUpper 6 - nonRecoverableUpper 7 - nonCriticalLower 8 - criticalLower 9 - nonRecoverableLower 10 - failed so I want that my nagios check (I run it with the check_snmp command) answer me OK for the value 3, WARNING for 1, 2, 4 and 7 and CRITICAL for the rest. So, how do I have to configure the -w and -c options for the check_snmp command? -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA)/ \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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 the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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] check sip service
Hello to all list, I have a little problem to issue. When I try to check sip service, through check_sip plugin, I receive the following error: *** #./check_sip -u sip:[EMAIL PROTECTED] Invalid Extension # *** instead when I try to check it on other host seem to run right: *** #./check_sip -u sip:[EMAIL PROTECTED] SIP 200 OK: 0.00 second response time # *** Do you know what is the problem? p.s. sorry for my english... Thank you for your help. Best Regards Rodolfo Greco --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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] check_snmp - UPS
Hi, I have to monitor our Master-UPS via 'check_snmp'. I want to get an alert, when the capacity goes under 80 % like this. [...] # ./check_snmp -H ups.company.com -C uclvNOC-ro -o .OID \ -l BATTERY (%) -w 80 -c 60 [...] But when the retournvalue is 100 (%), I've get an critital alert. ## BATTERY (%) CRITICAL - *100* service alert.## Is it possible define reverse values in check_snmp ? thanks in advance. Richard -- Richard Gliebe Fachhochschule Vorarlberg GmbH / University for Applied Science Information Services --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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_snmp - UPS
negate is a plugin that will change the return code of a plugin. with check_snmp - try -w 0:60 -c 0:80 you will get a warning above 60 and critical above 80 On Mon, 21 Nov 2005, Richard Gliebe wrote: Hi, I have to monitor our Master-UPS via 'check_snmp'. I want to get an alert, when the capacity goes under 80 % like this. [...] # ./check_snmp -H ups.company.com -C uclvNOC-ro -o .OID \ -l BATTERY (%) -w 80 -c 60 [...] But when the retournvalue is 100 (%), I've get an critital alert. ## BATTERY (%) CRITICAL - *100* service alert.## Is it possible define reverse values in check_snmp ? thanks in advance. Richard -- --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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] debug mode
I've written a check that seems to work just dandy from the command line, and I BELIEVE i've got the same syntax for it in checkcommands.cfg, but the return info from the check as run by nagios does not seem to be working right. Is there a way to see EXACTLY what the check command looked like when nagios ran it? Like a debug flag on the checks or something? I haven't found anything like that in the docs, but I can find no reason why my check works at the command line, but only partially works via nagios. This check is for checking the percent free on a filesystem of a remote box via snmp. -- John Jolet Your On-Demand IT Department 512-762-0729 www.jolet.net [EMAIL PROTECTED] --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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] debug mode
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of John Jolet Sent: Monday, November 21, 2005 9:48 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] debug mode I've written a check that seems to work just dandy from the command line, and I BELIEVE i've got the same syntax for it in checkcommands.cfg, but the return info from the check as run by nagios does not seem to be working right. Is there a way to see EXACTLY what the check command looked like when nagios ran it? Like a debug flag on the checks or something? I haven't found anything like that in the docs, but I can find no reason why my check works at the command line, but only partially works via nagios. You could enable debug at compile time (./configure --help) or you could just wrap your command_line in an echo like -- # 'check_nrpe' command definition define command{ command_namecheck_nrpe command_lineecho $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to 30 /tmp/command.lines } -- Marc --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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] Multiple links from serviceextinfo to graphs?
I have mrtg setup on my Nagios box to link to whatever graph I want specified in my serviceextinfo.cfg. I looked at the documentation but couldn't find the answer to my question. I'm thinking it's not possible, but I figured I would ask anyways. First an example of my serviceextinfo.cfg: define serviceextinfo{ host_name my-host-example service_description DISKS notes_url http://link-to-my-graph icon_image graph.gif icon_image_alt View graphs } Can I specify more than one pointer from within a container? For example, I have disks being monitored and I have say three graphs being generated from my mrtg configurations. With the current setup however I can only make a direct link to one of those graphs with only one little image showing up under that particular service. I would like to be able to show three images on the service DISKS with a link to each corresponding graph? If not no big deal, I can always just create a directory, point Apache to it, and have my image link open to that directory, where you can select the graph you want to look at. I was just trying to make it pretty looking from the Nagios interface though. Thanks for any replies. Max --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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] Multiple links from serviceextinfo to graphs?
On 11/21/05, Max [EMAIL PROTECTED] wrote: I have mrtg setup on my Nagios box to link to whatever graph I want specified in my serviceextinfo.cfg. I looked at the documentation but couldn't find the answer to my question. I'm thinking it's not possible, but I figured I would ask anyways. First an example of my serviceextinfo.cfg: define serviceextinfo{ host_name my-host-example service_description DISKS notes_url http://link-to-my-graph icon_image graph.gif icon_image_alt View graphs } Can I specify more than one pointer from within a container? For example, I have disks being monitored and I have say three graphs being generated from my mrtg configurations. With the current setup however I can only make a direct link to one of those graphs with only one little image showing up under that particular service. I would like to be able to show three images on the service DISKS with a link to each corresponding graph? If not no big deal, I can always just create a directory, point Apache to it, and have my image link open to that directory, where you can select the graph you want to look at. I was just trying to make it pretty looking from the Nagios interface though. Thanks for any replies. Max, Not sure if this is possible, but it would be a nice addition. Id like to link to graphs and documentation. Addng a serviceextinfo definition for the service linking it to a wiki page seems a nice easy way to achieve although you can obviously create only one link per service. Ben --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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] debug mode
On Monday 21 November 2005 09:58, Marc Powell wrote: You could enable debug at compile time (./configure --help) or you could just wrap your command_line in an echo like -- # 'check_nrpe' command definition define command{ command_namecheck_nrpe command_lineecho $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to 30 /tmp/command.lines } not using nrpeusing snmp direct from my monitoring box. -- Marc --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=Click ___ 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 -- John Jolet Your On-Demand IT Department 512-762-0729 www.jolet.net [EMAIL PROTECTED] --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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] debug mode
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of John Jolet Sent: Monday, November 21, 2005 10:09 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] debug mode On Monday 21 November 2005 09:58, Marc Powell wrote: You could enable debug at compile time (./configure --help) or you could just wrap your command_line in an echo like -- # 'check_nrpe' command definition define command{ command_namecheck_nrpe command_lineecho $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to 30 /tmp/command.lines } not using nrpeusing snmp direct from my monitoring box. It doesn't matter. It was just an example. You can do the same with any command. -- Marc --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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] what is the best web based console
Hello, What is the most popular or best supported web based console? There are a number of them under the AddOn Projects and i would like to use the one that is most popular Thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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] Multiple links from serviceextinfo to graphs?
In message [EMAIL PROTECTED], Ben O'Hara writes: On 11/21/05, Max wrote: I have mrtg setup on my Nagios box to link to whatever graph I want specified in my serviceextinfo.cfg. I looked at the documentation but couldn't find the answer to my question. I'm thinking it's not possible, but I figured I would ask anyways. First an example of my serviceextinfo.cfg: define serviceextinfo{ host_name my-host-example service_description DISKS notes_url http://link-to-my-graph icon_image graph.gif icon_image_alt View graphs } Can I specify more than one pointer from within a container? For example, I have disks being monitored and I have say three graphs being generated from my mrtg configurations. With the current setup however I can only make a direct link to one of those graphs with only one little image showing up under that particular service. I would like to be able to show three images on the service DISKS with a link to each corresponding graph? Not sure if this is possible, but it would be a nice addition. Id like to link to graphs and documentation. Addng a serviceextinfo definition for the service linking it to a wiki page seems a nice easy way to achieve although you can obviously create only one link per service. In Nagios 2.0 you also have an action_url as well as notes_url. I link to a twiki page for the URL and uses passed in parameters (http://host/twiki/bin/view/ServicePing?host=...) to customize the offered links. I use a generic template to define all the links: # generic serviceextinfo entry template define serviceextinfo { register0 namegeneric-service notes_url https://host.com/twiki/bin/view/Systems/NagSvc$SERVICEDESC$ action_url https://host.com/twiki/bin/view/Systems/NagSvc$SERVICEDESC$?host=$HOSTNAME$service=$SERVICEDESC$state=$SERVICESTATE$output=$SERVICEOUTPUT$ } and the wiki page provides links to cactii graphs, create a trouble tickets etc. Note SERVICEDESC and SERVICESTATE don't actually expand sadly. Works well and allows other searches/actions to be only 2 clicks away. IMO the current mechanism doesn't scale well. Too much screen space is needed to provide a link to all the possible things you may want to link to. Would be nicer to have the ability to bind a menu (e.g. dropdown/select box) of items/links into the service information page. However using a wiki as an index of links is nice in that it can link to system information and tickets associated with the hosts and services. We will be including troubleshooting info in the wiki as well to make it easier to respond to problems. -- rouilj John Rouillard System Administrator Renesys Corporation --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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] Using NRPE to call remote event_handlers
Anyone else using check_nrpe to run script on remote hosts for event handlers? It's a basic setup but just not sure what I missing. I have central box that monitors our web db server farm. If a service fails I want an event to kick off on the remote machine that will restart the httpd or any other service. All the docs I see are for calling local event handlers. When I run the script locally it works and I have setup a sudoer file so that the scripts can be called. However, when I try to run the event handler manually, as seen below it does not work. Anything I am missing? /usr/local/nagios/libexec/check_nrpe -H app-dev -p 5666 -c eh_krang_failover -a CRITICAL SOFT 2 I receive the following, which happens to be an piece of the output that is seen when running the event handler on the actual host. Restarting Krang service (2rd soft critical state)...Loading configured skin: Any ideas? Mark T. Pearson Senior Network Engineer UFT Welfare Fund 52 Broadway, 8th Floor New York, NY 10004 (212) 539-0605 *** The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. ***
RE: [Nagios-users] Multiple links from serviceextinfo to graphs?
Reading this made me think of an off the wall way to do that. Just a shot in the dark here, so take it as you will. Maybe you could write some javascript code to be included into the html and have the url only contain data like, with an onlcik event. http://127.0.0.1/Name=Server1?Disk=C?Disk=D?Docs=/docs/server1 Now when clicked the javascript could process the data and open up a drop down or right click style menu for you to choose where to go. Either that or just another scripted page that could process a list of elements like that and present you options. Hope it sends you in the right direction. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max Sent: Monday, November 21, 2005 11:02 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Multiple links from serviceextinfo to graphs? I have mrtg setup on my Nagios box to link to whatever graph I want specified in my serviceextinfo.cfg. I looked at the documentation but couldn't find the answer to my question. I'm thinking it's not possible, but I figured I would ask anyways. First an example of my serviceextinfo.cfg: define serviceextinfo{ host_name my-host-example service_description DISKS notes_url http://link-to-my-graph icon_image graph.gif icon_image_alt View graphs } Can I specify more than one pointer from within a container? For example, I have disks being monitored and I have say three graphs being generated from my mrtg configurations. With the current setup however I can only make a direct link to one of those graphs with only one little image showing up under that particular service. I would like to be able to show three images on the service DISKS with a link to each corresponding graph? If not no big deal, I can always just create a directory, point Apache to it, and have my image link open to that directory, where you can select the graph you want to look at. I was just trying to make it pretty looking from the Nagios interface though. Thanks for any replies. Max --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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 the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845op=click ___ 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_snmp - UPS
On Mon, 2005-11-21 at 09:43 -0500, Subhendu Ghosh wrote: Hi, negate is a plugin that will change the return code of a plugin. with check_snmp - try -w 0:60 -c 0:80 you will get a warning above 60 and critical above 80 Sorry, but it returns also an critical alert: # ./negate /usr/local/libexec/nagios/check_snmp -H ups.company.com \ -C Community -o OID -w 0:60 -c 0:80 SNMP CRITICAL - *100* What I want is, when the return value is below 100 (warning: 80 / critical: 60) I want to get an alert. thanks Richard On Mon, 21 Nov 2005, Richard Gliebe wrote: Hi, I have to monitor our Master-UPS via 'check_snmp'. I want to get an alert, when the capacity goes under 80 % like this. [...] # ./check_snmp -H ups.company.com -C uclvNOC-ro -o .OID \ -l BATTERY (%) -w 80 -c 60 [...] But when the retournvalue is 100 (%), I've get an critital alert. ## BATTERY (%) CRITICAL - *100* service alert.## Is it possible define reverse values in check_snmp ? thanks in advance. Richard -- Richard Gliebe Fachhochschule Vorarlberg GmbH / University for Applied Science Information Services --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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_snmp - UPS
On Tue, 2005-11-22 at 07:06 +0100, Richard Gliebe wrote: On Mon, 2005-11-21 at 09:43 -0500, Subhendu Ghosh wrote: Hi, negate is a plugin that will change the return code of a plugin. with check_snmp - try -w 0:60 -c 0:80 you will get a warning above 60 and critical above 80 Sorry, but it returns also an critical alert: # ./negate /usr/local/libexec/nagios/check_snmp -H ups.company.com \ -C Community -o OID -w 0:60 -c 0:80 SNMP CRITICAL - *100* What I want is, when the return value is below 100 (warning: 80 / critical: 60) I want to get an alert. I think I got it ;-) # /usr/local/libexec/nagios/check_snmp -H ups.company.com \ -C Community -o OID -w 99:80 -c 99:60 -l Battery Status (%) Battery Status (%) OK - 100 Is this the right syntacs ? thanks Richard -- Richard Gliebe Fachhochschule Vorarlberg GmbH / University for Applied Science Information Services --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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] Using NRPE to call remote event_handlers
Hello First nrpe only returns one line from output so if your restarting procedure returns multiple lines you wont see all the lines from the check_nrpe. second i see you are passing arguments with -a did you enable nrpe with command arguments ? and final you can call sudo before your script /usr/bin/sudo /usr/local/nagios/libexec/check_disk ... other then that seems you doing it perfectly fine Moshe Sharon