|
Hi Steve i just working the first time with nsca and i just configured the server is like the doc of nagios describes i get following error in the nagios server "Incorrect number of arguments supplied "
from windows Eventlog agent, i can send a test with out any problems here is a copy of the msg: msg files Sep 12 07:10:40 winnagios2 nsca[12935]: SERVICE CHECK -> Host Name: 'ICCREACRMDB_FM', Service Description: 'Application EventLog', Return Code: '2', Output: 'Application [error] [NagiosEventLog Test #12]: prova '
and, i can send true problems here is a copy of the msg: msg files
Sep 12 07:48:53 winnagios2 nsca[12722]: SERVICE CHECK -> Host Name: 'ICCREACRMDB_FM', Service Description: 'Event Viewer Application', Return Code: '2', Output: 'Application [warning] [VxSvc_PercPro #571]: PERC 4/SC Controller 0, Array Disk 0:1 Sense Key = 4, Sense Code = 44, Sense Qualifier = 92. Please refer to the Array Manager Documentation for details. '
but i recived this problem Host Service Status Last Check Duration Attempt Status Information ICCREACRMDB_FM Event Viewer Application UNKNOWN 12-09-2008 09:03:03 0d 0h 57m 49s 1/1 Incorrect number of arguments supplied Event Viewer System UNKNOWN 12-09-2008 09:03:03 0d 0h 57m 49s 1/1 Incorrect number of arguments supplied EventLog Agent UNKNOWN 12-09-2008 09:03:03 0d 21h 29m 27s 1/1 Incorrect number of arguments supplied
My configs: define service{ use EventLog service_description Event Viewer Application host_name ICCREACRMDB_FM active_checks_enabled 0 passive_checks_enabled 1 flap_detection_enabled 0 register 0 is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 5 retry_check_interval 1 check_freshness 1 freshness_threshold 1800 check_command check_dummy!0!No messages in last 30mins notification_interval 120 contact_groups admins notification_period 24x7 notification_options w,u,c,r stalking_options w,c,u name EventLog register 0 }
define service{
use EventLog service_description EventLog Agent host_name ICCREACRMDB_FM active_checks_enabled 0 passive_checks_enabled 1 flap_detection_enabled 0 check_period 24x7 max_check_attempts 1 normal_check_interval 10 retry_check_interval 1 check_command check_dummy!3!Check agent is running contact_groups admins notification_interval 120 notification_period 24x7 notification_options c,r }
define service{ contact_groups admins use EventLog service_description Event Viewer Application host_name ICCREACRMDB_FM } define service{ contact_groups admins use EventLog service_description Event Viewer System host_name ICCREACRMDB_FM }
My filter
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Cheshire Cat]
[HKEY_LOCAL_MACHINE\SOFTWARE\Cheshire Cat\Nagios] "nscaPassword"="nagios" "MyHostname"="ICCREACRMDB_FM" "NSCAD"="10.104.1.14" "Port"=dword:00001623 "encryptionMethod"=dword:00000001 "DEBUG"=dword:00000000 "logAlerts"=dword:00000000 "maxFilter"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Cheshire Cat\Nagios\Filter0] "filterDesc"="System Log" "eventLog"=dword:00000002 "eventLogName"="Security" "serviceName"="System EventLog" "ID"="" "matchString"="" "source"="" "Information"=dword:00000000 "status"=dword:00000002 "Warning"=dword:00000000 "Error"=dword:00000001 "Audit Success"=dword:00000000 "Audit Failure"=dword:00000000 "notID"=dword:00000000 "notMatch"=dword:00000000 "notSource"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Cheshire Cat\Nagios\Filter1] "filterDesc"="Application Eventlog" "eventLog"=dword:00000001 "eventLogName"="Application" "serviceName"="Application EventLog" "ID"="" "matchString"="" "source"="" "Information"=dword:00000000 "status"=dword:00000002 "Warning"=dword:00000000 "Error"=dword:00000001 "Audit Success"=dword:00000000 "Audit Failure"=dword:00000000 "notID"=dword:00000000 "notMatch"=dword:00000000 "notSource"=dword:00000000
Thanks very much Diego
|