Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2009 09:06 AM
тАО01-09-2009 09:06 AM
I'm not sure when it happened but as I'm running:
/usr/sbin/nagios -v /etc/nagios/nagios.cfg
I'm getting following error:
Warning: Duplicate definition found for command 'check_smtp' (config file '/etc/nagios/plugins.d/check_tcp.cfg', starting on line 33)
Error: Could not add object property in file '/etc/nagios/plugins.d/check_tcp.cfg' on line 34.
Can anyone help ?
Regards
Peter
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2009 03:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 08:39 AM
тАО01-13-2009 08:39 AM
Re: NAGIOS
Error: Service check command 'check_snmp' specified in service 'Port 1 Link Status' for host 'switch5' not defined anywhere!
It's sure defined in commands.cfg
# 'check_snmp' command definition
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
vim switch.cfg looks like this:
define service{
use generic-service ; Inherit values from a template
host_name switch6
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 06:43 AM
тАО01-14-2009 06:43 AM
Re: NAGIOS
as far as I understand, mentioned service isn't the same service from switch.cfg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 06:54 AM
тАО01-14-2009 06:54 AM
Re: NAGIOS
Now Nagios complains about check_snmp not being defined anywhere.
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:
http://nagios.sourceforge.net/docs/nagios-3.pdf
Take a look at page 30 :
What├в s Already Done For You
I have a filing that the plan behind that is that if they will waist my time then I will buy their support.
But I'm thinking more about going to other solution instead.
Reagrds
PEter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2009 02:04 AM
тАО01-15-2009 02:04 AM
Re: NAGIOS
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)
Error: Service check command 'check_snmp' specified in service 'Port 1 Link Status' for host 'switch5' not defined anywhere!
Nagios simply seems not to be able to find the command definition of "check_snmp" anywhere.
You seem to have put each Nagios object definition into a separate file which can become quite cluttered and unwieldy.
Please, check your main nagios.cfg how you defined where nagios should expect object definitions to find.
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.
# grep -E '^[^#]*cfg_(file|dir)' /etc/nagios/nagios.cfg
cfg_dir=/etc/nagios/objects
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.
Quite to the contrary they are voluntarily very helpful.
Have you tried their mailing list yet?
Nagios is a wonderful toolset which leaves you utmost liberty in constructing the monitoring system that exactly suits your site's needs.
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).