<br><font size=2 face="sans-serif">Hello everyone,</font>
<br>
<br><font size=2 face="sans-serif">I am having some problems to use the check_log plugin on a remote server to watch for pattern changes in the logfiles. I have 2 PC's, PCL38 running fedora core 2 linux whereas i have another Sun System which is SUN275. I have installed the NRPE plugin on both and i have been running multiple services with the plugin. My pcl38 is the terminal i use through which i monitor sun 275. I am getting the status problem of Return Code of 32 is out of bounds whenever i try to use check_log with sun275 although everything works allright with pcl38.</font>
<br>
<br><font size=2 face="sans-serif"># services.cfg</font>
<br><font size=2 face="sans-serif">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font>
<br><font size=3 face="Nimbus Roman No"># Service definition</font>
<br><font size=3 face="Nimbus Roman No">define service{</font>
<br><font size=3 face="Nimbus Roman No">        use                                generic-service                ; Name of service template to use</font>
<br>
<br><font size=3 face="Nimbus Roman No">        host_name                        pcl38</font>
<br><font size=3 face="Nimbus Roman No">        service_description                pcl38 log</font>
<br><font size=3 face="Nimbus Roman No">        is_volatile                        0</font>
<br><font size=3 face="Nimbus Roman No">        check_period                        24x5</font>
<br><font size=3 face="Nimbus Roman No">        max_check_attempts                1</font>
<br><font size=3 face="Nimbus Roman No">        normal_check_interval        10</font>
<br><font size=3 face="Nimbus Roman No">        retry_check_interval                1</font>
<br><font size=3 face="Nimbus Roman No">        contact_groups                Linux-admins,Window-admins</font>
<br><font size=3 face="Nimbus Roman No">        notification_interval                120</font>
<br><font size=3 face="Nimbus Roman No">        notification_period                24x5</font>
<br><font size=3 face="Nimbus Roman No">        notification_options                w,u,c,r</font>
<br><font size=3 face="Nimbus Roman No">        check_command                check_nrpe!check_logpcl38</font>
<br><font size=3 face="Nimbus Roman No">        }</font>
<br>
<br><font size=2 face="sans-serif"># checkcommands.cfg</font>
<br><font size=2 face="sans-serif">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font>
<br><font size=3 face="Nimbus Roman No"># 'check_log' command definition</font>
<br><font size=3 face="Nimbus Roman No">define command{</font>
<br><font size=3 face="Nimbus Roman No">        command_name        check_logpcl38</font>
<br><font size=3 face="Nimbus Roman No">        command_line        $USER1$/check_log -F /var/log/messages -O /var/log/nagioslog/messages -q Error</font>
<br><font size=3 face="Nimbus Roman No">        }</font>
<br>
<br><font size=2 face="sans-serif">On nrpe.cfg</font>
<br><font size=2 face="sans-serif">--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font>
<br>
<br><font size=3 face="Nimbus Roman No">command[check_logpcl38]=/users/stage/frq03383/nagios/libexec/check_log  -F /var/log/messages -O /var/log/nagioslog/messages -q Error</font>
<br>
<br><font size=2 face="sans-serif">This thing works fine, at the first time all my logs from  /var/log/messages were copied to /var/log/nagioslog/messages and then the plugin checks for pattern match between the 2 messages and gives me an alert. There is no problems with this on pcl38.</font>
<br>
<br><font size=2 face="sans-serif">however, i have the following problem on sun275</font>
<br>
<br><font size=2 face="sans-serif">On the nagios console i get the status as : ( Return code of 32 is out of Bounds)</font>
<br>
<br><font size=2 face="sans-serif">The check_log plugin does not seem to work. My configuration is as follws:</font>
<br>
<br><font size=2 face="sans-serif"># services.cfg</font>
<br><font size=2 face="sans-serif">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font>
<br><font size=3 face="Nimbus Roman No"># Service definition</font>
<br><font size=3 face="Nimbus Roman No">define service{</font>
<br><font size=3 face="Nimbus Roman No">        use                                generic-service                ; Name of service template to use</font>
<br>
<br><font size=3 face="Nimbus Roman No">        host_name                        Sun275</font>
<br><font size=3 face="Nimbus Roman No">        service_description                Sun275 log</font>
<br><font size=3 face="Nimbus Roman No">        is_volatile                        0</font>
<br><font size=3 face="Nimbus Roman No">        check_period                        24x5</font>
<br><font size=3 face="Nimbus Roman No">        max_check_attempts        1</font>
<br><font size=3 face="Nimbus Roman No">        normal_check_interval        10</font>
<br><font size=3 face="Nimbus Roman No">        retry_check_interval                1</font>
<br><font size=3 face="Nimbus Roman No">        contact_groups                Linux-admins,Window-admins</font>
<br><font size=3 face="Nimbus Roman No">        notification_interval                120</font>
<br><font size=3 face="Nimbus Roman No">        notification_period        24x5</font>
<br><font size=3 face="Nimbus Roman No">        notification_options                w,u,c,r</font>
<br><font size=3 face="Nimbus Roman No">        check_command                check_nrpe!check_log275</font>
<br><font size=3 face="Nimbus Roman No">        }</font>
<br>
<br><font size=2 face="sans-serif"># checkcommands.cfg</font>
<br><font size=2 face="sans-serif">------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font>
<br><font size=3 face="Nimbus Roman No"># 'check_log' command definition</font>
<br><font size=3 face="Nimbus Roman No">define command{</font>
<br><font size=3 face="Nimbus Roman No">        command_name        check_log275</font>
<br><font size=3 face="Nimbus Roman No">        command_line        $USER1$/check_log -F /var/adm/messages -O /users/stage/frq03383/nagioslog/sun275/messages -q Error</font>
<br><font size=3 face="Nimbus Roman No">                }</font>
<br>
<br>
<br><font size=2 face="sans-serif">nrpe.cfg</font>
<br><font size=2 face="sans-serif">---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</font>
<br>
<br><font size=3 face="Nimbus Roman No">command[check_logpcl38]=/usr/local/nagios/libexec/check_log  -F /var/adm/messages -O /users/stage/frq03383/nagioslog/sun275/messages -q Error</font>
<br>
<br><font size=3 face="Nimbus Roman No">so this is it, one works the other doesn't particularly the remote server , what am i doing wrong and what does that return code of 32 means, couls someone please help me out.</font>
<br>
<br><font size=3 face="Nimbus Roman No">thanks,</font>
<br><font size=3 face="Nimbus Roman No">Subhadeep</font>
<br>