| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Trouble with nagevlog http://www.steveshipway.org/forum/viewtopic.php?f=22&t=602 |
Page 1 of 1 |
| Author: | vtaltos_1 [ Wed May 11, 2005 4:36 am ] |
| Post subject: | Trouble with nagevlog |
Steve, I have nsca setup on my nagios 1.2 box and I have the send_nsca setup on my windows 2k box correctly. But when I try to setup the service in nagios using two different services definitions that I found as examples I am getting the following messsages. #define service { # service_description Event Log # host_name tech-dvd # active_checks_enabled 1 # check_period 24x7 # passive_checks_enabled 1 # flap_detection_enabled 0 # notification_period 24x7 # max_check_attempts 1 # normal_check_interval 5 # notification_options c,r # check_freshness 1 # 1800 sec = 30 min # freshness_threshold 1800 # check_command ok!No alerts in last 30 min #} Error: Invalid max_attempts, check_interval, retry_interval, or notification_int erval value for service 'Event Log' on host 'tech-dvd' Error: Could not register service (config file '/usr/local/nagios/etc/services.c fg', line 6187) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation on the main and host config files, as well as the 'Whats New' section to find out what has changed. #define service { # service_description EventLog # host_name tech-dvd # active_checks_enabled 1 # check_period none # passive_checks_enabled 1 ; passive checks allowed # flap_detection_enabled 0 # is_volatile 1 ; allow to change frequently # notification_period 24x7 # max_check_attempts 1 ; number of fails before alert # normal_check_interval 5 ; should be 5 # notification_options ,c,r # stalking_options w,c,u ; track changes of alert message as well #} Reading configuration data... Error: Service description, host name, or check command is NULL Error: Could not register service (config file '/usr/local/nagios/etc/services.cfg', line 6187) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation on the main and host config files, as well as the 'Whats New' section to find out what has changed. And the windows machine keeps putting errors in the event log about missing dll's. I am able to telnet to my nagios box on port 5667 and get a bunch of weird characters to come back. I am hoping that you can help me out. Thanks, Don |
|
| Author: | stevesh [ Wed May 11, 2005 2:10 pm ] |
| Post subject: | |
Does the Windows host say *which* DLLs are missing? If so, please let me know. You do not need send_nsca installed on the windows box, although it will not cause any problems. You need to specify a check_command, even if it is null. We have a dummy check called 'ok' that returns status 0 (see the example) Can you post the relevant services.cfg section exactly as in your file? The leading # characters I assume you added to highlight -- they shouldnt be in the real file. |
|
| Author: | vtaltos_1 [ Thu May 12, 2005 3:52 am ] |
| Post subject: | Trouble with nagevlog |
Steve, It now appears to be working from the windows side because this morning I saw thes messages in in my /var/log/messages file on my nagios box. May 11 09:29:03 nagios nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;tech-dvd;System EventLog;2;System [warning] [w32time #64]: Because of repeated network problems, the time service has not been able to find a domain controller to synchronize with for a long time. To reduce network traffic, the time service will wait 960 minutes before trying again May 11 09:29:03 nagios nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;tech-dvd;System EventLog;2;System [warning] [w32time #64]: Because of repeated network problems, the time service has not been able to find a domain controller to synchronize with for a long time. To reduce network traffic, the time service will wait 960 minutes before trying again May 11 09:29:04 nagios nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;tech-dvd;Application EventLog;2;Application [error] [evtsys #1]: Cannot initialize access to registry: "Software\ECN\EvtSys\3.0": The operation completed successfully. May 11 09:29:04 nagios nagios: Warning: Message queue contained results for service 'System EventLog' on host 'tech-dvd'. The service could not be found! May 11 09:29:04 nagios nagios: Warning: Message queue contained results for service 'System EventLog' on host 'tech-dvd'. The service could not be found! May 11 09:29:04 nagios nagios: Warning: Message queue contained results for service 'Application EventLog' on host 'tech-dvd'. The service could not be found! May 11 09:29:05 nagios nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;tech-dvd;Application EventLog;2;Application [error] [nagios eventlog monitor #1]: Test message May 11 09:29:14 nagios nagios: Warning: Message queue contained results for service 'Application EventLog' on host 'tech-dvd'. The service could not be found! May 11 09:29:28 nagios nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;tech-dvd;Application EventLog;2;Application [error] [nagios eventlog monitor #1]: Test message May 11 09:29:34 nagios nagios: Warning: Message queue contained results for service 'Application EventLog' on host 'tech-dvd'. The service could not be found! but when I run the nagios pre-flight check I get a error about Error: Service check command 'ok' specified in service 'Event Log' for host 'tech-dvd' not defined anywhere! where do I put this command so I don't get the error and nagios can start correctly.. Thanks, Don |
|
| Author: | vtaltos_1 [ Thu May 12, 2005 4:22 am ] |
| Post subject: | Steve |
I figured out the command thing I think, I put a ok command in my chechcommands.cfg file with a null for the command and I ran a test message fro my windows box with a error condition and I did get a page about it but nagios is displaying this message now. tech-dvd System EventLog CRITICAL 05-11-2005 10:16:03 0d 0h 8m 58s 1/1 (Return code of 127 is out of bounds - plugin may be missing) Wondering if you had a clue? Thanks, Don |
|
| Author: | stevesh [ Thu May 12, 2005 10:55 am ] |
| Post subject: | |
| Author: | vtaltos_1 [ Fri May 13, 2005 3:59 am ] |
| Post subject: | Trouble with nagevlog |
| Author: | stevesh [ Fri May 13, 2005 11:03 am ] |
| Post subject: | |
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|