How to get reboot messages
Matthew Richardson
matthew-ln at itconsult.co.uk
Wed Dec 5 09:36:03 CET 2007
Sample command and uptime service is below. I have taken it from
objects.cache to show all the details. Note that is is volatile and only
alerts on warnings:-
|define command {
| command_name check_snmp_uptime
| command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o 1.3.6.1.2.1.1.3.0 -w 42000: -t 45
| }
|define service {
| host_name xxx
| service_description uptime
| check_period 24x7
| check_command check_snmp_uptime!readcommunity
| contact_groups xxx
| notification_period 24x7
| initial_state o
| check_interval 5.000000
| retry_interval 5.000000
| max_check_attempts 1
| is_volatile 1
| parallelize_check 1
| active_checks_enabled 1
| passive_checks_enabled 1
| obsess_over_service 1
| event_handler_enabled 1
| low_flap_threshold 0.000000
| high_flap_threshold 0.000000
| flap_detection_enabled 1
| flap_detection_options o,w,u,c
| freshness_threshold 0
| check_freshness 0
| notification_options w
| notifications_enabled 1
| notification_interval 0.000000
| first_notification_delay 0.000000
| stalking_options n
| process_perf_data 1
| failure_prediction_enabled 1
| retain_status_information 1
| retain_nonstatus_information 1
| }
This config will occasionally give two successive warnings for one reboot,
which I intend to adjust in due course.
Hope this helps.
Best wishes,
Matthew
------
>From: "chris serafin" <chrisserafin at gmail.com>
>To: "Matthew Richardson" <matthew-ln at itconsult.co.uk>
>Cc:
>Date: Tue, 4 Dec 2007 13:45:22 -0600
>Subject: Re: [Nagios-users] How to get reboot messages
>Any chance you could post your service/command configs?
>
>Chris
>
>On Dec 1, 2007 3:05 AM, Matthew Richardson <matthew-ln at itconsult.co.uk>
>wrote:
>
>> SNMP works fine in Windows for uptime monitoring...
>>
>> Best wishes,
>> Matthew
>> ------
>> >From: "chris serafin" <chrisserafin at gmail.com>
>> >To: "Steve Shipway" <s.shipway at auckland.ac.nz>
>> >Cc: Nagios-users at lists.sourceforge.net
>> >Date: Thu, 29 Nov 2007 15:08:37 -0600
>> >Subject: Re: [Nagios-users] How to get reboot messages
>>
>> >So SNMP won't work with Windows? Damn, clients hate extra software. :(
>>
>>
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
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