i use centreon, define service{ host_name Centreon-Server service_description sys_local_cpu use generic-service check_command check_local_cpu_by_vmstat!80!90
my commande is: command name: check_local_cpu_by_vmstat $USER1/check_vmstat -m CPU -wcpu-usg $ARG1$ -ccpu-usg $ARG2$ thank you --- En date de : Lun 14.9.09, Jim Avery <j...@jimavery.me.uk> a écrit : > De: Jim Avery <j...@jimavery.me.uk> > Objet: Re: [Nagios-users] status Null > À: "nadia kheffache" <nadiakheffa...@yahoo.fr> > Cc: nagios-users@lists.sourceforge.net > Date: Lundi 14 Septembre 2009, 14h17 > 2009/9/14 nadia kheffache <nadiakheffa...@yahoo.fr>: > > Hi, > > > > i want to check local cpu for my Nagios server, but i > have status null on my web interface, and when i execute the > commande line, the status is ok. > > > > [nag...@server libexec]$ ./check_vmstat -m CPU > -wcpu-usg 80 -ccpu-usg 90 > > OK: Usage CPU: Total=2% [User=0%, > System=1%]|cpu_usage_pct=2%;;;0;100 cpu_usr_pct=0%;;;0;100 > cpu_sys_pct=1%;;;0;100 > > > > > > Please, can you help me to resolve the probleme. > > > > Thank you and sorry for my english. > > > > > > Server Nagios: CentOS 5.2 > > Nagios: 3.0.3 > > Please can you say what your service definition and command > definition > are for this check? > > The command line execution you showed us looks good, and > you were > running it while logged-in as user "nagios" so it was > running in the > same way as it would do if it were running in Nagios. > > Cheers, > > Jim > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null