check_nwstat Help


#1

Hi,

Trying to get nagios to complete basic monitoring of a few netware servers. When i have it configured in nagios it always comes up as “UNKNOWN - Nothing to Check!” yet if i manual type the command(on console) in it will return the correct values. I’m not sure if this is something i’m doing wrong with the setup or if the plugin just doesn’t work in nagios.

Console:

user@server: /usr/local/nagios/libexec/ # ./check_nwstat -H XXX.XXX.XXX.XXX -v CBUFF -w 50000 -c 2000 OK: Total cache buffers = 69494|Cachebuffers=69494;50000;20000;;

Nagios Command:

# 'check_nwstat' Command Def define command { command_name check_nwstat command_line $USER1$/check_nwstat -H $HOSTADDRESS$ v-$ARG1$ -w $ARG2$ -c $ARG3$ }

Nagios Service:

define service { host_name fsp1 service_description Cachebuffers check_command check_nwstat!CBUFF!50000!20000 max_check_attempts 3 normal_check_interval 10 retry_check_interval 1 active_checks_enabled 1 check_period 24x7 parallelize_check 1 check_freshness 0 process_perf_data 1 retain_status_information 1 contact_groups admins notification_interval 0 notification_period 24x7 notification_options w,c,r notifications_enabled 1 register 1 }

If someone can point out what im doing wrong that would be great.

Thanks


#2

that “user” in user@server is nagios?
Did you paste the complete line? -c is 2000 but in the perdata it’s 20000 (in your service definition too by the way).
Is the check scheduled and executed? any info from the verify-config?


#3

Check is running is nagios. Config verify’s fine.

Yes I missed the end of the line when I copied. sorry.

User is the Nagios user, Setup from the quickstart guide for opensuse.

[code]user@server:/> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios 3.0.6
Copyright © 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data…

Running pre-flight check on configuration data…

Checking services…
Checked 9 services.
Checking hosts…
Checked 2 hosts.
Checking host groups…
Checked 1 host groups.
Checking service groups…
Checked 0 service groups.
Checking contacts…
Checked 1 contacts.
Checking contact groups…
Checked 1 contact groups.
Checking service escalations…
Checked 0 service escalations.
Checking service dependencies…
Checked 0 service dependencies.
Checking host escalations…
Checked 0 host escalations.
Checking host dependencies…
Checked 0 host dependencies.
Checking commands…
Checked 25 commands.
Checking time periods…
Checked 5 time periods.
Checking for circular paths between hosts…
Checking for circular host and service dependencies…
Checking global event handlers…
Checking obsessive compulsive processor commands…
Checking misc settings…

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check[/code]

Here is what i get in nagios

[code]Current Status: UNKNOWN (for 0d 0h 17m 38s)
Status Information: Nothing to check!

Performance Data:
Current Attempt: 3/3 (HARD state)
Last Check Time: 06-05-2009 18:06:36
Check Type: ACTIVE
Check Latency / Duration: 0.192 / 0.014 seconds
Next Scheduled Check: 06-05-2009 18:16:36
Last State Change: 06-05-2009 17:52:01
Last Notification: N/A (notification 1)
Is This Service Flapping? NO (11.32% state change)
In Scheduled Downtime? NO
Last Update: 06-05-2009 18:09:30 ( 0d 0h 0m 9s ago
[/code]

Any Idea’s?


#4

Not having a novell server excluding the “easiest” errors was my only option… do the other checks work or is it only the CBUFF?


#5

SOLVED, the problem. I had a error in my config… thanks for the help.