Re: [Nagios-users] status Null
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 14.09.2009 12:56, schrieb nadia kheffache: 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 Don't run plugin tests with relative paths - nagios won't do it either. cd /tmp /usr/local/nagios/libexec/check_vmstat -m CPU -wcpu-usg 80 -ccpu-usg 90 Post output here... - - Hendrik -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFKr0hzlI0PwfxLQjkRAjxLAJ0fHyWDgYhrM4FKz8q/hFNjkGNnuACdHEI2 SgvE2UlwuSOzW2myRECoQEw= =xN+z -END PGP SIGNATURE- -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
Re: [Nagios-users] status Null
Hi, thank you for your help, i have an error in my check_vmstat utils.pm. i have create a log in my command to see wahat is the probleme like this: ./check_vmstat -m CPU -wcpu-usg 80 -ccpu-usg 90 2/usr/local/nagios//var/check_by_vmstat.log Nadia --- En date de : Mar 15.9.09, Hendrik Baecker andu...@process-zero.de a écrit : De: Hendrik Baecker andu...@process-zero.de Objet: Re: [Nagios-users] status Null À: nagios-users@lists.sourceforge.net Date: Mardi 15 Septembre 2009, 9h55 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 14.09.2009 12:56, schrieb nadia kheffache: 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 Don't run plugin tests with relative paths - nagios won't do it either. cd /tmp /usr/local/nagios/libexec/check_vmstat -m CPU -wcpu-usg 80 -ccpu-usg 90 Post output here... - - Hendrik -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFKr0hzlI0PwfxLQjkRAjxLAJ0fHyWDgYhrM4FKz8q/hFNjkGNnuACdHEI2 SgvE2UlwuSOzW2myRECoQEw= =xN+z -END PGP SIGNATURE- -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ 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 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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
Re: [Nagios-users] status Null
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
Re: [Nagios-users] status Null
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
Re: [Nagios-users] status Null
2009/9/14 nadia kheffache nadiakheffa...@yahoo.fr: 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$ That all looks fine to me! I don't have a copy of the check_vmstat plugin here here so can not check it myself. I wonder if the plugin is sending its output to standard error, not standard output? It does seem very strange how it works at the command line, but gives no output when run inside Nagios. If the plugin is provided with Centreon, you might ask on their forum too (if you haven't already). 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