hey friends,<br>
<br>
I am not an expert in Nagios.I have configured Nagios to monitor few hosts in my Network.<br>
<br>
There is one FC3 server on which few services like
(mysql,dns,apache,postfix) etc are running on that server.But
through nagios I am not able to get the information about the disk
& swap status from the remote machine even though snmp &
snmptrapd services are running on this server.<br>
<br>
services.cfg<br>
define service{<br>
host_name mail<br>
service_description swapspacechecking<br>
check_command check_swap<br>
max_check_attempts 5<br>
normal_check_interval 5<br>
retry_check_interval 3<br>
check_period nonworkhours<br>
notification_interval 30<br>
notification_period nonworkhours<br>
notification_options w,c,r<br>
contact_groups linux-admins<br>
}<br>
<br>
define service{<br>
host_name mail<br>
service_description disk_checking_mail<br>
check_command check_local_disk_mail<br>
max_check_attempts 5<br>
normal_check_interval 5<br>
retry_check_interval 3<br>
check_period nonworkhours<br>
notification_interval 30<br>
notification_period nonworkhours<br>
notification_options w,c,r<br>
contact_groups linux-admins<br>
}<br>
<br>
checkcommands.cfg file<br>
define command{<br>
command_name check_local_disk_mail<br>
command_line $USER1$/check_disk -w 10% -c 5% -p
/var -p /usr -p /home -p / -p /opt<br>
}<br>
<br>
define command{<br>
command_name check_swap<br>
command_line $USER1$/check_swap -w 35% -c 15%<br>
}<br>
<br>
In both the above cases the nagios is showing the status for the local
machine on which the nagios is running not for the remote machine.<br>
<br>
But plugins for apache ,local load ,mysql on mail machine are working fine.<br>
<br>
Does local_disk and check_swap plugins requires some special configuration.<br>
<br>
Moreover I would like to monitor postfix(mailq) running on the machine.What I have to do to the get status of mailq ?<br>
<br>
The name of the machine which I am monitoring is mail and the machine name on which nagios is running is cluster1.<br>
<br>
Please guide me.<br>
<br>
Thanks & Regards<br>
<br>
Ankush Grover<br>
<br>
<br>