Nagios disk/user checks checks localhost rather than server

It’s a very weird issue
here’s my config file (nagios 3.2.0 on ubuntu 10.04)

[code]define host{
use generic-host ; Name of host template to use
host_name mail.myserver.com
alias mail
address 111.111.111.111 # ip address of mail.myserver.com
}

define service{
use generic-service ; Name of service template to use
host_name mail.myserver.com
service_description Disk Space
check_command check_all_disks!20%!10%
}

define service{
use generic-service ; Name of service template to use
host_name mail.myserver.com
service_description Current Users
check_command check_users!20!50
}[/code]

mail.myserver.com is setup with the nrpe plugin, and the firewall is open.
but, strangely enough, the nagios website shows the results from localhost, not mail.myserver.com
(results are always the same as localhost. Easy to test if I login to localhost, website will show 1 user logged in to both localhost and mail.myserver.com)
has this happened to anyone else?
I’ve explicitly mentioned which server to check with host_name mail.myserver.com!

check_all_disks isn’t a standard plugin…
anyway, the standard check_disk explicitly states in the help description it checks MOUNTED filesystems, which is the same behaviour i’d expect from check_all_disks…
run the plugin from command with the --help switch and see what happens. :slight_smile: