getting nagios to snmp to my box, Where do i specify the community

Arno Lehmann al at its-lehmann.de
Wed Dec 14 09:05:41 CET 2005


Hi,

Randy Paries schrieb:
> Hello,
> I am trying to do a smnp check on one of my boxes.
> (it is a mediatrix viop gateway)
> 
> I can query it using the cactii using the community of public

Here, it's rather early, but I have the impression you set up your 
checks quite early, too ;-)

Above, you want to write snmp, I assume - community strings belong 
there, usually.

> so i have set it up as follows::
> 
> The ping works find but the snmp fails with a CRITICAL
> "Connection refused by host"

See below.

> Si i am thinking maybe it is the community cause like mentioned above
> cactii can query it just fine.
> 
> Thanks for any suggestions.
> =========================================================
> 
> define host{
>         use                     generic-host            ; Name of host
> template to use
> 
>         host_name               MediaTrix.RP
>         alias                   MediaTrix RP Box
>         address                 66.xx.xx.205
>         max_check_attempts      20
>         notification_interval   60
>         notification_period     24x7
>         notification_options    d,u,r
>         }
> 
> define service{
>     use                     generic-service
>     host_name               MediaTrix.RP
>     service_description     SMTP

Really really sure?

>     is_volatile             0
>     check_period            24x7
>     max_check_attempts      3
>     normal_check_interval   5
>     retry_check_interval    1
>     contact_groups          admins
>     notification_interval   240
>     notification_period     24x7
>     notification_options    w,u,c,r
>     check_command           check_smtp

I guess you check for the simple mail transport protocol, not the simple 
network management one.

>     }
> 

Arno

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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