Re: [Nagios-users] Strange think
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fabiano Martins wrote: | Hi all!! | | I have a strange issue here with my nagios. Let me try to explain... | | I have some web services to check and when I run the command from | console to test two diferent status of these services (UP or DOWN) I | receive the correct answer from remote application. Let me put the | command here: | | ./usr/local/nagios/libexec/check_http -H www.somehost.com.br | http://www.somehost.com.br/ -u /heartbeat.asmx/Web -s 'boolean | xmlns= http://www.somehost.com.br/;true/boolean' | http://www.somehost.com.br/%22%3Etrue%3C/boolean%3E' | | As the check_http says, I have to use check_http -H vhost -u URL path | that I wan to check on specified host and -s string that I expect to | be returned to me. | | Ok! | | I run this command from console and everything goes fine. To test, I've | changed the expected string from true to false, and the answer received | after running the command from console changes to DOWN String not found. | | The problem is, when I put it into service.cfg for nagios run the | command, I've realized that nagios is not threating the return. If the | service is down, nagios keeps showing me that the service is OK. | | In command.cfg file, I've changed the line check_http command to add one | more argument that I need. | | The default is check_http -H $HOSTADDRESS$ $ARG1$. | | I've changed it to check_http -H $HOSTADDRESS$ $ARG1$ $ARG2$ I would probably change this to check_http -H $HOSTADDRESS$ -u $ARG1$ - -s $ARG2$ and change the services.cfg to: check_http!www.somehost.com.br!/heartbeat.asmx/Web!'boolean xmlns=http://www.somehost.com.br/;true/boolean' | | In services.cfg file I put check_http!www.somehost.com.br -u | /heartbeat.asmx/Web!'boolean | xmlns=http://www.somehost.com.br/;true/boolean' | http://www.somehost.com.br/%22%3Etrue%3C/boolean%3E' | | I think that nagios is doesn't recognizing the sintax. | | My queustino is... | | In the lines that I put above, Is there anything I am missing? | | Regards, | | Fabiano Martins I'm thinking that the parser might be getting confused with the -u option and/or the whitespace and is ignoring the string check. I would also suggest posting in simple text to mailing lists, especially when you paste configurations, since HTML output can confuse the actual command you are trying to show. Hope this Helps, - -=Tom Nail -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHh6pR1zsLRjt/NQ0RAubdAJ9uZVpTVgFgaSjFpGl8rTHCMhXk6wCfcc1m VvYva2NqkByhsYwV2rF+5aU= =TUvJ -END PGP SIGNATURE- - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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] separate webfront
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Donnell Lewis wrote: Or you could use the distributed monitoring method: have a master nagios server (running the web front-end) running at one locationa and then have another (or multiple) nagios daemons running on the other boxes that actually check the local machines at that colo and send passive check results via nsca to the master hosting the frontend. -Don You shouldn't even have to be that elaborate, just use an external web server as a proxy (using mod_rewrite and mod_proxy) and restrict things at the external portal (i.e., no commands, namespace exclusions, etc.). Cheers, - -=Tom Nail -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHC8FF1zsLRjt/NQ0RAk/zAJwPzYz6k+VyejM8qvD3+56ToI6w1ACfVnS8 1CS0HfTNcCWwku9Vro28Q/U= =7ArF -END PGP SIGNATURE- - 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] different contact_groups not used
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dirk H. Schulz wrote: Hi folks, we are running Nagios 2.3.1 and use different email contacts that are consolidated in different contact_groups which are used within the host definitions. Are you doing any templating for your host or service objects? It sounds like you are overriding your contact_group definition at some point, so you're going to have to figure out where that is occurring. But ALL email notifications are sent to the same contact(_group), not minding which contact_group is used in the host/service definition that email is concerned about. I have tried to find a fault in nagios.cfg and in the several other cfg files, but there seems to be none. Any help or hint is appreciated. Dirk It's hard to tell what you have defined without looking over your config file(s), but for starters, what does the command nagios -v /path/to/nagios_config_file show? Are there any contact errors? Cheers, - -=Tom Nail -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHBQmq1zsLRjt/NQ0RAtsBAJwMgDlT1jv3Lns55DBBLQduSzNK/ACcDfow aImKZDCWJZtIqdfiBSPSe6w= =zB4/ -END PGP SIGNATURE- - 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 Log Management Tips?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rogelio Bastardo wrote: Anyone have any tips for dealing with Nagios logs? Things are getting a little crazy, and I haven't even been logging very much! e.g. [EMAIL PROTECTED] run]# find / *nagios* -type f -size +100k -exec ls -lh {} \; | awk '{ print $9 : $5 }' /var/log/nagios/archives/nagios-08-14-2007-00.log: 2.3G /var/log/nagios/archives/nagios-08-13-2007-00.log: 3.4G /var/log/nagios/archives/nagios-08-12-2007-00.log: 2.6G /var/log/messages.4: 3.5G [EMAIL PROTECTED] run]# gzip comes to mind, since this is ASCII data it should compress nicely. Also, there are several log rotation scripts out there, including the logrotate utility supplied in RedHat and other Linux distros. Try man logrotate' on one of them for more information. Cheers, - -=Tom Nail -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG8twm1zsLRjt/NQ0RAvKOAJ4mxJO5nWMULVHDJ/+7JtybkM8BzQCbBWXE DpaU9AZVLETFgS31QRSAXj0= =auBZ -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 fails the SNMP check, command line works fine
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ajitabh, does your target machine have an SNMP v3 secName/password set up for the nagios user? This sounds suspiciously like a permissions problem. Try this: su -l nagios -c snmpwalk -v 3 -u nagios -X passwd target_host And see what it returns. cheers, - -=Tom Nail Ajitabh Pandey wrote: Hi, I am facing a very strange problem. This problem is only on certain hosts. The monitored hosts are a mix of win2k and win2003 servers with SNMP enabled. When I run the plugins from command line (see below): /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H myhost01.tld.com -C public -2 -T pu -m ^C -w 80 -c 90 C:\ Label:System Serial Number d04cc42c: 59%used(6524MB/2MB) (80%) : OK [EMAIL PROTECTED] services]$ /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H myhost01.tld.com -C public -2 -T pu -m ^D -w 80 -c 90 D:\ Label:Data Serial Number 1442142f: 71%used(364130MB/514064MB) (80%) : OK [EMAIL PROTECTED] services]$ /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H myhost01.tld.com -C public -2 -T pu -m Physical -w 80 -c 90 Physical Memory: 88%used(3168MB/3582MB) (80%) : WARNING [EMAIL PROTECTED] services]$ /usr/lib/nagios/plugins/contrib/check_snmp_storage.pl -H myhost01.tld.com -C public -2 -T pu -m Virtual -w 80 -c 90 Virtual Memory: 52%used(3871MB/7428MB) (80%) : OK They all work. But the same plugins commands when run by nagios gives me error: ERROR: Description/Type table : No response from remote host '192.168.0.110' This problem is on certain hosts (around 10-15) and is working fine on some other 300+ servers. I have listed only few checks, but the fact is all SNMP checks are giving exactly the same problems. Other checks viz direct TCP port connections, HTTPD service checks etc are working fine. What could be the reason? Nagios version is 2.8 and all plugins are downloaded from nagiosexchange website. I dont have any reason to suspect my command and service definitions as the same checks are working ok for other similarly configured hosts. I am in a sort of urgent need of a solution, so an early reply will be appreciated Regards. Ajitabh Pandey - 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 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGw2Yc1zsLRjt/NQ0RAoJqAJ4v1s1NOjVUqxUwOJMMMNh8IJW+3ACfTYj5 wDRwOOQmUJ1touiPvM9KvmA= =TUQB -END PGP SIGNATURE- - 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