Problem With check_snmp

Kaplan, Andrew H. AHKAPLAN at PARTNERS.ORG
Thu Mar 18 15:15:20 CET 2004


Marc --

Thanks for your reply. I went to the services.cfg file and removed the
check_command entry for the first printer. I then went to the
checkcommands.cfg file and copied the command_name line to the appropriate
area in services.cfg. When I ran the sanity check again, 
the problem with the first printer disappeared. I repeated the process for
the second printer with similar success.

I could not see the difference between the syntax of what I had manually
typed in originally, and what was copied in just now. Whatever
it was, the program did see it and it looks like this approach did the
trick. Thanks for the suggestion.

-----Original Message-----
From: Marc Powell [mailto:marc at ena.com]
Sent: Thursday, March 18, 2004 9:04 AM
To: Kaplan, Andrew H.; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Problem With check_snmp


Kaplan, Andrew H. <mailto:AHKAPLAN at PARTNERS.ORG> wrote:
> Hi there --
> 
> I have two printers that I am using the check_snmp command to monitor.
> Because I needed to use the -H -C and -o parameters, I created two
> additional entries in the checkcommands.cfg file. Here is what one of
> the entries looks like:  
> 
> # 'check_lox18_phaser750' command definition define command{
> 	command_name	check_snmp -H 192.168.1.110 -C public -o
> xyz.noname.5
> 	command_line		/usr/local/nagios/libexec/check_snmp -H
> 192.168.1.110 -C public -o xyz.noname.5
> 	}
> 
> I then went to  the services.cfg file and had the following
> check_command line for the printer: 
> 
> 	check_command	check_snmp -H 192.168.1.110 -C public -o
> xyz.noname.5
> 
> Whenever I run the sanity check, it says the check command mentioned
> above, as well as the other check_snmp command, are not defined
> anywhere. Is there another place that I need to configure the command
> besides the checkcommand and services.cfg files? I have run the
> command manually, and it does provide snmp feedback. Thanks.    


Your command_name should be very succint and can't contain spaces I
believe (i.e. command_name check_lox18_phaser750). Either take a look at
the documentation for Command Definition or look at already existing
entries to see what I mean.

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list