[Nagios-users-br] hosts.cfg + alias
Amigos, a dúvida é fútil, eu sei, mas está fazendo diferença para os operadores do Nagios aqui da empresa. Monitoro aproximadamente 130 links com o Nagios, e dentro de cada serviço tem a especificação da LP, ID, Mascara e tal de cada link/router só que o alias escreve tudo 'corrido' sem identação. Existe alguma forma de identar o texto do alias para ficar por exemplo assim: LP: - ID: */** Mascara: ***.***.***.*** ao invés de ficar como fica normalmente que é assim: LP: - ID: */** Mascara: ***.***.***.*** agradeço a atenção Harlei Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki
Re: [Nagios-users-br] Nagios encaminhando e-mail de warning equivocado.
Parece que são duas instâncias nagios rodando. Já vi o nagios endoidecer assim por causa disso. pkill -9 nagios /etc/init.d/nagios stop; ps -fu nagios (garantindo que todos os processos morreram) /etc/init.d/nagios start HTH, Marcel 2008/8/5 francisco fabio aquino alves [EMAIL PROTECTED] Boa tarde a todos, creio que meu nagios tenha enlouquecido de um dia para o outro, alem, de não registrar os historicos, ele agora esta encaminhando mais de 1000 mensagens de warning por dia para o meu e-mail, mensagens essas que não deveriam ocorrer por que são de check_hd, porem o HD esta mais da metade vazio, já foram limpos todos os caches no /var/spool e ele ainda continua mandando os e-mail. Alguem poderia me dar uma ajuda, por que enquanto isso vou ter que comentar os 2 host's que estão disparando essas mensagens. Detalhe que são somente 2 de mais de 30 que são monitorados. Obrigado! _ Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger! http://www.amigosdomessenger.com.br/ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Nagios-users-br@lists.sourceforge.net mailing list https://lists.sourceforge.net/lists/listinfo/nagios-users-br Wiki: http://nagios-br.sf.net/wiki
[Nagios-users] AIX monitor
I have a linux server RHEL5 64bit running cacti/nagios, I am in process to capture the snmp data of my AIX5.3 clients (10x), any help how to proceed with this. -- Your search - madunix - did not match any documents. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE on client doesn't recognize SSL
There are two machines: Machine 1: Monitor Server with nagios and NRPE plugin. Prompt is . FreeBSD 6 Machine 2: Previously was monitored using nagios, but now i want it to be monitored remotely using NRPE. Still have nagios installed. Prompt is sysadmin#. FreeBSD 7 Both machines have 2.12 versions of nagios and NRPE. == Installting NRPE == sysadmin# ls .cshrc .k5login.login .mysql_history .sshnrpe-2.12.tar.gz .history.lesshst.mc .profilemboxtemplates sysadmin# tar -xzvf nrpe-2.12.tar.gz x nrpe-2.12/ x nrpe-2.12/contrib/ x nrpe-2.12/contrib/README.nrpe_check_control x nrpe-2.12/contrib/nrpe_check_control.c x nrpe-2.12/.cvsignore x nrpe-2.12/Changelog x nrpe-2.12/LEGAL x nrpe-2.12/Makefile.in x nrpe-2.12/README x nrpe-2.12/README.SSL x nrpe-2.12/SECURITY x nrpe-2.12/config.guess x nrpe-2.12/config.sub x nrpe-2.12/configure x nrpe-2.12/configure.in x nrpe-2.12/init-script.debian.in x nrpe-2.12/init-script.in x nrpe-2.12/init-script.suse.in x nrpe-2.12/install-sh x nrpe-2.12/nrpe.spec x nrpe-2.12/subst.in x nrpe-2.12/update-version x nrpe-2.12/docs/ x nrpe-2.12/docs/NRPE.odt x nrpe-2.12/docs/NRPE.pdf x nrpe-2.12/include/ x nrpe-2.12/include/common.h x nrpe-2.12/include/config.h.in x nrpe-2.12/include/dh.h x nrpe-2.12/include/nrpe.h x nrpe-2.12/include/utils.h x nrpe-2.12/sample-config/ x nrpe-2.12/sample-config/nrpe.cfg.in x nrpe-2.12/sample-config/nrpe.xinetd.in x nrpe-2.12/src/ x nrpe-2.12/src/.cvsignore x nrpe-2.12/src/Makefile.in x nrpe-2.12/src/check_nrpe.c x nrpe-2.12/src/nrpe.c x nrpe-2.12/src/snprintf.c x nrpe-2.12/src/utils.c sysadmin# cd nrpe-2.12 sysadmin# ls .cvsignore README config.sub docs init-script.suse.in src Changelog README.SSL configure include install-sh subst.in LEGAL SECURITYconfigure.in init-script.debian.in nrpe.spec update-version Makefile.in config.guesscontrib init-script.in sample-config sysadmin# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i386-unknown-freebsd7.0 checking host system type... i386-unknown-freebsd7.0 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking for inttypes.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for stdint.h... (cached) yes checking for strings.h... (cached) yes checking for string.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking tcpd.h usability... yes checking tcpd.h presence... yes checking for tcpd.h... yes checking for unistd.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking socket.h usability... no checking socket.h presence... no checking for socket.h... no
[Nagios-users] Nagios freshness checks randomly think check results are from 1973.
I'm having this exact same issue on two different Nagios servers. One running Fedora and one running Ubuntu. It is driving me crazy. An SNMP Trap is received for a backup job. It is properly translated and ultimately received by Nagios. I have a freshness check in place for the service that will create a critical alert if a check is not received every 26 hours. For whatever reason, the check is run right after the alert is received and it think the results are 12K+ days old. It seems to periodically think the results are from 11-08-1973. This is an ongoing issue on both servers, but certainly isn't the norm. Typically the freshness checks work great. However, about once or twice a week, I see this behavior on random checks. Here is an example: From the Nagios web interface [08-10-2008 00:06:07] SERVICE ALERT: HHA_Backups;Backup_Incremental;CRITICAL;HARD;3;CRITICAL: Results of backup job were not reported! [08-10-2008 00:05:47] SERVICE ALERT: HHA_Backups;Backup_Incremental;WARNING;SOFT;2;The job completed successfully. However, the following conditions were encountered: 1 files were skipped. A snapshot operation required by this job was unsuccessful. Check the job log and the Windows Event Viewer for additional information. From nagios.log [1218341147] PASSIVE SERVICE CHECK: HHA_Backups;Backup_Incremental;1;The job completed successfully. However, the following conditions were encountered: 1 files were skipped. A snapshot operation required by this job was unsuccessful. Check the job log and the Windows Event Viewer for additional information. [1218341147] SERVICE ALERT: HHA_Backups;Backup_Incremental;WARNING;SOFT;2;The job completed successfully. However, the following conditions were encountered: 1 files were skipped. A snapshot operation required by this job was unsuccessful. Check the job log and the Windows Event Viewer for additional information. [1218341166] Warning: The results of service 'Backup_Incremental' on host 'HHA_Backups' are stale by 12689d 23h 17m 32s (threshold=1d 2h 0m 0s). I'm forcing an immediate check of the service. [1218341167] SERVICE ALERT: HHA_Backups;Backup_Incremental;CRITICAL;HARD;3;CRITICAL: Results of backup job were not reported! Any ideas? Thanks! - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ 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] Why can't I Handle alerts?
[Unthreaded, cause it's not really about the noises anymore] [Now with 100% more unthreading..] After discovering that the Quicktime that Firefox 3 will download for you *will not run* on Win2k (it's too new, you need 7.1.6) *and* that FF3 *blocks* that version for you because it crashes their build, and they can't be bothered to find out why, I finally have FF playing alert noises. Every time. Even though I'm on the Service Problems - Unhandled screen, and I've gone into each service and acknowledged it. Sticky. They're still there. They're still be-bonging. (on the status page, not the tac page) Anyone got any ideas what stupid thing I'm missing? Audio Alerts on the CGI doco page is the only easily accessible place that talks about them, and I'm not clear from it why that's happening... unless it's that my tac page thinks they're still unhandled problems, even though I've acknowledged them. Do acknowledge and handle really not mean the same thing? Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Josef Stalin) - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Any plugin for a TroubleTicketing System for Nagios??
Hi, Just wanted to know, is there any trouble ticketing system to which we can integrate alerts from Nagios?? 1.Any specific plugin developed for BMC's Remedy?? 2.Pls let me know any alternative Trouble ticketing system which can be integrated with Nagios. Thanks in advance.. Regds Chetan - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ 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] Any plugin for a TroubleTicketing System for Nagios??
Hi Chetan Just wanted to know, is there any trouble ticketing system to which we can integrate alerts from Nagios?? 1.Any specific plugin developed for BMC's Remedy?? 2.Pls let me know any alternative Trouble ticketing system which can be integrated with Nagios. It's pretty darn easy to make Nagios generate e-mails, so you can trivially integrate it with something like RT or OTRS. Alex - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Any plugin for a TroubleTicketing System for Nagios??
Hi Alex, Thanks for the quick inputs! I am aware that nagios can send e-mails. But I had few doubts regarding the email feature.. How does Nagios send emails? Does it internally support an SMTP server?? I am asking this question specifically because, if we go ahead with approach advised by you ( RT or OTRS), does a SMTP server come to picture? Pls enlighten me !! Regds Chetan On 8/10/08, Alex Howells [EMAIL PROTECTED] wrote: Hi Chetan Just wanted to know, is there any trouble ticketing system to which we can integrate alerts from Nagios?? 1.Any specific plugin developed for BMC's Remedy?? 2.Pls let me know any alternative Trouble ticketing system which can be integrated with Nagios. It's pretty darn easy to make Nagios generate e-mails, so you can trivially integrate it with something like RT or OTRS. Alex - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ 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] Any plugin for a TroubleTicketing System for Nagios??
Thanks for the quick inputs! I am aware that nagios can send e-mails. But I had few doubts regarding the email feature.. How does Nagios send emails? Does it internally support an SMTP server?? I am asking this question specifically because, if we go ahead with approach advised by you ( RT or OTRS), does a SMTP server come to picture? Pls enlighten me !! Regds Chetan On 8/10/08, Alex Howells [EMAIL PROTECTED] wrote: Hi Chetan Just wanted to know, is there any trouble ticketing system to which we can integrate alerts from Nagios?? 1.Any specific plugin developed for BMC's Remedy?? 2.Pls let me know any alternative Trouble ticketing system which can be integrated with Nagios. It's pretty darn easy to make Nagios generate e-mails, so you can trivially integrate it with something like RT or OTRS. Alex - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ 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] Any plugin for a TroubleTicketing System for Nagios??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/08/08 01:18 PM, Chetan Mahadev wrote: Hi Alex, Thanks for the quick inputs! I am aware that nagios can send e-mails. But I had few doubts regarding the email feature.. How does Nagios send emails? Does it internally support an SMTP server?? I am asking this question specifically because, if we go ahead with approach advised by you ( RT or OTRS), does a SMTP server come to picture? You will usually have a local smtp server (sendmail, postfix) that will work on it's own or use a smart relay. There are likely commands/utility that will connect directly to a remote SMTP server too. Nagios does not know anything about SMTP, it just runs commands. Make a command or script that sent your emails and just set it up in Nagios. FYI in my setups Nagios have it own SMTP server so that if the mail system does down we can still alert about it. In addition we also pull contact emails automatically from Active Directory groups, so we don't have to play with configuration files every time something changes. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFInyYK6dZ+Kt5BchYRAg3oAKDkBI8XIZUSAr1B/RyVYXuQyvnKrACgjyGf 2JeNZ+w3z1X0nTXvNKAOUJM= =Ymtq -END PGP SIGNATURE- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Any plugin for a TroubleTicketing System for Nagios??
On Sun, 2008-08-10 at 13:31 -0400, Thomas Guyot-Sionnest wrote: FYI in my setups Nagios have it own SMTP server so that if the mail SMTP sounds nice, except in general it really isnt :) You'll need a discriminating logic check to selectively generate tickets for hosts/service status changes. For example, the health check on your CMS system probably shouldn't try to generate a CMS ticket. Maybe a special contact group and/or regex matching in your notify_command. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 freshness checks randomly think check results are from 1973.
On Sun, 2008-08-10 at 10:46 -0400, fevin Kagen wrote: I'm having this exact same issue on two different Nagios servers. One running Fedora and one running Ubuntu. It is You're running the amd64/x86_64 kernel/userland on these platforms, right? ~BAS - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 freshness checks randomly think check results are from 1973.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/08/08 10:46 AM, fevin Kagen wrote: I'm having this exact same issue on two different Nagios servers. One running Fedora and one running Ubuntu. It is driving me crazy. An SNMP Trap is received for a backup job. It is properly translated and ultimately received by Nagios. I have a freshness check in place for the service that will create a critical alert if a check is not received every 26 hours. For whatever reason, the check is run right after the alert is received and it think the results are 12K+ days old. It seems to periodically think the results are from 11-08-1973. This is an ongoing issue on both servers, but certainly isn't the norm. Typically the freshness checks work great. However, about once or twice a week, I see this behavior on random checks. Here is an example: There's something wrong with the script/process returning these passive check. The passive check returned to the Nagios command pipe has the following format: [timestamp] PROCESS_PASSIVE_CHECK_RESULT;hostname;service_name;return_code;status_text The timestamp is a normal UNIX timestamp (seconds since EPOCH) and determine the time at which the check was performed. If you return an invalid/too old timestamp, Nagios will think the service is that old and trigger the freshness check. I believe a possible way to receive such old timestamps is if you have a server with invalid date (i.e. in the 1972's) using send_nsca, where the nsca daemon would be set up with max_packet_age=0. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFInzV06dZ+Kt5BchYRAn7yAKC9hSQEsPiPlFrfJwIbIdgA7AoTgQCg+eDr h5VTjSAp849z3OaTYDj7Las= =qctW -END PGP SIGNATURE- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Any plugin for a TroubleTicketing System for Nagios??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chetan Mahadev wrote: | Just wanted to know, is there any trouble ticketing system to which we | can integrate alerts from Nagios?? The issue at hand has been asked and answered on the mailinglist. You might want to study the archives to see what sort of solutions people have proposed and if they fit your setup. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIn1CaBvzDRVjxmYERAonJAJ9TG0+EDQQ9gLiLQfkM2bpDOtMDEwCfanx1 KiosHn1/Od+4qOdWmiWrvuA= =0Xg0 -END PGP SIGNATURE- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 freshness checks randomly think check results are from 1973.
Thanks for the quick reply. My date is correct on both servers, but I am using the same two scripts on both. This could certainly be causing the issue. They are modified versions of Francois Meehan's snmptraphandling.py. I don't know this first thing about python so I just hacked around until I got them working the way I wanted. I don't think I changed anything to deal w/ time and date handling, but who knows. Here is one of the scripts --- #!/usr/bin/python -u Written by Francois Meehan (Cedval Info) First release 2004/09/15 This script receives input from sec.pl concerning translated snmptraps *** Important note: sec must send DATA within quotes Ex: ./services.py $1 $2 $3 $4 import commands, string, os, sys, time global return_code def check_arg(): try: host = sys.argv[1] except: print usage: services.py HOST SEVERITY JOB DATA sys.exit() try: severity = sys.argv[2] except: print usage: services.py HOST SEVERITY JOB DATA sys.exit() try: job = sys.argv[3] except: print usage: services.py HOST SEVERITY JOB DATA sys.exit() try: mondata_res = sys.argv[4] except: print usage: services.py HOST SEVERITY JOB DATA sys.exit() return (host, severity, job, mondata_res) def post_results(host, job, mondata_res, return_code): mytime = time.time() mytime = str(mytime) mytime = mytime[:-3] #print mondata_res output = open('/usr/local/nagios/var/rw/nagios.cmd', 'w') results = [ + mytime + ] + PROCESS_SERVICE_CHECK_RESULT; \ + host + ; + job + ; \ + return_code + ; + mondata_res + \n output.write(results) def get_return_code(): if severity == INFORMATIONAL: return_code = 0 elif severity == Normal: return_code = 0 elif severity == SEVERE: return_code = 2 elif severity == MAJOR: return_code = 2 elif severity == CRITICAL: return_code = 2 elif severity == WARNING: return_code = 1 elif severity == MINOR: return_code = 1 return return_code # Main routine... if __name__ == '__main__': (host, severity, job, mondata_res) = check_arg() # validating # parameters return_code = get_return_code() post_results(host, job, mondata_res, return_code) --- Here are two examples that don't have freshness checks. It just seems strange that they are always November of 1973. The days are just different Other_Event_SNMP Active checks of the service have been disabled - only passive checks are being accepted OK 11-08-1973 02:10:26 12694d 15h 7m 38s 1/1 No action required: Backup Exec: Application Initializing Other_Event_SNMP This service has 1 comment associated with it Active checks of the service have been disabled - only passive checks are being acceptedThis service is flapping between states OK 11-10-1973 22:01:21 1d 16h 47m 1s 1/1 No action required: Backup Exec: Backup Job Contains No Data On 8/10/08, Thomas Guyot-Sionnest [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/08/08 10:46 AM, fevin Kagen wrote: I'm having this exact same issue on two different Nagios servers. One running Fedora and one running Ubuntu. It is driving me crazy. An SNMP Trap is received for a backup job. It is properly translated and ultimately received by Nagios. I have a freshness check in place for the service that will create a critical alert if a check is not received every 26 hours. For whatever reason, the check is run right after the alert is received and it think the results are 12K+ days old. It seems to periodically think the results are from 11-08-1973. This is an ongoing issue on both servers, but certainly isn't the norm. Typically the freshness checks work great. However, about once or twice a week, I see this behavior on random checks. Here is an example: There's something wrong with the script/process returning these passive check. The passive check returned to the Nagios command pipe has the following format: [timestamp] PROCESS_PASSIVE_CHECK_RESULT;hostname;service_name;return_code;status_text The timestamp is a normal UNIX timestamp (seconds since EPOCH) and determine the time at which the check was performed. If you return an invalid/too old timestamp, Nagios will think the service is that old and trigger the freshness check. I
Re: [Nagios-users] Any plugin for a TroubleTicketing System for Nagios??
On Sun, 10 Aug 2008 14:01:49 -0400, Brian A. Seklecki [EMAIL PROTECTED] wrote: On Sun, 2008-08-10 at 13:31 -0400, Thomas Guyot-Sionnest wrote: FYI in my setups Nagios have it own SMTP server so that if the mail SMTP sounds nice, except in general it really isnt :) You'll need a discriminating logic check to selectively generate tickets for hosts/service status changes. For example, the health check on your CMS system probably shouldn't try to generate a CMS ticket. Maybe a special contact group and/or regex matching in your notify_command. Why not tie into the event_handler, instead of the notify_command? event_handler doesn't necessarily have to fix something, but it can be used to trigger other events, such as logging a ticket. It'd certainly be a much better option than notify, as notify executes every time a notification is supposed to be generated, which would ultimately end up generating lots of tickets, unless you can build some complex rules into your notification alert that checks for an existing ticket for that host/service, then only creates it once. -- Jon Angliss - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 freshness checks randomly think check results are from 1973.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/08/08 06:28 PM, fevin Kagen wrote: Thanks for the quick reply. My date is correct on both servers, but I am using the same two scripts on both. This could certainly be causing the issue. They are modified versions of Francois Meehan's snmptraphandling.py. I don't know this first thing about python so I just hacked around until I got them working the way I wanted. I don't think I changed anything to deal w/ time and date handling, but who knows. Here is one of the scripts --- If it happens all the time, try changing the output file and see what it writes. Otherwise, you may try adding a debug file where you send the same thing, though I don't know python so I can't really help. If you manage to do that then then next time it fails you can look at what it wrote. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIn6lz6dZ+Kt5BchYRAivSAJ9gzJkkT5NXC2dn8ClzXhl1HeH0SQCg1MQ+ fHhgyVGVrfgRpwMwmJsbDxw= =us3x -END PGP SIGNATURE- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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