Re: [Nagios-users] Apache rewrites to run only /nagios at SSL?
On Wed, 19 Apr 2006, ankush grover wrote: > > RewriteEngine On > > RewriteCond %{SERVER_PORT} !^443$ > > RewriteRule ^/boss(.*)$ > > https://%{SERVER_NAME}%{REQUEST_URI} [L,R] > > > > > > > > RewriteEngine On > > RewriteBase /nagios/cgi-bin > > RewriteCond %{SERVER_PORT} !^443$ > > RewriteRule ^/nagios(.*)$ > > https://%{SERVER_NAME}%{REQUEST_URI} [L,R] > > I have done rewriting for webmail on my server change the settings are > per your need. > > RewriteEngine on > RewriteCond %{SERVER_PORT} ^80$ > RewriteRule ^/webmail(.*)$ https://ipaddress/webmail$1 [L,R] > RewriteLog "/var/log/httpd/rewrite.log" > RewriteLogLevel 4 You may have noticed the specifics above. It works for a real directory aka: /boss but not for the aliased parts aka: /nagios So this post does not add anything new. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Apache rewrites to run only /nagios at SSL?
On RewriteEngine OnRewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/boss(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]RewriteEngine OnRewriteBase /nagios/cgi-binRewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/nagios(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]# SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-userAlias /nagios "/usr/share/nagios"RewriteEngine On RewriteBase /nagiosRewriteCond %{SERVER_PORT} !^443$RewriteRule ^/nagios(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]# SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user hey, I have done rewriting for webmail on my server change the settings are per your need. RewriteEngine on RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^/webmail(.*)$ https://ipaddress/webmail$1 [L,R] RewriteLog "/var/log/httpd/rewrite.log" RewriteLogLevel 4 I am using FC3 with Apache 2.0.52. Regards Ankush
[Nagios-users] Re: Nagios 2.2, check_ifoperstatus running on OS X 10.4
Jones, Brian mcclainfinlon.com> writes: > check_ifoperstatus!4!mfread } I should add that I did execute the command from command line logged in as the nagios user and it does return what is expected. For example, the command documented below would return: OK: Interface Vlan 4 (Index 4) is up. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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 2.2, check_ifoperstatus running on OS X 10.4
Have you tried running the plugin from the command line as the Nagios user with the same parameters? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jones, BrianSent: Tuesday, April 18, 2006 7:53 PMTo: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Nagios 2.2, check_ifoperstatus running on OS X 10.4 I recently installed Nagios 2.2 onto a Mac G4 running OSX 10.4 Everything is working extremely well except for one service check based on 'check_ifoperstatus'. Inside the web interface for Nagios all these service checks get (No Output!) returned. Here is the configuration:
[Nagios-users] Nagios 2.2, check_ifoperstatus running on OS X 10.4
I recently installed Nagios 2.2 onto a Mac G4 running OSX 10.4 Everything is working extremely well except for one service check based on 'check_ifoperstatus'. Inside the web interface for Nagios all these service checks get (No Output!) returned. Here is the configuration: checkcommands.cfg has: # 'check_ifoperstatus' command definitiondefine command{ command_name check_ifoperstatus command_line $USER1$/check_ifoperstatus -H $HOSTADDRESS$ -k $ARG1$ -C $ARG2$ } minimal.cfg has: define service{ name chkifoperstatus-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts service_description UPLINK is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 notification_interval 30 notification_period 24x7 notification_options w,u,c,r register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use chkifoperstatus-service host_name Cisco_Switch_Solo contact_groups admins check_command check_ifoperstatus!4!mfread --notice the command is 'check_ifoperstatus' and passing interface index '4' and the community string 'mfread' } nagios.cfg is configured to look to checkcommands.cfg for external commands and this is working as all the other checks I am performing operate perfectly. Has anyone else run across this problem, and if so, have any advice on what I can do to fix it? Thanks in advance for any help you can offer! Brian Jones IT Director McClainFinlon Advertising 303-436-9400 Main 303-383-7200 Direct
[Nagios-users] is my syntax ok for escalation?
Hello, I'm trying to get escalation working on a service I have running. This is what I currently have. define serviceescalation{ host_name web3.host.com service_description Bacula Process first_notification 3 last_notification 10 notification_interval 90 contact_groups admin-escalate } define service{ use generic-service host_name web3.host.com service_description Bacula Process is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval2 contact_groups admins notification_interval 240 notification_period 24x7 notification_optionsw,u,c,r check_command check_nt_bacula!192.168.1.5 } I know that the contact_groups 'admin-escalate' works since I tried it in "define service" for "contact_groups" and it worked fine. Is there anything that I might of missed in defining my serviceescalation? Would appreciate any assistance. Thanks! Tom -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.4/318 - Release Date: 4/18/2006 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] [ Compiling problem ] nagios plugins 1.4.2(check_ldap problem)
Sorry to reply my own post. Just figured out what was worng. in /usr/local/include/ldap.h do not exists the declaration of LDAPS_PORT, as in check_ldap.c just modifying it to LDAP_PORT did the trick. See ya! On Tue, 2006-04-18 at 20:29 -0300, Marcel Mitsuto Fucatu Sugano wrote: > Hello list. > > I've just fetched the nagios-plugins-1.4.2 package. Installed > openldap-1.2.11 from sunfreeware (solaris 8 - sparc) and i am trying to > compile check_ldap here. I also have installed openssl-0.9.8, mysql, > etc. I want to compile all the plugins and create a set to put into > production. But when it's the check_ldap's turn, i keep getting these > errors: > > ---[~~~]--- > if gcc -DLOCALEDIR=\"/export/nagios-2.2/share/locale\" -DHAVE_CONFIG_H -I. > -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap-I/usr/local/include > -g -O2 -MT check_ldap.o -MD -MP -MF ".deps/check_ldap.Tpo" -c -o check_ldap.o > check_ldap.c; \ > then mv -f ".deps/check_ldap.Tpo" ".deps/check_ldap.Po"; else rm -f > ".deps/check_ldap.Tpo"; exit 1; fi > check_ldap.c: In function `main': > check_ldap.c:128: error: `LDAPS_PORT' undeclared (first use in this function) > check_ldap.c:128: error: (Each undeclared identifier is reported only once > check_ldap.c:128: error: for each function it appears in.) > make[2]: *** [check_ldap.o] Error 1 > make[2]: Leaving directory `/home/msugano/src/nagios-plugins-1.4.2/plugins' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/msugano/src/nagios-plugins-1.4.2' > make: *** [all] Error 2 > ---[~~~]--- > > Does anyone have a clue of what is going on here? > > Already tried to find Libraries missing with find-sym > (http://dcs.nac.uci.edu/~strombrg/find-sym.html) and will keep to try > compiling this, but I've thought that would be handy to ask here if > anyone already has gone through this problem before. Searching gmane did > not raised anything helpful, so, here i am. > > Thanks in advance > > > AVISO: A informação contida neste e-mail, bem como em qualquer de seus > anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) > acima referido(s), podendo conter informações sigilosas e/ou legalmente > protegidas. Caso você não seja o destinatário desta mensagem, informamos que > qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de > seus anexos é absolutamente proibida. Solicitamos que o remetente seja > comunicado imediatamente, respondendo esta mensagem, e que o original desta > mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão > realizada a partir destes, sejam permanentemente apagados e/ou destruídos. > Informações adicionais sobre nossa empresa podem ser obtidas no site > http://sobre.uol.com.br/. > > NOTICE: The information contained in this e-mail and any attachments thereto > is CONFIDENTIAL and is intended only for use by the recipient named herein > and may contain legally privileged and/or secret information. If you are not > the e-mail´s intended recipient, you are hereby notified that any > dissemination, distribution or copy of this e-mail, and/or any attachments > thereto, is strictly prohibited. Please immediately notify the sender > replying to the above mentioned e-mail address, and permanently delete and/or > destroy the original and any copy of this e-mail and/or its attachments, as > well as any printout thereof. Additional information about our company may be > obtained through the site http://www.uol.com.br/ir/. > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > ___ > 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 AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.
[Nagios-users] RE: (No output!) message
Dear Sir, I am writing to thank you for your letter and say, >Message: 24 >Date: Tue, 18 Apr 2006 17:47:48 +0300 >From: Brandino Andreas <[EMAIL PROTECTED]> >Subject: [Nagios-users] (No output!) message > >Hi all. >I will make a question about the famous "(No output!)" error. > >I am trying to watch cpu usage on a cisco router. >I am using check_snmp_load.pl from here >http://www.manubulon.com/nagios/ind= >ex_commands.html > >### CONFIGURATION ### ># checkcommands.cfg >define command { >command_name check_snmp_cisco_cpu >command_line $USER1$/check_snmp_load.pl -H >$HOSTADDRESS$ -C $ARG1$ = >-T cisco -w $ARG2$ -c $ARG3$ ># comment community warning critical >} > >## services.cfg >define service { >name Cisco_check_cpu >service_description CPU >check_command >check_snmp_cisco_cpu!my_community!30,300,30!40,40,40 >register 0 >} > >From=20command line, logged in as root or apache2 user, it works. >However, ># su - nagios >whoami >root > > >ping & snmp checks work. > >Any idea what can cause this error? No but this may help, 1 If you are using embedded Perl, try calling the plugin from either a /bin/sh or C wrapper ie replace your command_line in checkcommands.cfg with command_line WRAPPER $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C $ARG1$ -T cisco -w $ARG2$ -c $ARG3$ WRAPPER is something like #!/bin/sh PLUGIN/PATH/check_snmp.pl $@ or main(int argc, char *argv[]) { execve("/PLUGIN/PATH/check_snmp.pl", argv) ; } gcc -o WRAPPER WRAPPER.c 2 Otherwise, it may be better to write a small wrapper that appends the arguments that Nagios calls the plugins with to a file #!/bin/sh echo $@ >> /Some/file/writable/by/Nagios Yours sincerely. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] [ Compiling problem ] nagios plugins 1.4.2 (check_ldap problem)
Hello list. I've just fetched the nagios-plugins-1.4.2 package. Installed openldap-1.2.11 from sunfreeware (solaris 8 - sparc) and i am trying to compile check_ldap here. I also have installed openssl-0.9.8, mysql, etc. I want to compile all the plugins and create a set to put into production. But when it's the check_ldap's turn, i keep getting these errors: ---[~~~]--- if gcc -DLOCALEDIR=\"/export/nagios-2.2/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap-I/usr/local/include -g -O2 -MT check_ldap.o -MD -MP -MF ".deps/check_ldap.Tpo" -c -o check_ldap.o check_ldap.c; \ then mv -f ".deps/check_ldap.Tpo" ".deps/check_ldap.Po"; else rm -f ".deps/check_ldap.Tpo"; exit 1; fi check_ldap.c: In function `main': check_ldap.c:128: error: `LDAPS_PORT' undeclared (first use in this function) check_ldap.c:128: error: (Each undeclared identifier is reported only once check_ldap.c:128: error: for each function it appears in.) make[2]: *** [check_ldap.o] Error 1 make[2]: Leaving directory `/home/msugano/src/nagios-plugins-1.4.2/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/msugano/src/nagios-plugins-1.4.2' make: *** [all] Error 2 ---[~~~]--- Does anyone have a clue of what is going on here? Already tried to find Libraries missing with find-sym (http://dcs.nac.uci.edu/~strombrg/find-sym.html) and will keep to try compiling this, but I've thought that would be handy to ask here if anyone already has gone through this problem before. Searching gmane did not raised anything helpful, so, here i am. Thanks in advance AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/. NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail´s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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 dns resolver checks
I've been playing around with getting nagios to check information coming dns, however I need to check a variety of queries and check_dns doesn't really do quite what I want. The check_dns_random.pl plugin in contrib does what I want in theory, but it seems to have some fairly bad flaws in the perl logic (shell calls to wc -l, weird randomization etc) and it doesn't appear to have been updated recently. After some assistance with colleagues, we've attempted a bit of a rewrite for the plugin but it's not quite there, and it really doesn't use utils.pm or any of the nagios handling. I'm a bit of an idiot when it comes to perl, so I was hoping someone else might be able to take a look at what we've done and offer some suggestions/patches/updates/working code you get the idea. We've tried to keep the original functionality of check_dns_random.pl, but any help would really be appreciated. check_resolver.pl is a complete rewrite of the dns query using Net::DNS. check_dns_random-new.pl is a rewrite of the original plugin with updated random function and file parsing. -- Any sufficiently advanced technology is indistinguishable from magic. -Arthur C. Clarke check_resolver.pl Description: Perl program check_dns_random-new.pl Description: Perl program
[Nagios-users] Apache rewrites to run only /nagios at SSL?
Hi, I have been playing with apache rewrites to get /nagios (and some other parts) behind SSL but without the rest of the site ending up as SSL website. (Technically it is offtopic, I guess, but close enough to entertain the Nagios crowd and get some samples documented to prevent others to fall into this pit.) Basically I want /nagios and /boss to be redirected to the https server and anything else going to remain on plain mode. Forcing /boss is not the issue as it is a directory. Getting /nagios to do the same seems to be much harder. The /boss environment works with: RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/boss(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] Within the section. I tried to modify the nagios config to: ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi" RewriteEngine On RewriteBase /nagios/cgi-bin RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/nagios(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user Alias /nagios "/usr/share/nagios" RewriteEngine On RewriteBase /nagios RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/nagios(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user But somehow it does not redirect as I would expect it to do. Could some kind sould tell me where I went wrong? I have also tested with the SSLRequireSSL part enabled but it also resulted in 403 errors. Without the rewrite part both http and https access to /nagios works fine on the server. Some tech details: - XOS 4 (RHEL 4 clone) - Apache 2.0 - Nagios 2.2 All of it installed via packages (Thanks Dag!) Hugo. PS: The usual investigation tools (Google) were used before I wrote the message. There I learned that Alias constructs in apache require more work with rewrites. -- I hate duplicates. Just reply to the relevant mailinglist. [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Non latin symbols in $HOSTALIAS$
Hi there! I use cyrillic symbols (koi8-r) in "alias" field of a host definition. An e-mail that is generated when a host goes down, contains all info I need but only alias ($HOSTALIAS$ macro value) containes only numeric symbols and no cyrillic symbols. I had such kind of problem in status.cgi. I solved it by commenting a part, where text is encoded to html compartible kind. But I can't find the place, from whitch the bug with $HOSTALIAS$ begins. 8( Can anyone help me? I use Nagios 2.0 on Debian Sarge, all locale settings for nagios user are "KOI8-R". --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] question
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Hugo van der Kooij > Sent: Tuesday, April 18, 2006 1:44 PM > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] question > > On Tue, 18 Apr 2006, Guillermo Bellettini wrote: > > > Hi there, do you have anu idea how to upgrade Net Saint 0.0.7 to Nagios > 2.2? > > I suggest you print the old configs and start to write them from scratch. > > If you have 1000's of service you may make it worth to write a custom > migration script. But if you are around a 100 or less then I would not > bother to try to automate it. Andreas Ericsson has written a script called object_config_fix.php found at http://oss.op5.se/nagios/ that I found useful in my migration from nagios-1.0 to 2.0. To get from Netsaint style configs I would suggest starting with the convertcfg program found in the contrib. directory. That will convert old style Netsaint object files to the Nagios-1.0 template format. From there you can either manually edit to update them to the nagios-2.0 format (essentially updating changed macros and moving contact_groups from hostgroup to host definitions) or playing around with Andreas's script to do that for you. I had to tweak it a little bit to get it to work with my configs but now it's working great while I run both in parallel. -- Marc --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] question
On Tue, 18 Apr 2006, Guillermo Bellettini wrote: > Hi there, do you have anu idea how to upgrade Net Saint 0.0.7 to Nagios 2.2? I suggest you print the old configs and start to write them from scratch. If you have 1000's of service you may make it worth to write a custom migration script. But if you are around a 100 or less then I would not bother to try to automate it. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] restart http with ssl certificate pass
On Tue, 18 Apr 2006, Subhendu Ghosh wrote: > On Tue, 18 Apr 2006, ThomasC. wrote: > > > I would like to use eventhandlers to restart apache on nagios server because > > it sometimes fails. > > My issue is that i have a password on the certificate that i have to give > > when restarting apache...do you know how i can handle this ? > > Use expect as a wrapper script to supply the password. If you can automate it then there is no use for the password. I suggest using a key without a password instead of putting another password out for display in a script. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] restart http with ssl certificate pass
> > On Tue, 18 Apr 2006, ThomasC. wrote: > > > I would like to use eventhandlers to restart apache on nagios server > > because > > it sometimes fails. > > My issue is that i have a password on the certificate that i have to give > > when restarting apache...do you know how i can handle this ? > > Use expect as a wrapper script to supply the password. If it's mod_ssl, use the SSLPassPhraseDialog directive which points to a script that simply echoes out the passphrase. -- - Kyle - [EMAIL PROTECTED] http://www.panix.com/~kylet - --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] question
I would recommend you to do a fresh install of nagios 2.2 instead and then try to migrate the host/service-definitions. I would suspect the checks and core components have improved and changed so drastically that you have to do so much work in order to get an upgrade to work that a fresh reinstall would be much easier and give a cleaner result. Med venlig hilsen / Regards Sikkerhedsspecialist / Security Specialist Christian Kammer Have Bispebjerg Hospital MIT (Mediko, Informatik & Tele) Bispebjerg Bakke 23 2400 København NV mobil: 2044 0125 E-mail: [EMAIL PROTECTED] "Guillermo Bellettini" <[EMAIL PROTECTED]> Sendt af: [EMAIL PROTECTED] 18-04-2006 18:57 Til: cc: Vedr.: [Nagios-users] question Hi there, do you have anu idea how to upgrade Net Saint 0.0.7 to Nagios 2.2? Is there any plug-in to install? Thanks for your help Guillermo Bellettini
[Nagios-users] question
Hi there, do you have anu idea how to upgrade Net Saint 0.0.7 to Nagios 2.2? Is there any plug-in to install? Thanks for your help Guillermo Bellettini
RE: [Nagios-users] restart http with ssl certificate pass
You could remove the password on the key: To remove the pass phrase on an RSA private key: openssl rsa -in key.pem -out keyout.pem To remove the pass phrase on a DSA private key: openssl dsa -in key.pem -out keyout.pem Scott Lundgren ITS - Web Services UNC at Charlotte http://www.uncc.edu --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] restart http with ssl certificate pass
On Tue, 18 Apr 2006, ThomasC. wrote: Hi, I would like to use eventhandlers to restart apache on nagios server because it sometimes fails. My issue is that i have a password on the certificate that i have to give when restarting apache...do you know how i can handle this ? Thanks for all. Use expect as a wrapper script to supply the password. -- -sg --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] restart http with ssl certificate pass
Hi, I would like to use eventhandlers to restart apache on nagios server because it sometimes fails. My issue is that i have a password on the certificate that i have to give when restarting apache...do you know how i can handle this ? Thanks for all. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Re: Nagios Web Plugin
Nope.. NAGIOS Host OS - LINUX CENTOS The remote web server that I want to monitor - Don't Know and doenst really interest me ! The production server that is allowed to connect to the remote webserver and has some plugins such as check_ping, check_memory etc... OS - SOLARIS 9 thnx -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Lundgren Sent: terça-feira, 18 de Abril de 2006 16:13 To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Re: Nagios Web Plugin > Hi, > > The plugins were already installed when I came in.. can I copy the required > plugins from host.. ? > > One other thing, host OS is Linux and the plugin is on a Solaris 9 OS. Please correct if I'm wrong: The remote web server that you want to monitor is Linux The production server that is allowed to connect to the remote web server and has Nagios installed is Solaris 9 Do I understand your setup correctly? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] Re: Nagios Web Plugin
> Hi, > > The plugins were already installed when I came in.. can I copy the required > plugins from host.. ? > > One other thing, host OS is Linux and the plugin is on a Solaris 9 OS. Please correct if I'm wrong: The remote web server that you want to monitor is Linux The production server that is allowed to connect to the remote web server and has Nagios installed is Solaris 9 Do I understand your setup correctly? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Re: Nagios Web Plugin
> 1. check_http runs fine on my host machine but when I execute it on the > machine I want to monitor I get the fwg error: > > ld.so.1: ./check_http: fatal: libssl.so.0.9.7: open failed: No such file or > directory > Killed > > Any idea whats wrong here ?? How did you install the nagios plugins? This error is because you are missing the OpenSSL library that your plugins were compiled with. Scott Lundgren ITS - Web Services UNC at Charlotte http://www.uncc.edu --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Re: Nagios Web Plugin
That's fine. You'll just need to use on of the remote plugin execution methodologies then; NRPE or check-by-ssh probably. Install the check_http plugin on you production machine then have your nagios server execute the plugin on that machine to check your third machine. -- Marc > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy > Sent: Tuesday, April 18, 2006 9:57 AM > To: John Jolet; nagios-users@lists.sourceforge.net > Subject: RE: [Nagios-users] Re: Nagios Web Plugin > > I should have pointed this out before.. I cant run it on the Host as the > host doesn't have access to the remote server I want to check.. > > Only one machine - our Production machine is authorized to connect to the > remote server.. hence I need check_http to run on the prod machine.. > > thnx > > -Original Message- > From: John Jolet [mailto:[EMAIL PROTECTED] > Sent: terça-feira, 18 de Abril de 2006 15:55 > To: Sandeep Narasimha Murthy; nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Re: Nagios Web Plugin > > > > > On 4/18/06 9:46 AM, "Sandeep Narasimha Murthy" [EMAIL PROTECTED]> > wrote: > > > Hi, > > > > Thanks for the responses. I have 2 problems using check_http : > > > > 1. check_http runs fine on my host machine but when I execute it on the > > machine I want to monitor I get the fwg error: > > > > ld.so.1: ./check_http: fatal: libssl.so.0.9.7: open failed: No such file > or > > directory > > Killed > > > > Any idea whats wrong here ?? > > > > 2. I need to obtain the output shown on the browser on invoking the GET > URL. > > > > You execute the check_http on the nagios host, pointing it at the web > server > you want to check, right? You don't run check_http ON the web server. > > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > ___ > 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] Re: Nagios Web Plugin
I should have pointed this out before.. I cant run it on the Host as the host doesn't have access to the remote server I want to check.. Only one machine - our Production machine is authorized to connect to the remote server.. hence I need check_http to run on the prod machine.. thnx -Original Message- From: John Jolet [mailto:[EMAIL PROTECTED] Sent: terça-feira, 18 de Abril de 2006 15:55 To: Sandeep Narasimha Murthy; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Re: Nagios Web Plugin On 4/18/06 9:46 AM, "Sandeep Narasimha Murthy" <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the responses. I have 2 problems using check_http : > > 1. check_http runs fine on my host machine but when I execute it on the > machine I want to monitor I get the fwg error: > > ld.so.1: ./check_http: fatal: libssl.so.0.9.7: open failed: No such file or > directory > Killed > > Any idea whats wrong here ?? > > 2. I need to obtain the output shown on the browser on invoking the GET URL. > You execute the check_http on the nagios host, pointing it at the web server you want to check, right? You don't run check_http ON the web server. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] Re: Nagios Web Plugin
On 4/18/06 9:46 AM, "Sandeep Narasimha Murthy" <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the responses. I have 2 problems using check_http : > > 1. check_http runs fine on my host machine but when I execute it on the > machine I want to monitor I get the fwg error: > > ld.so.1: ./check_http: fatal: libssl.so.0.9.7: open failed: No such file or > directory > Killed > > Any idea whats wrong here ?? > > 2. I need to obtain the output shown on the browser on invoking the GET URL. > You execute the check_http on the nagios host, pointing it at the web server you want to check, right? You don't run check_http ON the web server. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Socket Errors
I'm running Nagios 1.2 and APAN 0.3.0-sql. Recently I've changed 5 monitored Windows servers to a set of 2 hostgroups. Hostgroup A has 1 server and a CPU warning threshold of 25% Hostgroup B has 4 servers and a CPU warning threshold of 15% Since implementing this none of the 5 servers in either hostgroup has exceeded 10% CPU usage but both hostgroups occasionally (no definitive pattern of a specific server or at a specific time) give socket errors for the CPU service. So I'm getting 2-6 emails from Nagios for this. How can I fix this problem ? Thanks, Scott Lundgren ITS - Web Services UNC at Charlotte http://www.uncc.edu --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Re: Nagios Web Plugin
Hi, Thanks for the responses. I have 2 problems using check_http : 1. check_http runs fine on my host machine but when I execute it on the machine I want to monitor I get the fwg error: ld.so.1: ./check_http: fatal: libssl.so.0.9.7: open failed: No such file or directory Killed Any idea whats wrong here ?? 2. I need to obtain the output shown on the browser on invoking the GET URL. Thanks, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rene Fertig Sent: terça-feira, 18 de Abril de 2006 15:21 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Re: Nagios Web Plugin Hi. Am Dienstag, 18. April 2006 15:40 schrieb Sandeep Narasimha Murthy: > I am trying to monitor a Web Service and I am able to send a GET request > via a browser and obtain a result appropriate for Nagios. > > I am not exactly sure how to integrate this with Nagios. I could print > the output to a file and make nagios read the file but this doesn't seem > to be a very clean solution. Of cause. But I'm not sure what you really waht do do %-( With the check_http pluging you can do a lot of tests, including check the response of the web-server for a specific string. Give "check_http --help" a try to see a complete list of the posibilities. Or descibe more precisely what you like to check. Bye, Rene --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] (No output!) message
Hi all. I will make a question about the famous "(No output!)" error. I am trying to watch cpu usage on a cisco router. I am using check_snmp_load.pl from here http://www.manubulon.com/nagios/index_commands.html ### CONFIGURATION ### # checkcommands.cfg define command { command_name check_snmp_cisco_cpu command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C $ARG1$ -T cisco -w $ARG2$ -c $ARG3$ # comment community warning critical } ## services.cfg define service { name Cisco_check_cpu service_description CPU check_command check_snmp_cisco_cpu!my_community!30,300,30!40,40,40 register 0 } define service{ use Cisco_check_cpu ; Name of service template to use host_name MYHOST service_description CPU2 is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval1 contact_groups all notification_interval 240 notification_period 24x7 notification_optionsc,r check_command check_snmp_cisco_cpu } From command line, logged in as root or apache2 user, it works. However, # su - nagios whoami root ping & snmp checks work. Any idea what can cause this error? Brandino Andreas [EMAIL PROTECTED] --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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 Web Plugin
I'm using Nagios 1.2 with APAN .3-sql and that's what I'm doing. I call a wrapper shell script that calls check_http : VALUE=`$PLUGINSDIR/check_http -I $HOST -H $VHOST -p $PORT -w $WARN -c $CRIT $XARGS` RESULT=$? # debug "`date` HTTP snu, Res: $RESULT, Val: $VALUE" FOUND=`echo $VALUE|grep "|"|wc -l|awk '{print $NF}'` if [ $FOUND = 0 ]; then ERR=1 fi TIME=`echo $VALUE|awk '{print $NF}'` #RESULT=2 RES=`echo $VALUE|cut -d "|" -f 2|sed "s/time= /Time: /g"` CODE=`echo $VALUE|cut -d "|" -f 1|cut -d "-" -f 1|cut -d ":" -f 2` RETSTR="Request Response:$CODERequest $RES seconds" if [ $RESULT -gt $RETVAL ]; then RETVAL=$RESULT fi On 4/18/06 9:47 AM, "Sandeep Narasimha Murthy" <[EMAIL PROTECTED]> wrote: > I could probably use the check_http plugin or the webinject.. has anyone used > this before successfully ? > > thnx --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Re: Nagios Web Plugin
Hi. Am Dienstag, 18. April 2006 15:40 schrieb Sandeep Narasimha Murthy: > I am trying to monitor a Web Service and I am able to send a GET request > via a browser and obtain a result appropriate for Nagios. > > I am not exactly sure how to integrate this with Nagios. I could print > the output to a file and make nagios read the file but this doesn't seem > to be a very clean solution. Of cause. But I'm not sure what you really waht do do %-( With the check_http pluging you can do a lot of tests, including check the response of the web-server for a specific string. Give "check_http --help" a try to see a complete list of the posibilities. Or descibe more precisely what you like to check. Bye, Rene --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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 GUI
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy > Sent: Tuesday, April 18, 2006 3:50 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Nagios GUI > > Hi, > > We have number of servers which are being monitored using Nagios > (Version 2.0b3). Is there any way to separate/ categorize the servers > according to their platform - Production, Tests, Development etc.. ? > > On clicking the Service Detail on the left hand Menu, all servers show > up as a list. Is it possible to filter them accd to their respective > platforms ? Use hostgroups. -- Marc --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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 Web Plugin
Yes. That's basic functionality of check_http. It can GET or POST data and look for designated content in the response. -- Marc > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy > Sent: Tuesday, April 18, 2006 8:47 AM > To: nagios-users@lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios Web Plugin > > I could probably use the check_http plugin or the webinject.. has anyone > used this before successfully ? > > thnx > > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy > Sent: terça-feira, 18 de Abril de 2006 14:41 > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Nagios Web Plugin > > Hi, > > I am trying to monitor a Web Service and I am able to send a GET request > via a browser and obtain a result appropriate for Nagios. > > I am not exactly sure how to integrate this with Nagios. I could print > the output to a file and make nagios read the file but this doesn't seem > to be a very clean solution. > > Is there any other alternative ? --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] Recompiling plugins
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of ThomasC. > Sent: Tuesday, April 18, 2006 6:19 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Recompiling plugins > > Hi, > > > I made a change in the source code of the check_snmp plugin. I would > like now to recompile it. > > When i run > gcc -o check_snmp check_snmp.c i get a lot of errors. > > I know this is a question about compiling but can you help me please to > learn how to recompile transformed code in Nagios plugs. If you've already run ./configure at the very least, you can just run 'make all' then 'make install' to update any modified plugins. Coding problems are another issue altogether ;) -- Marc --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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 Web Plugin
I could probably use the check_http plugin or the webinject.. has anyone used this before successfully ? thnx -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep Narasimha Murthy Sent: terça-feira, 18 de Abril de 2006 14:41 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Web Plugin Hi, I am trying to monitor a Web Service and I am able to send a GET request via a browser and obtain a result appropriate for Nagios. I am not exactly sure how to integrate this with Nagios. I could print the output to a file and make nagios read the file but this doesn't seem to be a very clean solution. Is there any other alternative ? Tia, sg --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 ___ 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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 Web Plugin
Hi, I am trying to monitor a Web Service and I am able to send a GET request via a browser and obtain a result appropriate for Nagios. I am not exactly sure how to integrate this with Nagios. I could print the output to a file and make nagios read the file but this doesn't seem to be a very clean solution. Is there any other alternative ? Tia, sg --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] ASCII-Characters >127 stripped in macros
Hi. Since I updated to nagios 2.0 I don't see german "umlaute" (ASCII-Characters greater than 127, e.g. ä ö ü) in the notifications no more. With nagios 1.1 this worked. The characters are stripped only in the marcos (e.g. $HOSTALIAS$ or $SERVICEDESC$). In nagios.cfg the variable illegal_macro_output_chars is set to `~$&|'"<> I have just updated to nagios 2.2, but it didn't helped. Do I do anything wrong or ist it a real bug? Bye, Rene --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] Nagiosgrapher rrd problem
Ok thanks to all for your response, I tried to install Nagiosgrapher-1.4 and it works perfectly ! -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Davy Gaussen Envoyé : mardi 18 avril 2006 14:06 À : [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Objet : RE: [Nagios-users] Nagiosgrapher rrd problem Johan, I tried to remove lines in my ngraph.ncfg like you said but so far it does not seem to repair the problem. And, like you said, the daemon don't try to parse my definitions!! An other idea ?? ;-) Davy -Message d'origine- De : Johan Corsini [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 avril 2006 12:17 À : nagios-users@lists.sourceforge.net Cc : Davy Gaussen Objet : Re: [Nagios-users] Nagiosgrapher rrd problem It looks like Ngrapher is not even trying to parse the infos. I know that there is a bug with the Ngrapher version I use that makes it ignoring the "graph definitions". If there is not exactly ONE (no more, no less) blank line between two graph definitions, then one of the definitions will just be ignored. I do not know if this bug has been corrected in newer versions, if not, it might be the cause of your problems. Here is what I would do : 1) Remove every graph definitions in "ngraph.ncfg". 2) Add only one graph definition in the file. So, it would be something like : define config { pipe /var/nagios/ngraph.pipe step 60 heartbeat 300 rrdpath /var/nagios/rrd/ tmppath /tmp/nagiosgrapher/ ... } define ngraph{ service_name PING graph_log_regex perdus = ([0-9]+) graph_value Loss graph_units % graph_legend Packet Lost rrd_plottype LINE2 rrd_color ff page Packet Lost } 3) Check if it is working (at least, if it is trying to parse the datas) Johan Le Mardi 18 Avril 2006 11:07, Davy Gaussen a écrit : > Here is my service definition for PING services : > > define service { > name PING-SW-template > check_command check_ping!500.0,50%!600.0,60% > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 5 > active_checks_enabled 1 > passive_checks_enabled 1 > check_period 24x7 > parallelize_check 1 > obsess_over_service 1 > check_freshness 1 > event_handler_enabled 1 > process_perf_data 1 > notification_period 24x7 > notifications_enabled 1 > register 0 > notification_options w,u,c,r > contact_groups Switchs-admins > } > > define service { > use PING-SW-template > service_description PING > check_command check_ping!2500.0,50%!6000.0,60% > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 5 > notification_interval 0 > host_name serveur_bureautique > contact_groups Switchs-admins > } > > In ngraph.ncfg I have these lines : > > define ngraph{ > service_namePING > graph_log_regex perdus = ([0-9]+) > graph_value Loss > graph_units % > graph_legendPacket Lost > rrd_plottypeLINE2 > rrd_color ff > pagePacket Lost > } > > # Ping RTA > define ngraph{ > service_namePING > graph_log_regex RTA = ([0-9]+\.+[0-9]*) ms > graph_value RTA > graph_units ms > graph_legendTime to answer > rrd_plottypeAREA > rrd_color 00A348 > pageRTA > } > > > And in ngraph.log I have : > 2006-04-18 11:04:07 PIPE: SW-2 PINGPING OK - Paquets perdus = 0%, RTA > = 70.98 ms > 2006-04-18 11:04:08 PIPE: SW-5 PINGPING OK - Paquets perdus = 0%, RTA > = 70.12 ms > 2006-04-18 11:04:08 PIPE: Sacha Port 8081 TCP OK - 0,050 second > response time on port 8081 > time=0,049855s;0,00;0,00;0,00;60,00 > 2006-04-18 11:04:08 PIPE: SW-8 PINGPING OK - Paquets perdus = 0%, RTA > = 25.19 ms > > > I still do not have any rrd files in /var/lib/nagios/rrd . > I do not have either any RRD: log entries in ngraph.log, I don't understand > why ?? > > Do you have an idea to help me please ? > > > > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] De la part de Hugo van > der Kooij > Envoyé : vendredi 14 avril 2006 18:48 > À : nagios-users > Objet : Re: [Nagios-users] Nagiosgrapher rrd problem > > On Fri, 14 Apr 2006, Davy Gaussen wrote: > > I am trying to use Nagiosgrapher-1.5 with Nagios 2.0. > > > > I successfully i
RE: [Nagios-users] Nagiosgrapher rrd problem
Johan, I tried to remove lines in my ngraph.ncfg like you said but so far it does not seem to repair the problem. And, like you said, the daemon don't try to parse my definitions!! An other idea ?? ;-) Davy -Message d'origine- De : Johan Corsini [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 avril 2006 12:17 À : nagios-users@lists.sourceforge.net Cc : Davy Gaussen Objet : Re: [Nagios-users] Nagiosgrapher rrd problem It looks like Ngrapher is not even trying to parse the infos. I know that there is a bug with the Ngrapher version I use that makes it ignoring the "graph definitions". If there is not exactly ONE (no more, no less) blank line between two graph definitions, then one of the definitions will just be ignored. I do not know if this bug has been corrected in newer versions, if not, it might be the cause of your problems. Here is what I would do : 1) Remove every graph definitions in "ngraph.ncfg". 2) Add only one graph definition in the file. So, it would be something like : define config { pipe /var/nagios/ngraph.pipe step 60 heartbeat 300 rrdpath /var/nagios/rrd/ tmppath /tmp/nagiosgrapher/ ... } define ngraph{ service_name PING graph_log_regex perdus = ([0-9]+) graph_value Loss graph_units % graph_legend Packet Lost rrd_plottype LINE2 rrd_color ff page Packet Lost } 3) Check if it is working (at least, if it is trying to parse the datas) Johan Le Mardi 18 Avril 2006 11:07, Davy Gaussen a écrit : > Here is my service definition for PING services : > > define service { > name PING-SW-template > check_command check_ping!500.0,50%!600.0,60% > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 5 > active_checks_enabled 1 > passive_checks_enabled 1 > check_period 24x7 > parallelize_check 1 > obsess_over_service 1 > check_freshness 1 > event_handler_enabled 1 > process_perf_data 1 > notification_period 24x7 > notifications_enabled 1 > register 0 > notification_options w,u,c,r > contact_groups Switchs-admins > } > > define service { > use PING-SW-template > service_description PING > check_command check_ping!2500.0,50%!6000.0,60% > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 5 > notification_interval 0 > host_name serveur_bureautique > contact_groups Switchs-admins > } > > In ngraph.ncfg I have these lines : > > define ngraph{ > service_namePING > graph_log_regex perdus = ([0-9]+) > graph_value Loss > graph_units % > graph_legendPacket Lost > rrd_plottypeLINE2 > rrd_color ff > pagePacket Lost > } > > # Ping RTA > define ngraph{ > service_namePING > graph_log_regex RTA = ([0-9]+\.+[0-9]*) ms > graph_value RTA > graph_units ms > graph_legendTime to answer > rrd_plottypeAREA > rrd_color 00A348 > pageRTA > } > > > And in ngraph.log I have : > 2006-04-18 11:04:07 PIPE: SW-2 PINGPING OK - Paquets perdus = 0%, RTA > = 70.98 ms > 2006-04-18 11:04:08 PIPE: SW-5 PINGPING OK - Paquets perdus = 0%, RTA > = 70.12 ms > 2006-04-18 11:04:08 PIPE: Sacha Port 8081 TCP OK - 0,050 second > response time on port 8081 > time=0,049855s;0,00;0,00;0,00;60,00 > 2006-04-18 11:04:08 PIPE: SW-8 PINGPING OK - Paquets perdus = 0%, RTA > = 25.19 ms > > > I still do not have any rrd files in /var/lib/nagios/rrd . > I do not have either any RRD: log entries in ngraph.log, I don't understand > why ?? > > Do you have an idea to help me please ? > > > > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] De la part de Hugo van > der Kooij > Envoyé : vendredi 14 avril 2006 18:48 > À : nagios-users > Objet : Re: [Nagios-users] Nagiosgrapher rrd problem > > On Fri, 14 Apr 2006, Davy Gaussen wrote: > > I am trying to use Nagiosgrapher-1.5 with Nagios 2.0. > > > > I successfully install nagiosgrapher but I didn't have any rrd files in > > /var/lib/nagios/rrd. > > Which are only created after you setup service-type definitions and your > first data is added to the named pipe. > > > I never have a line with < RRD : create rrd file > or something. > > > > Someone have an idea on this please ?? I am quite lost ! > > Show us the N
Vedr.: [Nagios-users] Recompiling plugins
The error indicates that you need to have some more files present before starting to compile. Download the entire plugins tar from the website, extract, copy your changed sourcefile and issue the make command. Med venlig hilsen Ekstern konsulent Christian Kammer Have Bispebjerg Hospital MIT (Mediko, Informatik & Tele) Bispebjerg Bakke 23 2400 København NV mobil: 2044 0125 E-mail: [EMAIL PROTECTED] "ThomasC." <[EMAIL PROTECTED]> Sendt af: [EMAIL PROTECTED] 18-04-2006 13:18 Besvar venligst til shoktai-nospam Til: nagios-users@lists.sourceforge.net cc: Vedr.: [Nagios-users] Recompiling plugins Hi, I made a change in the source code of the check_snmp plugin. I would like now to recompile it. When i run gcc -o check_snmp check_snmp.c i get a lot of errors. I know this is a question about compiling but can you help me please to learn how to recompile transformed code in Nagios plugs. Thanks a lot. The errors are : In file included from check_snmp.c:26: common.h:35:20: error: config.h: No such file or directory In file included from check_snmp.c:26: common.h:146: error: syntax error before 'va_list' common.h:187:21: error: gettext.h: No such file or directory In file included from check_snmp.c:27: utils.h:30: error: syntax error before 'timeout_alarm_handler' utils.h:30: warning: data definition has no type or storage class utils.h:53: error: redefinition of 'struct timeval' utils.h:60: warning: 'struct timezone' declared inside parameter list utils.h:60: warning: its scope is only this definition or declaration, which is probably not what you want In file included from check_snmp.c:28: popen.h:9: error: syntax error before 'popen_timeout_alarm_handler' popen.h:9: warning: data definition has no type or storage class check_snmp.c: In function 'main': check_snmp.c:145: error: 'LC_ALL' undeclared (first use in this function) check_snmp.c:145: error: (Each undeclared identifier is reported only once check_snmp.c:145: error: for each function it appears in.) check_snmp.c:146: error: 'PACKAGE' undeclared (first use in this function) check_snmp.c:146: error: 'LOCALEDIR' undeclared (first use in this function) check_snmp.c:155: warning: incompatible implicit declaration of built-in function 'strdup' check_snmp.c:168: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:173: error: 'PATH_TO_SNMPGETNEXT' undeclared (first use in this function) check_snmp.c:178: error: 'PATH_TO_SNMPGET' undeclared (first use in this function) check_snmp.c:206: warning: incompatible implicit declaration of built-in function 'strcat' check_snmp.c:206: error: 'perfstr' undeclared (first use in this function) check_snmp.c:210: warning: incompatible implicit declaration of built-in function 'strstr' check_snmp.c:211: warning: incompatible implicit declaration of built-in function 'strncat' check_snmp.c:217: warning: incompatible implicit declaration of built-in function 'strlen' check_snmp.c:218: warning: incompatible implicit declaration of built-in function 'strspn' check_snmp.c:225: warning: incompatible implicit declaration of built-in function 'strpbrk' check_snmp.c:230: warning: incompatible implicit declaration of built-in function 'strpbrk' check_snmp.c:251: warning: incompatible implicit declaration of built-in function 'strcpy' check_snmp.c:276: warning: incompatible implicit declaration of built-in function 'strpbrk' check_snmp.c: In function 'process_arguments': check_snmp.c:416: warning: incompatible implicit declaration of built-in function 'strcpy' check_snmp.c:432: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:486: warning: incompatible implicit declaration of built-in function 'strspn' check_snmp.c:486: warning: incompatible implicit declaration of built-in function 'strlen' check_snmp.c:493: warning: incompatible implicit declaration of built-in function 'index' check_snmp.c:504: warning: incompatible implicit declaration of built-in function 'index' check_snmp.c:524: warning: incompatible implicit declaration of built-in function 'index' check_snmp.c:539: warning: incompatible implicit declaration of built-in function 'strncpy' check_snmp.c:586: warning: incompatible implicit declaration of built-in function 'strstr' check_snmp.c:640: warning: incompatible implicit declaration of built-in function 'strdup' check_snmp.c: In function 'validate_arguments': check_snmp.c:674: warning: incompatible implicit declaration of built-in function 'strdup' check_snmp.c:707: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:715: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:724: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c: In function 'clarify_message': check_snmp.c:739: warning: incompatible implicit declaration of built-in function 'strcpy
[Nagios-users] Recompiling plugins
Hi, I made a change in the source code of the check_snmp plugin. I would like now to recompile it. When i run gcc -o check_snmp check_snmp.c i get a lot of errors. I know this is a question about compiling but can you help me please to learn how to recompile transformed code in Nagios plugs. Thanks a lot. The errors are : In file included from check_snmp.c:26: common.h:35:20: error: config.h: No such file or directory In file included from check_snmp.c:26: common.h:146: error: syntax error before 'va_list' common.h:187:21: error: gettext.h: No such file or directory In file included from check_snmp.c:27: utils.h:30: error: syntax error before 'timeout_alarm_handler' utils.h:30: warning: data definition has no type or storage class utils.h:53: error: redefinition of 'struct timeval' utils.h:60: warning: 'struct timezone' declared inside parameter list utils.h:60: warning: its scope is only this definition or declaration, which is probably not what you want In file included from check_snmp.c:28: popen.h:9: error: syntax error before 'popen_timeout_alarm_handler' popen.h:9: warning: data definition has no type or storage class check_snmp.c: In function 'main': check_snmp.c:145: error: 'LC_ALL' undeclared (first use in this function) check_snmp.c:145: error: (Each undeclared identifier is reported only once check_snmp.c:145: error: for each function it appears in.) check_snmp.c:146: error: 'PACKAGE' undeclared (first use in this function) check_snmp.c:146: error: 'LOCALEDIR' undeclared (first use in this function) check_snmp.c:155: warning: incompatible implicit declaration of built-in function 'strdup' check_snmp.c:168: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:173: error: 'PATH_TO_SNMPGETNEXT' undeclared (first use in this function) check_snmp.c:178: error: 'PATH_TO_SNMPGET' undeclared (first use in this function) check_snmp.c:206: warning: incompatible implicit declaration of built-in function 'strcat' check_snmp.c:206: error: 'perfstr' undeclared (first use in this function) check_snmp.c:210: warning: incompatible implicit declaration of built-in function 'strstr' check_snmp.c:211: warning: incompatible implicit declaration of built-in function 'strncat' check_snmp.c:217: warning: incompatible implicit declaration of built-in function 'strlen' check_snmp.c:218: warning: incompatible implicit declaration of built-in function 'strspn' check_snmp.c:225: warning: incompatible implicit declaration of built-in function 'strpbrk' check_snmp.c:230: warning: incompatible implicit declaration of built-in function 'strpbrk' check_snmp.c:251: warning: incompatible implicit declaration of built-in function 'strcpy' check_snmp.c:276: warning: incompatible implicit declaration of built-in function 'strpbrk' check_snmp.c: In function 'process_arguments': check_snmp.c:416: warning: incompatible implicit declaration of built-in function 'strcpy' check_snmp.c:432: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:486: warning: incompatible implicit declaration of built-in function 'strspn' check_snmp.c:486: warning: incompatible implicit declaration of built-in function 'strlen' check_snmp.c:493: warning: incompatible implicit declaration of built-in function 'index' check_snmp.c:504: warning: incompatible implicit declaration of built-in function 'index' check_snmp.c:524: warning: incompatible implicit declaration of built-in function 'index' check_snmp.c:539: warning: incompatible implicit declaration of built-in function 'strncpy' check_snmp.c:586: warning: incompatible implicit declaration of built-in function 'strstr' check_snmp.c:640: warning: incompatible implicit declaration of built-in function 'strdup' check_snmp.c: In function 'validate_arguments': check_snmp.c:674: warning: incompatible implicit declaration of built-in function 'strdup' check_snmp.c:707: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:715: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c:724: warning: incompatible implicit declaration of built-in function 'gettext' check_snmp.c: In function 'clarify_message': check_snmp.c:739: warning: incompatible implicit declaration of built-in function 'strcpy' check_snmp.c:741: warning: assignment makes pointer from integer without a cast check_snmp.c:742: warning: assignment makes pointer from integer without a cast check_snmp.c: In function 'lu_getll': check_snmp.c:817: warning: incompatible implicit declaration of built-in function 'strchr' check_snmp.c: In function 'thisarg': check_snmp.c:849: warning: incompatible implicit declaration of built-in function 'strspn' check_snmp.c:850: warning: incompatible implicit declaration of built-in function 'strstr' check_snmp.c:851: warning: incompatible implicit declaration of built-in function 'strlen' check_snmp.c:852: warning: incompatible implicit dec
Re: [Nagios-users] API's .
We made it KISS (keep it stupid & simple): Our framework here uses the external command interface of nagios. (I think its a pipe...usually under ~nagios/var/rw/nagios.cmd). Find a description under: http://nagios.org/developerinfo/externalcommands/commandlist.php Matthias rash schrieb: > Hi , I am in the process of writing a nagios connector to integrate with > our exisiting framework. Could you please send me the link for different > programmatic interface that Nagios has and where I could download it. > > Thanks in advance. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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 GUI
You can create some groups of hosts and groups of services. HTH Regards Pascal - Original Message - From: "Sandeep Narasimha Murthy" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 18, 2006 10:49 AM Subject: [Nagios-users] Nagios GUI Hi, We have number of servers which are being monitored using Nagios (Version 2.0b3). Is there any way to separate/ categorize the servers according to their platform - Production, Tests, Development etc.. ? On clicking the Service Detail on the left hand Menu, all servers show up as a list. Is it possible to filter them accd to their respective platforms ? Thanks, sg --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 ___ 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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 GUI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sandeep Narasimha Murthy schrieb am 18.04.2006 10:49: > Hi, > > We have number of servers which are being monitored using Nagios > (Version 2.0b3). Is there any way to separate/ categorize the servers > according to their platform - Production, Tests, Development etc.. ? > > On clicking the Service Detail on the left hand Menu, all servers show > up as a list. Is it possible to filter them accd to their respective > platforms ? > > Thanks, > > sg Hi sg, you may define some "pseudo hosts" with IP 127.0.0.1 and call them "production", "devel" and so on to meet your needs. Then you enter these pseudo hosts as parent in the host definition. After a restart of nagios you will see them in the status map in fine order ;-) When you want some ordering in e. g. "Status Overview", you should consider to read the manual where "hostgroups" are handled ;-) HTH, Werner - -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-3921 - Fax (0341) 235-453921 http://www.ufz.de - eMail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFERKzpk33Krq8b42MRAnxPAJ96hWIQCdCSPxx4n4Q5OZ6uuL06kwCfamO3 z2Hu8BEi12sQzSTF/nGxsp8= =MQfs -END PGP SIGNATURE- --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ 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] Nagiosgrapher rrd problem
Here is my service definition for PING services : define service { name PING-SW-template check_command check_ping!500.0,50%!600.0,60% max_check_attempts 3 normal_check_interval 5 retry_check_interval 5 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 event_handler_enabled 1 process_perf_data 1 notification_period 24x7 notifications_enabled 1 register 0 notification_options w,u,c,r contact_groups Switchs-admins } define service { use PING-SW-template service_description PING check_command check_ping!2500.0,50%!6000.0,60% max_check_attempts 3 normal_check_interval 5 retry_check_interval 5 notification_interval 0 host_name serveur_bureautique contact_groups Switchs-admins } In ngraph.ncfg I have these lines : define ngraph{ service_namePING graph_log_regex perdus = ([0-9]+) graph_value Loss graph_units % graph_legendPacket Lost rrd_plottypeLINE2 rrd_color ff pagePacket Lost } # Ping RTA define ngraph{ service_namePING graph_log_regex RTA = ([0-9]+\.+[0-9]*) ms graph_value RTA graph_units ms graph_legendTime to answer rrd_plottypeAREA rrd_color 00A348 pageRTA } And in ngraph.log I have : 2006-04-18 11:04:07 PIPE: SW-2 PINGPING OK - Paquets perdus = 0%, RTA = 70.98 ms 2006-04-18 11:04:08 PIPE: SW-5 PINGPING OK - Paquets perdus = 0%, RTA = 70.12 ms 2006-04-18 11:04:08 PIPE: Sacha Port 8081 TCP OK - 0,050 second response time on port 8081 time=0,049855s;0,00;0,00;0,00;60,00 2006-04-18 11:04:08 PIPE: SW-8 PINGPING OK - Paquets perdus = 0%, RTA = 25.19 ms I still do not have any rrd files in /var/lib/nagios/rrd . I do not have either any RRD: log entries in ngraph.log, I don't understand why ?? Do you have an idea to help me please ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Hugo van der Kooij Envoyé : vendredi 14 avril 2006 18:48 À : nagios-users Objet : Re: [Nagios-users] Nagiosgrapher rrd problem On Fri, 14 Apr 2006, Davy Gaussen wrote: > I am trying to use Nagiosgrapher-1.5 with Nagios 2.0. > > I successfully install nagiosgrapher but I didn't have any rrd files in > /var/lib/nagios/rrd. Which are only created after you setup service-type definitions and your first data is added to the named pipe. > I never have a line with < RRD : create rrd file > or something. > > Someone have an idea on this please ?? I am quite lost ! Show us the Nagiosgrapher definitions for your service-types. There are samples present but you must define them and match the names. In fact the whole thing is documented but it takes some reading to get the hang of it. For example. 1. My service definition: define service { use service-template host_name arwen service_description PING check_command check_ping!10,20%!20,40% contact_groups waakhond-net } 2. Suitable ngrapg.ncfg section: define ngraph{ service_namePING graph_log_regex loss = ([0-9]+) graph_value Loss graph_units % graph_legendPacket Lost rrd_plottypeLINE2 rrd_color ff pagePacket Lost } # Ping RTA define ngraph{ service_namePING graph_log_regex rta = ([0-9]+\.+[0-9]*) ms graph_value RTA graph_units ms graph_legendTime to answer rrd_plottypeAREA rrd_color 00A348 pageRTA } Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Nagios-users mailing li
Re: [Nagios-users] execute a program with NRPE
Hi, I tried to open my ssh session with plink.exe In my nrpe.cfg file I wrote: --- command[plink]=c:\nrpe\plink.exe -load "myprofile" -l "mylogin" -pw "mypassword" --- If I try this command on the windows server, it works. But if I try with the check_nrpe command it doesn't. In the nrpe_nt logfile, the error returned is: "command completed with return code 1" If I understand well, check_nrpe is waiting for a return code that plink doesn't give (?). How can I solve this problem ? WBS Subhendu Ghosh wrote: > On Mon, 17 Apr 2006, tdelunel wrote: > > > Thank you for your reply, > > > > The NRPE user I configured in the nrpe.cfg file is "nagios": > > nrpe_user=nagios > > nrpe_group=nagios > > > > Putty is on the windows 2000 server, and the session is opened by an > "admin" > > user. > > What I want is to execute putty with this command: > > - > > putty.exe -ssh @IP -load "myprofile" -l "mylogin" -pw "mypassword" > > - > > > > How can I configure NRPE for having the same user name than my windows > > session ? What I have to do ? > > The windows user name is of that kind: "MySociety\admin" > > > Why do you want NRPE to open the SSH window? > > Plink offer a much better batch ssh functionality. > > Also if the plugin does not exit within the default timeout - Nagios will > get an unknown error code. > > > > >> Subhendu Ghosh wrote : > >> > >> Putty needs access to the Desktop to open the window - is the NRPE user > >> same as the desktop/console user? > >> > >> If you are trying to run another ssh session form the windows host, try > >> plink (command line ssh) that is part of the putty package. > >> > > tdelunel wrote > > > >>> Hi, > >>> I'm using a v2 of nagios and check_nrpe and nrpe_nt.exe 0.8. > >>> I have some troubles with starting an .exe on a remote windows 2000 > >>> Server. > >>> Here is my config: > >>> nrpe.cfg > >>> --- > >>> allowed_hosts=127.0.0.1,@IPnagios > >>> dont_blame_nrpe=1 > >>> debug=1 > >>> command[putty]=c:\nrpe\putty.exe > >>> --- > >>> Other parameters are set to default. > >>> > >>> On the Monitoring Computer i use the command: > >>> > >>> ./chek_nrpe -H @ipHost -c putty > >>> > >>> After 10 seconds i receive the following message: > >>> CHECK_NRPE: Socket timeout after 10 seconds > >>> > >>> In the nrpe_nt log file on the remote host: > >>> "Host is askng command 'putty' to be run" > >>> "Running command: c:\nrpe\putty.exe" > >>> "Command completed with return code 5" > >>> "Bad return code for [The check didn't respond within the timeout]" > >>> > >>> Putty is not started, but if I open the task manager, I can see that > >>> putty.exe is present. > >>> If I try to kill the process, i receive the message "Acces Denied". > >>> In parallele, i tried to start a windows service (W32Time i.e) remotely. > >>> So i copied the "sc.exe" file from a windows XP on my 2000 server, and i > >>> wrote my command into the nrpe.cfg: > >>> - > >>> command[start_service]=c:\nrpe\sc.exe start "W32Time" > >>> command[stop_service]=c:\nrpe\sc.exe stop "W32Time" > >>> - > >>> Then i sent the command: > >>> ./check_nrpe -H @ipHost -c stop_service > >>> ./check_nrpe -H @ipHost -c start_service > >>> > >>> The both commands work, it stops and restart my service correctly. > >>> > >>> I don't understand why my command for putty doesn't work... > >>> Did I forget something in the configuration ? > >>> Help please ...! > >>> > >> > > > > > > > > --- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > > that extends applications into web and mobile media. Attend the live > webcast > > and join the prime developer group breaking into this new coding territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > ___ > > 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 xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > ___ > 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 GUI
On Mar 18 avril 2006 10:49, Sandeep Narasimha Murthy wrote: > Hi, Hi, > We have number of servers which are being monitored using Nagios > (Version 2.0b3). Is there any way to separate/ categorize the servers > according to their platform - Production, Tests, Development etc.. ? Usuallu, i prefix name of servers by platform name and type : Production_Www_Linux1 Production_Db_Linux2 Tests_Www_Linux1 Tests_FileShare_Linux2 ... Regards. -- Cédric Temple - Linagora http://www.linagora.com 30, rue Saint Augustin 75002 Paris Cedex --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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 GUI
Hi, We have number of servers which are being monitored using Nagios (Version 2.0b3). Is there any way to separate/ categorize the servers according to their platform - Production, Tests, Development etc.. ? On clicking the Service Detail on the left hand Menu, all servers show up as a list. Is it possible to filter them accd to their respective platforms ? Thanks, sg --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ 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] Small Doc-Error about "sticky bits"
IMHO the file http://nagios.sourceforge.net/docs/2_0/commandfile.html talks about "sticky bits" but it should call them SGID-bit. drwxrws--- is SGID and has the desired efect of setting the Groups Ownership on newly created files. drwxrwxrwt is the sticky-bit and allows only the owner of a file to modify it. The examples given in this FAQ are correct and like the whole nagios documentaion its brilliant - thanks by the way, to the ones who wrote it! HTH Ingo.