Services Not being checked

Giorgio Zarrelli zarrelli at linux.it
Wed May 18 14:29:06 CEST 2011


Hi

I'm on mobile so I can miss something.

Can you show me the printer-service template definition?

Ciao,

Giorgio

Il giorno 18/mag/2011, alle ore 13:54, "Stephanie Gelder" <Stephanie_Gelder at walkergreenbank.co.uk> ha scritto:

> Hi.
>  
> I'm ok with Nagios, but I'm not linux guru so treat me gently :)
>  
> 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.
>  
> I am running Nagios Core 3.2.3 on Fedora Linux.
> [root at nagios]# uname -a
> 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
>  
> 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.
>  
> I'm stuck as to why these services are either not being checked or put forward to only check them in a weeks time.
>  
> All my switches that work are in a group called generic-switch 
>  
> 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.
>  
> Stephanie
>  
> In the nagios.log file after trying to run a service the second time it shows up as below:-
>  
> Warning: Check of service 'PING' on host 'ANS-ACCOUNTS01' could not be rescheduled properly. Scheduling check for next week...
> [1305715325] Warning: Check of service 'Printer Status' on host 'ANS-ACCOUNTS01' could not be rescheduled properly.  Scheduling check for next week...
>  
> So using this example:-
>  
> printers.cfg includes
>  
> define host{
>         use             novell-printer
>         host_name       ANS-ACCOUNTS01
>         alias           Dell Colour Laser 5110cn 
>         parents         LGH-242
>          icon_image      printer.png
>         statusmap_image printer.gd2
>         address         ***.***.***.***
>         }
>  
> 
> define hostgroup{
>         hostgroup_name  LGH-NOV
>         alias           *** - Novell Printers
>         members         **,ANS-ACCOUNTS01,**,**,**,**,**
>         }
> define service{
>         use                     printer-service
>         host_name               ANS-ACCOUNTS01,**,**,**,**,**
>         service_description     Printer Status
>         check_command           check_printer!
>         normal_check_interval   2
>         retry_check_interval    1
>         }
>  
> define service{
>         use                     printer-service
>         host_name               ANS-ACCOUNTS01,**,**,**,**
>         service_description     PING
>         check_command           check_ping!3000.0,80%!5000.0,100%
>         normal_check_interval   5
>         retry_check_interval    1
>         }
> In the templates.cfg file:-
>  
> 
> define host{
>         name                            generic-host    ; The name of this host template
>         notifications_enabled           1               ; Host notifications are enabled
>         event_handler_enabled           1               ; Host event handler is enabled
>         flap_detection_enabled          1               ; Flap detection is enabled
>         failure_prediction_enabled      1               ; Failure prediction is enabled
>         process_perf_data               1               ; Process performance data
>         retain_status_information       1               ; Retain status information across program restarts
>         retain_nonstatus_information    1               ; Retain non-status information across program restarts
>         notification_period             24x7            ; Send host notifications at any time
>         register                        0               ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
>         }
> 
> define host{
>         name                    novell-printer          ; The name of this host template
>         use                     generic-host            ; Inherit these default values
>         check_period            24x7                    ; By default, printers are monitored round the clock
>         check_interval          2                       ; Actively check the printer every 2 minutes
>         retry_interval          1                       ; Schedule host check retries at 1 minute intervals
>         max_check_attempts      10                      ; Check each printer 10 times (max)
>         check_command           check-host-alive        ; Default command to check if printers are "alive"
>         notification_period     24x7                    ; Printers are only used during the workday
>         notification_interval   60                      ; Resend notifications every 30 minutes
>         notification_options    d,r                     ; Only send notifications for specific host states
>         contact_groups          admins                  ; Notifications get sent to the admins by default
>         register                0                       ; DONT REGISTER THIS - ITS JUST A TEMPLATE
>         }
> 
>  
> In the timeperiods.cfg file:-
> define timeperiod{
>         timeperiod_name 24x7
>         alias           24 Hours A Day, 7 Days A Week
>         sunday          00:00-24:00
>         monday          00:00-24:00
>         tuesday         00:00-24:00
>         wednesday       00:00-24:00
>         thursday        00:00-24:00
>         friday          00:00-24:00
>         saturday        00:00-24:00
>         }
> 
>  
>  
> 
> 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. 
> 
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its 
> next-generation tools to help Windows* and Linux* C/C++ and Fortran 
> developers boost performance applications - including clusters. 
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110518/6e771d88/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list