check_ifoperstatus

Olivier F. Beauchemin (Budget-Tech IT Consulting) ofb at budget-tech.com
Wed Jan 8 23:13:38 CET 2003


As requested (let me know if there's anything else you might want):

>From checkcommands.cfg
    <snip>
    # 'check_ifoperstatus' command definition
    define command{
        command_name    check_ifoperstatus
        command_line    $USER1$/check_ifoperstatus
        }
    </snip>

Other check commands work, so $USER1$ is defined just fine. Also,
check_ifoperstatus is working via the command line.

>From services.cfg
    <snip>
    define service{
        use                             generic-service         ; Name of
service template to use
        host_name                       cisco_gateway
        service_description             Ethernet0/0 Status
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  olivier
        notification_interval           240
        notification_period             24x7
        notification_options            c,r
        check_command                   check_ifoperstatus!-H x.x.x.x!-C
foobar!-k 3
        }
    </snip>

Other services against this host work as well, eg. ping. The IPs and
community have been changed to protect the innocent! ;-)

This is what I get in the status.log:
<snip>
[1042063599]
SERVICE;cisco_gateway;PING;OK;1/3;HARD;1042063321;1042063621;ACTIVE;1;1;1;10
42023429;0;OK;191466;0;1190;0;0;0;1;0;5;1;0;0.00;0;1;1;1;PING OK - Packet
loss
= 0%, RTA = 1.65 ms
[1042063599] SERVICE;cisco_gateway;Serial0/0
Status;UNKNOWN;3/3;HARD;1042063289;1042063589;ACTIVE;1;1;1;1042003006;0;UNKN
OWN;120;7523;0;81354;0;0;1;0;2;1;0;0.00;0;1;1;1
;(No output returned from plugin)
</snip>

Thanks,
Olivier


"Subhendu Ghosh" wrote:
> Please post the config...

> On Wed, 8 Jan 2003, Olivier Beauchemin (Budget-Tech IT Consulting) wrote:
>
> > I'm having some trouble getting check_ifoperstatus to work correctly,
which
> > might be my fault...  From the command line, it works just fine,
although
> > failing to print the results on it's own line.
> >
> > ie.
> > [obeauche at mrtg libexec]# ./check_ifoperstatus -H x.x.x.x -C foobar -d
> > Serial0/0
> > OK: Interface Serial0/0 (index 1) is up.[obeauche at mrtg libexec]#
> >
> > With the same arguments in the service.cfg file, it's working... but I
get
> > "(No output returned from plugin)" as the status.
> >
> > So, what does this mean? How do I fix it?
> >
> > Thanks,
> > Olivier



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list