In services:<br>
<br>
<br>
define service{<br>
use
generic-service ; Name
of service template to us<br>
host_name
nagonet<br>
service_description
Root Partition<br>
is_volatile
0<br>
check_period
24x7<br>
max_check_attempts
4<br>
normal_check_interval 5<br>
retry_check_interval
1<br>
contact_groups
nagiosadmin<br>
notification_options
w,u,c,r<br>
notification_interval 960<br>
notification_period
24x7<br>
check_command
check_local_disk!20%!10%!/<br>
}<br>
<br>
# Define a service to check the number of currently logged in<br>
# users on the local machine. Warning if > 20 users, critical<br>
# if > 50 users.<br>
<br>
define service{<br>
use
generic-service ; Name
of service template to use
host_name
nagonet<br>
service_description
Current Users<br>
is_volatile
0<br>
check_period
24x7<br>
max_check_attempts
4<br>
normal_check_interval 5<br>
retry_check_interval 1<br>
contact_groups
nagiosadmin<br>
notification_options
w,u,c,r<br>
notification_interval 960<br>
notification_period
24x7<br>
check_command
check_local_users!20!50<br>
}<br>
<br>
<br>
# Define a service to check the number of currently running procs<br>
# on the local machine. Warning if > 250 processes, critical if<br>
# > 400 users.<br>
<br>
define service{<br>
use
generic-service ; Name of service
template to use
host_name
nagonet<br>
service_description
Total Processes<br>
is_volatile
0<br>
check_period
24x7<br>
max_check_attempts
4<br>
normal_check_interval 5<br>
retry_check_interval
1<br>
contact_groups
nagiosadmin<br>
notification_options
w,u,c,r<br>
notification_interval 960<br>
notification_period
24x7<br>
check_command
check_local_procs!250!400<br>
<br>
# Define a service to check the load on the local machine.<br>
<br>
define service{<br>
use
generic-service ; Name
of service template to use
host_name
nagonet<br>
service_description
Current Load<br>
is_volatile
0<br>
check_period
24x7<br>
max_check_attempts
4<br>
normal_check_interval 5<br>
retry_check_interval
1<br>
contact_groups
nagiosadmin<br>
notification_options
w,u,c,r<br>
notification_interval 960<br>
notification_period
24x7<br>
check_command
check_local_load!5.0,4.0,3.0!10.0,6.0,4.0<br>
}<br>
<br>
<br><br><div><span class="gmail_quote">On 8/1/06, <b class="gmail_sendername">Hugo van der Kooij</b> <<a href="mailto:hvdkooij@vanderkooij.org">hvdkooij@vanderkooij.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 1 Aug 2006, Justin Craig wrote:<br><br>> I added my localhost as a host and defined it in services and hostgroups.<br>> added services: current load, current users, root partition, and total<br>> process. Anyway nagios tells me the host is down and returns the message in
<br>> this subject line. Any ideas?<br><br>Just what did you add exactly? It would be nice to see the relevant<br>config sections. The error seems to indicate you have an issue with your<br>load service.<br><br>Hugo.<br>
<br>--<br> I hate duplicates. Just reply to the relevant mailinglist.<br> <a href="mailto:hvdkooij@vanderkooij.org">hvdkooij@vanderkooij.org</a> <a href="http://hvdkooij.xs4all.nl/">http://hvdkooij.xs4all.nl/
</a><br> Don't
meddle in the affairs of magicians,<br> for
they are subtle and quick to anger.<br><br>-------------------------------------------------------------------------<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your
<br>opinions on IT & business topics through brief surveys -- and earn cash<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null
<br></blockquote></div><br><br clear="all"><br>-- <br> - Justin