Problem With check_snmp
Marc Powell
marc at ena.com
Thu Mar 18 15:04:27 CET 2004
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_id70&alloc_id638&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