Thanks Tomas, that did the trick.
Much appreciated.
Mike D
On Mon, Feb 14, 2011 at 3:20 AM, Tomas Macek <[email protected]> wrote:
> Hope I understand you well...
> I really don't know, what contains your libexec directory of icinga
> installation, but I think you've made it wrong. The command definition is
> only a command definition - so not the whole command -> no binary, no
> script. You just have to add
> this to your main configuration files. The mine is named
> /etc/icinga/commands.cfg and this mine file contains all the commands used
> in icinga hosts and services configration.
>
> To verify the icinga configuration, run 'icinga -v icinga.cfg' (I don't
> know the correct path to your icinga binary and icinga.cfg config file -
> correct it according to your needs).
>
> Tomas
>
> On Sat, 12 Feb 2011, Michael
> DiMartino wrote:
>
> > Tomas, thanks so much for your help.
> >
> > However, i still having loading this into my switch.cfg. Errors on
> reload.
> > This is what I have done.
> >
> > 1> and touched the file "check_snmp_arg_simple" and placed it in
> > /usr/local/icinga/libexec and chmod 777 and added the command to the
> file.
> >
> > 2> the added Service Definition to my swich.cfg file changed the
> host_name
> > and service description to reflect my system and reloaded incinga.
> However
> > incinga will not start.
> > Where did i go wrong?
> >
> > Thanks
> > Mike D
> >
> > On Fri, Feb 11, 2011 at 7:30 AM, Tomas Macek <[email protected]> wrote:
> >
> >> Do it another way:
> >> # 'check_snmp_arg_simple' command definition
> >> define command{
> >> command_name check_snmp_arg_simple
> >> command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o
> >> $ARG2$ -c $ARG3$
> >> }
> >>
> >> # Service definition
> >> define service{
> >> use generic-service
> >> host_name hostname
> >> service_description Description
> >> is_volatile 0
> >> check_period 24x7
> >> max_check_attempts 3
> >> normal_check_interval 2
> >> retry_check_interval 1
> >> contact_groups g.mailALL
> >> notification_interval 600
> >> notification_period 24x7
> >> notification_options c,r
> >> check_command
> >> check_snmp_arg_simple!public!ifOperStatus.1!1:1
> >> }
> >>
> >> Best regards, Tomas
> >>
> >>
> >> On Thu, 10 Feb 2011, Michael DiMartino wrote:
> >>
> >>> I need to monitor a a few interfaces for up and down status and receive
> >>> email alerts when an
> >>> interface goes from up to down. The classic web interface shows the
> >> downed
> >>> interfaces as "OK" in the Status column, and in the Status Information
> >>> column the downed interface are listed as "SNMP OK - 2 ". Which i
> assume
> >>> the "2" stands for down.
> >>>
> >>> How do I get Icinga to show "Critical" in the STATUS column and if
> >> critical
> >>> to send and email alert.
> >>>
> >>> I am a newbie to snmp monitoring and I am at a complete loss and very
> >>> frustrated any help is greatly appreciated.
> >>>
> >>>> From my switch.cfg file
> >>>
> >>> define service{
> >>> use generic-service ; Inherit values from a template
> >>> host_name 3960-PGL-Toronto
> >>> service_description Port 8 Link Status
> >>> check_command check_snmp!-C public -o ifOperStatus.8 -r 1 -m
> RFC1213-MIB
> >>> }
> >>>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio
> XE:
> >> Pinpoint memory and threading errors before they happen.
> >> Find and fix more than 250 security defects in the development cycle.
> >> Locate bottlenecks in serial and parallel code that limit performance.
> >> http://p.sf.net/sfu/intel-dev2devfeb
> >> _______________________________________________
> >> icinga-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/icinga-users
> >>
> >
> >
> >
> > --
> > --
> > Regards,
> > Michael Di Martino
> > Hudson Street Technology Group
> >
> > m: +1631.988.6060
> > [email protected]
> > http://hudsonstreet.us
> >
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/icinga-users
>
--
--
Regards,
Michael Di Martino
Hudson Street Technology Group
m: +1631.988.6060
[email protected]
http://hudsonstreet.us
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users