LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-27-2008, 09:41 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
[Nagios3] Check-SNMP not defined


Objective is to monitor a switch via snmp. With the default installation of Nagios3 via aptitude, there are some missing files. Here are some of the steps I have taken but still incomplete.

1) edit /etc/nagios3/nagios.cfg to enable cfg_file=/etc/nagios/objects/switch.cfg
2) create the directory /etc/nagios3/objects since it is non-existent with the default installation.
3) copy the sample configuration file from /usr/share/doc/nagios3-common/examples/template-object/switch.cfg to /etc/nagios3/objects
4) edit /etc/nagios3/objects/switch.cfg with the required snmp string.
5) restart nagios3

Error: Service check command 'check_snmp' specified in service 'Uptime' for host 'switch1' not defined anywhere

However, when I did a locate for 'check_snmp', I have it in /usr/lib/nagios/plugins/check_snmp

Any advice is greatly appreciated.

Thanks!
 
Old 07-01-2008, 02:23 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Before you can use a check by name for any service or host configuration it must be known in the Nagios configuration. Add it to your "commands.cfg", the file contains enough command definition examples to show you how.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios3 package incomplete in Lenny? Akhran Debian 4 02-11-2010 03:38 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration