[Nagios-users-br] Error: Service check command
Pessoal, Estou precisando de uma ajuda de vocês. Estou tentando monitorar os discos de um servidor HP Proliant 380, ao tentar iniciar o nagios recebo a notificação de erro abaixo: Error: Service check command 'check_compaq_disk_array' specified in service 'check-compaq-disk-array' for host 's-servidor' not defined anywhere! Alguém pode me ajudar?? Desde já agradeço. André André Luís A. de Souza [EMAIL PROTECTED] Flickr agora em português. Você cria, todo mundo vê. Saiba mais. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ -- 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] RES: Variáveis MIB de rotea dores Cyclades
Caro Igor, A única que ele retornou foi a sysDescr.0, que serve tanto pra roteadores Cisco quanto Cyclades, mas essa eu já estava pegando... Atc, Carlos. - Original Message - From: Igor Monteiro Vieira [EMAIL PROTECTED] To: Unofficial Brazilian (Portuguese) Nagios Users List nagios-users-br@lists.sourceforge.net Sent: Sunday, July 29, 2007 9:35 AM Subject: [Nagios-users-br] RES: Variáveis MIB de roteadores Cyclades Pra memória e processador você acha iniciando com hr. snmpwalk -v2c -c comunidade enderecoip | grep -i hr -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Carlos Magalhães Enviada em: sexta-feira, 27 de julho de 2007 16:54 Para: Unofficial Brazilian (Portuguese) Nagios Users List Assunto: [Nagios-users-br] Variáveis MIB de roteadores Cyclades Olá, Estou monitorando alguns roteadores Cyclades PR2000 e PathRouter, no entanto, falta monitorar o consumo de memória e CPU, preciso coletar essas informações via SNMP mas não consigo achar o nome e o OID das variáveis snmp da MIB da Cyclades para fazer essa medição. Alguém aí faz esse tipo de monitoração ou conhece essas variáveis? Um abraço à todos da lista! Atc, Carlos. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ -- 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ -- 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ -- 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] dont want notification when machine reboots
On 30/07/07, Lalita Drolia [EMAIL PROTECTED] wrote: Setting up downtime will not be possible. As our servers our being used by individual users for testing purposes. And they may reboot the machine in the normal process of their working. Asking them to schedule a downtime would add overhead for them and we would not prefer to do that. So I guess I will have to go with Mark's suggestion if there is no way to delay the notifications. I believe Mark's suggestion is absolutely the right one (both for me and for you). However, if you're reluctant to try that for some reason another option would be to have the normal host notifications go to /dev/null, and use escalation to notify after a given period; it would be a messy way to do it but it's another option! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_snmp to monitor temperature probes
On 29/07/07, Patel, H (Hiten) [EMAIL PROTECTED] wrote: I need to implement monitoring for the set of temperature probes using snmp. I've issued the following command: /usr/local/nagios/libexec/check_snmp -H IPADDRESS -o .oid -w 27 -c 28 -C public And got: SNMP OK - 22 | iso.3.6.1.4.1.17373.2.2.1.5.1=22 How can I implement this in Nagios?. I've only installed Nagios last week so I'm not an expert yet. The SNMP OK - 22 is what will appear on-screen in Nagios (presumably that's 22 degrees C!); anything after the | pipe symbol is only used for collecting performance data - typically it is used if you have installed Nagiosgrapher, PNP or suchlike to graph the values you are getting from Nagios. So that command seems to be working fine. For Nagios, you need to set up a command definition, probably in /usr/local/etc/nagios/commands.cfg (depending on where you have your Nagios config files). Then you need to set up a service definition which uses the new command definition you've just set up. See. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html I can heartily recommend Wolfgang Barth's book Nagios published by No Starch press if you want a head-start learning how to configure things in Nagios. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] guest access
Can't you just do this by playing with the apache and nagios configs? I've done this in the past and it was not really a catch the only thing is that you need 2 nagios configurations files: one serving the unauthenticated content with no exec permissions, one with the authenticated content with the exec permissions (this also means that you need two set of cgi scripts reading different nagios config files). Other options is to not use apache native authentication but to create your own apache auth module. This can be done in perl using mod-perl or mod-python. In this case you setup a proper authentication mechanism under apache with a default guest user account to fallback if no proper auth is provided. This is probably nicer and provides more flexibility but is probably more complicated. Some examples of apache authentication modules: perl: apache::authcookie ( http://search.cpan.org/~mschout/Apache-AuthCookie-3.10/lib/Apache2/AuthCookie.pm ) python: http://www.modpython.org/live/current/doc-html/tut-more-complicated.html I've done some code on this here: http://www.barbich.net/websvn/wsvn/nagios/nagios/doc/mod_apache_authentication/?rev=0sc=0 On 7/29/07, Paul Dugas [EMAIL PROTECTED] wrote: Been fiddling with this for a while now and am stumped. I figure I'm not the first to want this so before I get a brain cramp I'll ask. I run a couple Nagios server on internal networks and I want internal users to get read access without having to log in. I want a select number of users to be able to login and get higher level access. I've been trying to get the HTTP interface default to the guest account and the HTTPS interface to require a login. My admins and I would use the HTTPS interface while our customers would use the standard HTTP interface. Anybody got something like this going? Perhaps something else that would accomplish the same? Any info would be appreciated. pd -- Paul Dugas, Computer EngineerDugas Enterprises, LLC [EMAIL PROTECTED]phone: 404-932-1355 522 Black Canyon Park http://dugas.ccfax: 866-751-6494 Canton, GA 30114 USA -- This e-mail and any attachments are confidential. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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/n2rrd - missing template for ping.t
On CentOS 4.5, I have Cacti and Nagios installed. I'm trying to glue them together with a program called n2rdd but am having a problem that I wondering is possibly Nagios-related. When I run tail /var/log/nagios/rra/n2rrd.log, I see lots of this sort of thing: server01: Missing template for server01 service check_ping /etc/n2rrd/templates/rra/ping.t I have a ping.t template in that file path, but it's still not working. In fact, I did one exactly like the example in the instructions (step 7, example 1: http://n2rrd.diglinks.com/cgi-bin/trac.cgi/wiki/InstallationGuide) and then I copied that icmp.t template to ping.t Any help would be greatly appreciated. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_ping vs check_icmp?
I just recently noticed that there is a check_ping and a check_icmp plugin. I ran ./check_plugin --help on each, but am still unclear as to what each does differently. Does check_icmp include traceroute and other non-ping ICMP checks? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ping vs check_icmp?
* Rogelio Bastardo [EMAIL PROTECTED] [2007-07-30 10:37]: I just recently noticed that there is a check_ping and a check_icmp plugin. I ran ./check_plugin --help on each, but am still unclear as to what each does differently. Unlike check_ping, check_icmp allows for checking multiple hosts at once; the behaviour is more configurable; and it generates performance data output. But the main difference is that check_ping executes the system's ping(1) command and parses its output while check_icmp talks ICMP itself. This usually means that check_icmp must be installed setuid root, but also that its performance is much better. Given that Nagios 2.x holds off on doing anything else while performing host checks, this might be an important advantage. So, if you don't mind installing the plugin setuid root, I'd recommend using check_icmp. Does check_icmp include traceroute and other non-ping ICMP checks? No. Holger -- PGP fingerprint: F1F0 9071 8084 A426 DD59 9839 59D3 F3A1 B8B5 D3DE - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ping vs check_icmp?
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Rogelio Bastardo Sent: Monday, July 30, 2007 12:37 PM To: Nagios Users mailinglist Subject: [Nagios-users] check_ping vs check_icmp? I just recently noticed that there is a check_ping and a check_icmp plugin. I ran ./check_plugin --help on each, but am still unclear as to what each does differently. Does check_icmp include traceroute and other non-ping ICMP checks? check_ping is a wrapper for /bin/ping and so depends on that program to actually perform the check, parsing it's output to determine success or not. check_icmp performs the check itself. check_icmp is much more efficient than check_ping, typically completing in fractions of a second for 10 pings. Here's a graphic example, 50 pings, 49 seconds for check_ping v.s. 1.2 seconds for check_icmp -- $ time ./check_ping -n 50 -H www.ena.com -w500,50% -c 1000,100% PING OK - Packet loss = 0%, RTA = 1.78 ms real0m49.197s user0m0.000s sys 0m0.020s time ./check_icmp -n 50 -H www.ena.com -w500,50% -c 1000,100% OK - www.ena.com: rta 0.40 ms, lost 0%|rta=0.40ms;500;1000;; pl=0%;50;100;; real0m1.229s user0m0.530s sys 0m0.700s -- Marc - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_mysql...5
Hello guys, im having trouble with the check_mysql when i change the version of the mysql 4.1.21 to 5.0.x, the plugin start to fail. With the answer: NRPE: Unable to read output Does the Mysql 5 need other plugin? Any suggestion ? Regards! Guille ¡Sé un mejor besador! Compartí todo lo que sabés sobre besos. http://ar.yahoo.com/promos/mejorbesador.html - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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/n2rrd - missing template for ping.t
On 7/30/07, Rogelio Bastardo [EMAIL PROTECTED] wrote: When I run tail /var/log/nagios/rra/n2rrd.log, I see lots of this sort of thing: server01: Missing template for server01 service check_ping /etc/n2rrd/templates/rra/ping.t So, I fixed this (by adding a #!/usr/bin/perl -w at the top of the n2rrd.pl file), but now I Nagios doesn't seem to be piping it to the appropriate /var/log/nagios/rra/ folder like I would expect. I tail /var/log/nagios/rra/n2rrd.log and don't see the aforementioned error, so it seems like it's working, but no log files seem to be growing, particularly the logs that are based on the ping.t template I made. I'm missing some key piece to this, but I'm not quite sure what it is. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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/n2rrd - missing template for ping.t
I'm missing some key piece to this, but I'm not quite sure what it is. Also, for what it's worth, here are the relevent entries in my cfg files nagiios.cfg --- process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata --- commands.cfg --- define command{ command_nameprocess-host-perfdata command_line/usr/bin/n2rrd.pl -d -c /etc/n2rrd/n2rrd.conf -T $LASTHOSTCHECK$ -H $HOSTNAME$ -s check_ping -o $HOSTOUTPUT$ } define command{ command_nameprocess-service-perfdata command_line/usr/bin/n2rrd.pl -d -c /etc/n2rrd/n2rrd.conf -e $SERVICEEXECUTIONTIME$ -l $SERVICELATENCY$ -T $LASTSERVICECHECK$ -H $HOSTNAME$ -s $SERVICEDESC$ -o $SERVICEPERFDATA$ } - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] NSCA Question and Hardware utilization question.
Just curious to see how many NSCA transactions people are running in their environments. I am trying to send 3000 service check results every 5 minutes from one machine to another. I am using xinetd which seems to panic at this volume and shut itself down. At 2200 service checks i did not have issues with xinetd. I have also been trying to convince my coworker that we should be doing all of the checks from one server so this would not be an issue. And the second server can be the redundant fail over. My server is 2 x dual core 2.0 Ghz, 8 GB of RAM and 6 300GB 15k disks in raid 5 with a single 1Gb network connection. My current load on this machine with 3000 + service checks in 5 minutes is around 10% cpu usage. About 2% of that is nagios related. The total need for service checks will be about 12.5k every 5 minutes, we are implementing in phases. I think I can do this all from one machine and replicate everything to my fail over server for redundancy. How many service checks are people doing in their environments and then submiting with nsca and how many checks are people doing from one server? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ 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] Regex Services?
Hello, I am trying to build a services.cfg using regular expressions. I have enabled the regex options within nagios.cfg The string I am trying is the following: ^(host|gost)\d{1,2}\.\w+\.$ and I have checked my regular expressions with: echo 'host1.public.going' | perl -ne 'print if /^(host|gost)\d{1,2}\.\w+\.going$/' echo 'gost32.private.going' | perl -ne 'print if /^(host|gost)\d{1,2}\.\w+\.going$/' yet, I always get when running nagios -v nagios.cfg: Error: Could not find any host matching '^(host|gost)\d{1' Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services.cfg', starting on line I've tried various other ways of it, and one thing I seem to have noticed is that Nagios seems to parse only square brackets in an expression. I have compiled a version of the binary with the embedded perl, but this did not help. I have tried posix expressons too, but not much luck either. Has anyone one else had some luck with regular expressions within the services.cfg file? I have a bunch of hosts all running identical services. I am running Nagios 2.9, both on a Linux platform and FreeBSD. Many thanks, Kerry. -- Kerry Milestone Network Engineer --- 1 0 ... my two bits - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Regex Services?
Kerry Milestone wrote: Hello, I am trying to build a services.cfg using regular expressions. I have enabled the regex options within nagios.cfg The string I am trying is the following: and I have checked my regular expressions with: echo 'host1.public.going' | perl -ne 'print if /^(host|gost)\d{1,2}\.\w+\.going$/' echo 'gost32.private.going' | perl -ne 'print if /^(host|gost)\d{1,2}\.\w+\.going$/' yet, I always get when running nagios -v nagios.cfg: Error: Could not find any host matching '^(host|gost)\d{1' Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services.cfg', starting on line I've tried various other ways of it, and one thing I seem to have noticed is that Nagios seems to parse only square brackets in an expression. I have compiled a version of the binary with the embedded perl, but this did not help. I have tried posix expressons too, but not much luck either. Has anyone one else had some luck with regular expressions within the services.cfg file? I have a bunch of hosts all running identical services. I am running Nagios 2.9, both on a Linux platform and FreeBSD. Many thanks, Kerry. ^(host|gost)\d{1,2}\.\w+\.$ change it to ^(host|gost)\d{1,2}\.\w+\.\w+$ and test again. Learner - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ping vs check_icmp?
So, if you don't mind installing the plugin setuid root, I'd recommend using check_icmp. Forgive my ignorance, but where can I find this? (I googled for setuid root nagios check_icmp but nothing jumped out at me) - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Regex Services?
Hello Goksie, Cheers for your reply. This works too as a regex, however I still get the following within Nagios: # ./bin/nagios -v etc/nagios.cfg Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Reading configuration data... Error: Could not find any host matching '^(host|gost)\d{1' Error: Could not expand hostgroups and/or hosts specified -- Kerry. Goksie Learner wrote: ^(host|gost)\d{1,2}\.\w+\.$ change it to ^(host|gost)\d{1,2}\.\w+\.\w+$ and test again. Learner - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Regex Services?
Kerry Milestone wrote: Hello, I am trying to build a services.cfg using regular expressions. I have enabled the regex options within nagios.cfg The string I am trying is the following: ^(host|gost)\d{1,2}\.\w+\.$ and I have checked my regular expressions with: echo 'host1.public.going' | perl -ne 'print if /^(host|gost)\d{1,2}\.\w+\.going$/' echo 'gost32.private.going' | perl -ne 'print if /^(host|gost)\d{1,2}\.\w+\.going$/' yet, I always get when running nagios -v nagios.cfg: Error: Could not find any host matching '^(host|gost)\d{1' Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services.cfg', starting on line I've tried various other ways of it, and one thing I seem to have noticed is that Nagios seems to parse only square brackets in an expression. I have compiled a version of the binary with the embedded perl, but this did not help. I have tried posix expressons too, but not much luck either. Has anyone one else had some luck with regular expressions within the services.cfg file? I have a bunch of hosts all running identical services. I am running Nagios 2.9, both on a Linux platform and FreeBSD. Many thanks, Kerry. kerry, note ^(host|gost)\d{1,2}\.\w+\.$ change it to ^(host|gost)\d{1,2}\.\w+\.\w+$ and test again. Learner - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_ping vs check_icmp?
On 7/30/07, Rogelio Bastardo [EMAIL PROTECTED] wrote: So, if you don't mind installing the plugin setuid root, I'd recommend using check_icmp. Forgive my ignorance, but where can I find this? (I googled for setuid root nagios check_icmp but nothing jumped out at me) ah, I see it's a package yum install nagios-plugins-setuid thanks again for your help, guys. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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