Re: [Nagios-users] Unable to use check_bgp and check_catalyst_mem
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@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@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@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 -- RSA® Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Unable to use check_bgp and check_catalyst_mem
Actually, i have another one in the same situation, when executed manualy, it is working: /nagios@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@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@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
[Nagios-users] Unable to use check_bgp
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@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@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