Services "flapping" on status.cgi


I’ve installed the nagios2 debian package and defined some hosts, hostgroups and services. Everything went Ok until I started to configure the check_disk, check_procs, check_load and check_users plugins using the check_by_ssh plugin.

Its checks results are “flapping” (on nagios jargon) on status.cgi screen. Only the local checks are always showed by the CGI, the remote checks sometimes are shown and sometimes they aren’t.

When they are shown, the results are correct, so the commands are working, but not being properly shown on CGI. The notifications about this plugins are being correctly sent too.

The configurations are as follows:

define service{
use generic-service
hostgroup_name remote-servers
service_description DISK
check_command ssh_disk!administrador!20%!10%!/
notification_interval 0

‘ssh_disk’ command definition

define command{
command_name ssh_disk
command_line /usr/lib/nagios/plugins/check_by_ssh -H $HOSTADDRESS$ -l $ARG1$ -C ‘/usr/bin/check_disk -w $ARG2$ -c $ARG3$ -p $ARG4$’

The others services are configured the same way as above. They are being assigned to hosts by this way:

define hostgroup {
hostgroup_name remote-servers
alias Servidores Remotos
members server1,server2


Resolved, I’ve had more then one instance on nagios running on the server, don’t know why.