<html><body bgcolor="#FFFFFF"><div>Hi,</div><div><br></div><div>great, but I did nothing, you found the solution. What a pity, I do not deserve the reward ;-)<br><br>Ciao,<div><br></div><div>Giorgio</div></div><div><br>Il giorno 18/mag/2011, alle ore 15:26, "Stephanie Gelder" <<a href="mailto:Stephanie_Gelder@walkergreenbank.co.uk">Stephanie_Gelder@walkergreenbank.co.uk</a>> ha scritto:<br><br></div><div></div><blockquote type="cite"><div>
<div>Hi Giorgio</div>
<div> </div>
<div>THANK YOU.</div>
<div> </div>
<div>What an idiot I am. I copied a load the stuff over from the old server but of course, I had not copied over the printer-service settings, as a quick check I changed it back to generic-service and it's started to work straight away, as soon as you said that I realised what I have done. I've tested and had the services go onto the second attempt which is when they put it off for a week, and it's worked. </div>
<div> </div>
<div>One last time. THANK YOU, I could kiss you I'm so happy!!!!!!</div>
<div> </div>
<div>Stephanie<br><br>>>> </div>
<table style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border="0" bgcolor="#f3f3f3">
<tbody>
<tr>
<td>
<div style="BORDER-LEFT: #050505 1px solid; PADDING-LEFT: 7px">
<table style="FONT: 9pt Segoe UI" bgcolor="#f3f3f3">
<tbody>
<tr valign="top">
<td><strong>From: </strong></td>
<td>Giorgio Zarrelli <<a href="mailto:zarrelli@linux.it">zarrelli@linux.it</a>></td></tr>
<tr valign="top">
<td><strong>To:</strong></td>
<td>Nagios Users List <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>></td></tr>
<tr valign="top">
<td><strong>CC:</strong></td>
<td>"<<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>>" <<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>></td></tr>
<tr valign="top">
<td><strong>Date: </strong></td>
<td>18/05/2011 13:50</td></tr>
<tr valign="top">
<td><strong>Subject: </strong></td>
<td>Re: [Nagios-users] Services Not being checked</td></tr></tbody></table>
<div>Hi</div>
<div><br></div>
<div>I'm on mobile so I can miss something.</div>
<div><br></div>
<div>Can you show me the printer-service template definition?</div>
<div><br>Ciao,
<div><br></div>
<div>Giorgio</div></div>
<div><br>Il giorno 18/mag/2011, alle ore 13:54, "Stephanie Gelder" <<a href="mailto:Stephanie_Gelder@walkergreenbank.co.uk"><a href="mailto:Stephanie_Gelder@walkergreenbank.co.uk">Stephanie_Gelder@walkergreenbank.co.uk</a></a>> ha scritto:<br><br></div>
<div></div>
<blockquote type="cite">
<div>
<div>Hi.</div>
<div> </div>
<div>I'm ok with Nagios, but I'm not linux guru so treat me gently :)</div>
<div> </div>
<div>I have reinstalled Nagios onto a new Server it was running on a very old pc that had hardware issues. So I've now re-installed it on a Dell R300 with 16 Gig of memory complete overkill but it's what I had available.</div>
<div> </div>
<div>I am running Nagios Core 3.2.3 on Fedora Linux.</div>
<div>[root@nagios]# uname -a<br>Linux nagios.***.*** 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux</div>
<div> </div>
<div>I have problems with checking services I have at the moment 107 devices on it printers and switches, (the old bashed up PC had around 300 devices on it and worked fine before the hardware died). Anyway I am trying to monitor services and for all the switches it seems fine, but for all of the printers it's not working. Automatically so I am wondering if i've done something wrong but I cannot work out what is wrong it all appears to be fine, please see below. But when I try monitoring services it will start and for the odd printer work fine but the next printer in the list it will not work for and what happens is it check the service once and it's fine but then when it comes to do the second check on either the check_ping or check_printer service it either disables checking the service or moves the date forward a week for the next check. </div>
<div> </div>
<div>I'm stuck as to why these services are either not being checked or put forward to only check them in a weeks time.</div>
<div> </div>
<div>All my switches that work are in a group called generic-switch </div>
<div> </div>
<div>I've tried putting half a dozen of the printers into generic-switch instead of novell-printer and they have exactly the same results so I don't think it's got anything to do with that. Any help would be appreciated.</div>
<div> </div>
<div>Stephanie</div>
<div> </div>
<div>In the nagios.log file after trying to run a service the second time it shows up as below:- </div>
<div> </div>
<div>Warning: Check of service 'PING' on host 'ANS-ACCOUNTS01' could not be rescheduled properly. Scheduling check for next week...</div>
<div>[1305715325] Warning: Check of service 'Printer Status' on host 'ANS-ACCOUNTS01' could not be rescheduled properly. Scheduling check for next week...<br></div>
<div> </div>
<div>So using this example:- </div>
<div> </div>
<div>printers.cfg includes</div>
<div> </div>
<div>define host{<br> use novell-printer<br> host_name ANS-ACCOUNTS01<br> alias Dell Colour Laser 5110cn </div>
<div> parents LGH-242<br> icon_image printer.png<br> statusmap_image printer.gd2<br> address ***.***.***.***<br> }</div>
<div> </div>
<div><br>define hostgroup{<br> hostgroup_name LGH-NOV<br> alias *** - Novell Printers<br> members **,ANS-ACCOUNTS01,**,**,**,**,**<br> }<br></div>
<div>define service{<br> use printer-service<br> host_name ANS-ACCOUNTS01,**,**,**,**,**<br> service_description Printer Status<br> check_command check_printer!<br> normal_check_interval 2<br> retry_check_interval 1<br> }</div>
<div> </div>
<div>define service{<br> use printer-service<br> host_name ANS-ACCOUNTS01,**,**,**,**</div>
<div> service_description PING<br> check_command check_ping!3000.0,80%!5000.0,100%<br> normal_check_interval 5<br> retry_check_interval 1<br> }<br></div>
<div>In the templates.cfg file:-</div>
<div> </div>
<div><br>define host{<br> name generic-host ; The name of this host template<br> notifications_enabled 1 ; Host notifications are enabled<br> event_handler_enabled 1 ; Host event handler is enabled<br> flap_detection_enabled 1 ; Flap detection is enabled<br> failure_prediction_enabled 1 ; Failure prediction is enabled<br> process_perf_data 1 ; Process performance data<br> retain_status_information 1 ; Retain status information across program restarts<br> retain_nonstatus_information 1 ; Retain non-status information across program restarts<br> notification_period 24x7 ; Send host notifications at any time<br> register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!<br> }</div>
<div><br>define host{<br> name novell-printer ; The name of this host template<br> use generic-host ; Inherit these default values<br> check_period 24x7 ; By default, printers are monitored round the clock<br> check_interval 2 ; Actively check the printer every 2 minutes<br> retry_interval 1 ; Schedule host check retries at 1 minute intervals<br> max_check_attempts 10 ; Check each printer 10 times (max)<br> check_command check-host-alive ; Default command to check if printers are "alive"<br> notification_period 24x7 ; Printers are only used during the workday<br> notification_interval 60 ; Resend notifications every 30 minutes<br> notification_options d,r ; Only send notifications for specific host states<br> contact_groups admins ; Notifications get sent to the admins by default<br> register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE<br> }<br></div>
<div><br> </div>
<div>In the timeperiods.cfg file:-</div>
<div>define timeperiod{<br> timeperiod_name 24x7<br> alias 24 Hours A Day, 7 Days A Week<br> sunday 00:00-24:00<br> monday 00:00-24:00<br> tuesday 00:00-24:00<br> wednesday 00:00-24:00<br> thursday 00:00-24:00<br> friday 00:00-24:00<br> saturday 00:00-24:00<br> }<br><br></div>
<div> </div>
<div> </div><font color="#000000" bgcolor="#ffffff">
<h5><br>
<hr>
IMPORTANT This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and delete the email. Walker Greenbank PLC is a company registered in England and Wales registered number 61880. Registered office: Chalfont House, Oxford Road, Denham UB9 4DX. <br>
<hr>
</h5></font></div></blockquote>
<blockquote type="cite">
<div><span>------------------------------------------------------------------------------</span><br><span>What Every C/C++ and Fortran developer Should Know!</span><br><span>Read this article and learn how Intel has extended the reach of its </span><br><span>next-generation tools to help Windows* and Linux* C/C++ and Fortran </span><br><span>developers boost performance applications - including clusters. </span><br><span><a href="http://p.sf.net/sfu/intel-dev2devmay"><a href="http://p.sf.net/sfu/intel-dev2devmay">http://p.sf.net/sfu/intel-dev2devmay</a></a></span></div></blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br><span>Nagios-users mailing list</span><br><span><a href="mailto:Nagios-users@lists.sourceforge.net"><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a></a></span><br><span><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></a></span><br><span>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </span><br><span>::: Messages without supporting info will risk being sent to /dev/null</span></div></blockquote></div></td></tr></tbody></table>
<font bgcolor="#ffffff" color="#000000"><h5><br><hr>
IMPORTANT
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and delete the email.
Walker Greenbank PLC is a company registered in England and Wales registered number 61880. Registered office: Chalfont House, Oxford Road, Denham UB9 4DX.
<br><hr></h5></font>
</div></blockquote><blockquote type="cite"><div><span>------------------------------------------------------------------------------</span><br><span>What Every C/C++ and Fortran developer Should Know!</span><br><span>Read this article and learn how Intel has extended the reach of its </span><br><span>next-generation tools to help Windows* and Linux* C/C++ and Fortran </span><br><span>developers boost performance applications - including clusters. </span><br><span><a href="http://p.sf.net/sfu/intel-dev2devmay">http://p.sf.net/sfu/intel-dev2devmay</a></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Nagios-users mailing list</span><br><span><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a></span><br><span><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></span><br><span>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </span><br><span>::: Messages without supporting info will risk being sent to /dev/null</span></div></blockquote></body></html>