<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NAGIOS in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334856#M34798</link>
    <description>I was installing NAGIOS 3 on my linux box.&lt;BR /&gt;I'm not sure when it happened  but as I'm running: &lt;BR /&gt;&lt;BR /&gt;/usr/sbin/nagios -v /etc/nagios/nagios.cfg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm getting following error:&lt;BR /&gt;&lt;BR /&gt;Warning: Duplicate definition found for command 'check_smtp' (config file '/etc/nagios/plugins.d/check_tcp.cfg', starting on line 33)&lt;BR /&gt;Error: Could not add object property in file '/etc/nagios/plugins.d/check_tcp.cfg' on line 34.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone help ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter</description>
    <pubDate>Fri, 09 Jan 2009 17:06:41 GMT</pubDate>
    <dc:creator>Piotr Kirklewski</dc:creator>
    <dc:date>2009-01-09T17:06:41Z</dc:date>
    <item>
      <title>NAGIOS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334856#M34798</link>
      <description>I was installing NAGIOS 3 on my linux box.&lt;BR /&gt;I'm not sure when it happened  but as I'm running: &lt;BR /&gt;&lt;BR /&gt;/usr/sbin/nagios -v /etc/nagios/nagios.cfg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm getting following error:&lt;BR /&gt;&lt;BR /&gt;Warning: Duplicate definition found for command 'check_smtp' (config file '/etc/nagios/plugins.d/check_tcp.cfg', starting on line 33)&lt;BR /&gt;Error: Could not add object property in file '/etc/nagios/plugins.d/check_tcp.cfg' on line 34.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone help ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 09 Jan 2009 17:06:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334856#M34798</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2009-01-09T17:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: NAGIOS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334857#M34799</link>
      <description>I suggest just open check_tcp.cfg into text editor and comment out check_smtp command definition. I guess, this command is already defined in another configfile.</description>
      <pubDate>Sun, 11 Jan 2009 11:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334857#M34799</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2009-01-11T11:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: NAGIOS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334858#M34800</link>
      <description>Hi I resolved this problem but I have another one:&lt;BR /&gt;&lt;BR /&gt;Error: Service check command 'check_snmp' specified in service 'Port 1 Link Status' for host 'switch5' not defined anywhere!&lt;BR /&gt;&lt;BR /&gt;It's sure defined in commands.cfg&lt;BR /&gt;&lt;BR /&gt;# 'check_snmp' command definition&lt;BR /&gt;define command{&lt;BR /&gt;        command_name check_snmp&lt;BR /&gt;        command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vim switch.cfg  looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;define service{&lt;BR /&gt;        use                     generic-service ; Inherit values from a template&lt;BR /&gt;        host_name               switch6&lt;BR /&gt;        service_description     Uptime&lt;BR /&gt;        check_command           check_snmp!-C public -o sysUpTime.0&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Jan 2009 16:39:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334858#M34800</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2009-01-13T16:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: NAGIOS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334859#M34801</link>
      <description>&amp;gt;Error: Service check command 'check_snmp' &amp;gt;specified in service 'Port 1 Link Status' &amp;gt;for host 'switch5' not defined anywhere!&lt;BR /&gt;&lt;BR /&gt;as far as I understand, mentioned service isn't the same service  from switch.cfg&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2009 14:43:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334859#M34801</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2009-01-14T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: NAGIOS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334860#M34802</link>
      <description>I've sorted the duplicated definition.&lt;BR /&gt;Now Nagios complains about check_snmp not being defined anywhere.&lt;BR /&gt;That's funny because Nagios 3.0.3 is comming with check_snmp defiend. More then that - in the documentation they said that they have already done it for you so you just sit and anjoy:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nagios.sourceforge.net/docs/nagios-3.pdf" target="_blank"&gt;http://nagios.sourceforge.net/docs/nagios-3.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Take a look at page 30 :&lt;BR /&gt;Whatâ  s Already Done For You &lt;BR /&gt;&lt;BR /&gt;I have a filing that the plan behind that is that if they will waist my time then I will buy their support.&lt;BR /&gt;&lt;BR /&gt;But I'm thinking more about going to other solution instead.&lt;BR /&gt;&lt;BR /&gt;Reagrds&lt;BR /&gt;&lt;BR /&gt;PEter&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2009 14:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334860#M34802</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2009-01-14T14:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: NAGIOS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334861#M34803</link>
      <description>&lt;!--!*#--&gt;Hi Peter,&lt;BR /&gt;&lt;BR /&gt;the pre-flight syntax check of nagios is pretty obvious (as almost every time one employs it, which one should do after every change to its configuration)&lt;BR /&gt;&lt;BR /&gt;Error: Service check command 'check_snmp' specified in service 'Port 1 Link Status' for host 'switch5' not defined anywhere!&lt;BR /&gt;&lt;BR /&gt;Nagios simply seems not to be able to find the command definition of "check_snmp" anywhere.&lt;BR /&gt;&lt;BR /&gt;You seem to have put each Nagios object definition into a separate file which can become quite cluttered and unwieldy.&lt;BR /&gt;Please, check your main nagios.cfg how you defined where nagios should expect object definitions to find.&lt;BR /&gt;&lt;BR /&gt;e.g. in my case I dedicated a whole directory to object definitions and grouped host, service, contact definitions etc into a scheme that somehow maps our environment in order not to get lost between all the files.&lt;BR /&gt;&lt;BR /&gt;# grep -E '^[^#]*cfg_(file|dir)' /etc/nagios/nagios.cfg&lt;BR /&gt;cfg_dir=/etc/nagios/objects&lt;BR /&gt;&lt;BR /&gt;And what you said about someone expecting you to buy their support couldn't be farther from the truth because none of the developers and contributors is doing so.&lt;BR /&gt;Quite to the contrary they are voluntarily very helpful.&lt;BR /&gt;Have you tried their mailing list yet?&lt;BR /&gt;Nagios is a wonderful toolset which leaves you utmost liberty in constructing the monitoring system that exactly suits your site's needs.&lt;BR /&gt;So I would like to encourage you to not give up prematurely (admittedly, the beginning can be a bit tedious, but it pays back soon manyfold).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jan 2009 10:04:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nagios/m-p/4334861#M34803</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2009-01-15T10:04:03Z</dc:date>
    </item>
  </channel>
</rss>

