Unable to use check_bgp and check_catalyst_mem

Cosmin Neagu cosmin.neagu at omnilogic.ro
Tue Nov 1 09:01:14 CET 2011


Hi,
Can anyoune help me understand what is wrong with those definitions? Please.





On 10/31/2011 10:33 AM, Cosmin Neagu wrote:
> Actually, i have another one in the same situation, when executed 
> manualy, it is working:
>
> /nagios at mon2:/usr/local/nagios/libexec$ ./check_catalyst_mem.pl -s 
> 172.31.0.100 -C xxx -w 30 -c 20
> OK:  I/O: valid, Used: 25189592B Free: 41919272B (62%)! Processor: 
> valid, Used: 114067808B Free: 801243696B (87%)!|WARING <= 30%, 
> CRITICAL <= 20%/
>
> But, when i define a service for it, it does not do the checking 
> corectly: Status Critical and null status information:
>
>
> /define command {
>         command_name check_catalyst_mem
>         command_line $USER1$/check_catalyst_mem.pl -s $HOSTADDRESS$ $ARG1$
> }
>
> define service {
>         use                     generic-service
>         host_name               VSS6509
>         service_description     Memory
>         check_command           check_catalyst_mem!-C xxx -w 30 -c 20
> }/
>
> What's wrong with this definitions and why nagios does not check corect?
>
>
>   Cosmin Neagu
>
>
> On 10/31/2011 10:22 AM, Cosmin Neagu wrote:
>> Hello,
>> I'm trying to monitor bgp session, and i came upon the following 
>> script check_bgp.
>> When i run it manually, it checks the bgp session OK:
>>
>> /nagios at mon2:/usr/local/nagios/libexec$ ./check_bgp.pl -H X.X.X.X -C 
>> xxx -p Y.Y.Y.Y
>> OK - Y.Y.Y.Y (AS12345) state is established(6). Established for 
>> 69d9h34m43s. Last error "Hold Timer Expired".
>> /
>>
>> But, when i define the command, and add a service for it, it does not 
>> work. In nagios, i get CRITICAL status and /null/ Status information.
>> Using nagios 3.2.3
>>
>>
>>
>>
>> /define command {
>>         command_name check_bgp
>>         command_line $USER1$/check_bgp.pl -H $HOSTADDRESS$ $ARG1$
>> }/
>> /define service {
>>         use                             generic-service
>>         host_name                  EDGE
>>         service_description     eBGP to AS12345
>>         check_command           check_bgp!-C abcd -p Y.Y.Y.Y
>> }/
>>
>> So, what am i doing wrong? I have about 300 diferent services, and 
>> all checks works fine, this is the first time when a script works 
>> when invoked manually but not when invoked by nagios. Please help.
>>
>>
>>
>> -- 
>>   Cosmin Neagu
>>
>
>
> ------------------------------------------------------------------------------
> Get your Android app more play: Bring it to the BlackBerry PlayBook
> in minutes. BlackBerry App World™ now supports Android™ Apps
> for the BlackBerry® PlayBook™. Discover just how easy and simple
> it is! http://p.sf.net/sfu/android-dev2dev
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111101/b60c4c21/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
-------------- next part --------------
_______________________________________________
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