I have attached&nbsp; the scripts.&nbsp; <br><br>Entries in /etc/nagios/minimal.cfg<br><br># Command to check mythtv on the local machine<br><br>define command{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_local_mythtv<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; $USER1$/check_tcp -w $ARG1$ -c $ARG2$ -p6543
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>****Check tcp is part of the nagios distribution. I use 60 and 120 for -w and -c.<br><br>check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_local_mythtv!60!120<br>-----------------------------------------------------------------------------------------------------------------------------
<br><br># Command to check smart status on the local machine<br><br>define command{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_local_smart<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; $USER1$/check_smart.pl $ARG1$<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>****I got this one from the internet somewhere.&nbsp; I use 
<br><br>check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_local_smart!-td/dev/hda<br><br>--------------------------------------------------------------------------------------------------------------------------------<br><br># Command to check the CPU temperature status
<br><br>define command{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_local_cpu<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; $USER1$/check_cpu_temp<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_local_cpu<br>---------------------------------------------------------------------------------------------------------------------------------
<br><br># Command to check the motherboard temperature status<br><br>define command{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_local_mb<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; $USER1$/check_mb_temp<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_local_mb
<br>--------------------------------------------------------------------------------------------------------------------------------<br><br># Command to check the fan status<br><br>define command{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_local_cpu_fan
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; $USER1$/check_cpu_fan<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_local_cpu_fan<br><br>------------------------------------------------------------------------------------------------------------------------------------
<br>Example of an event handler (this case, restarting mythbackend)<br><br>define command{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; restart-mythbackend<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; /usr/lib/nagios/plugins/eventhandlers/restart-mythbackend&nbsp; $SERVICESTATE$ $HOSTSTATETYPE$ $SERVICEATTEMPT$
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>----------------------------------------------------------------------------------------------------------------------------------------<br><br>Like I said, you may need to modify them for your system.&nbsp; At least gives you an idea how to start.&nbsp; If you can get bash or perl to output the appropriate rc numbers, you can get nagios to do anything.&nbsp; I also recommend checking for the status of NTP, Mysql, available disk space.&nbsp; You can look at nagios&#39; Trends report to see how these values change over a period of time.
<br><br>I have also attached a sample event handler.&nbsp; Make sure your nagios user has privileges to run the plugins and event handlers.<br><br>Cheers.&nbsp; I hope posting this will not mess up the formatting.<br><br>Chris<br><br>
<br><br>