pnp on check_cpu_stats.sh
My LinuxHAList
mylinuxhalist at gmail.com
Sat May 28 16:45:57 CEST 2011
Solved. I realized that the check_cpu_stats.sh has a bug in the redhat
4 machines. It failed to produce the idle number (and thus the graph
failed to be produced).
I'll try the updated one or fix the existing one.
Now that I know the source of this issue, it is a lot easier to solve now.
Thanks.
On Fri, May 27, 2011 at 7:03 PM, My LinuxHAList <mylinuxhalist at gmail.com> wrote:
> Hi..
>
> I enabled "Process perf data" and "Retain Status information".
>
> This is my service template:
> define service {
> name linux_service
> service_description linux_service
> is_volatile 0
> max_check_attempts 5
> check_interval 5
> retry_interval 1
> active_checks_enabled 1
> passive_checks_enabled 1
> check_period 24x7
> obsess_over_service 1
> check_freshness 0
> event_handler_enabled 1
> flap_detection_enabled 0
> process_perf_data 1
> retain_status_information 1
> retain_nonstatus_information 1
> notification_interval 30
> notification_period 24x7
> notification_options w,u,r,c
> notifications_enabled 1
> contact_groups linux_team,nogroup
> register 0
>
> }
>
> This is my service def that uses the service template:
> define service {
> service_description MU CPU Stats
> use linux_service
> hostgroup_name linux_tier1
> check_command check_nrpe!check_cpu_stats!-a
> '-w 85 -c '!!!!!!
> max_check_attempts 5
> check_interval 5
> retry_interval 1
> notification_interval 60
> _xiwizard linux-server
> register 1
> }
>
> I have other checks (the ones that are processing partition
> information that are graphing fine).
>
> Ryan, can you send the version check_cpu_stats.sh that you are using to me ?
>
> Thanks again.
>
>
>
> On Fri, May 27, 2011 at 6:48 PM, Ryan Edwards <wyild1 at gmail.com> wrote:
>> Works fine over here. Do you have perf data for any checks? first thing is
>> to make sure its enabled.
>>
>> On Fri, May 27, 2011 at 4:39 PM, My LinuxHAList <mylinuxhalist at gmail.com>
>> wrote:
>>>
>>> We paid for the Nagios XI 2011R1.
>>> We are using check_cpu_stats.sh to poll information CPU usage
>>> information via NRPE.
>>>
>>> CPU STATISTICS OK : user=0.00% system=0.00% iowait=0.00% idle=100.00%
>>> nice=0.00% steal=0.00%
>>>
>>> However, there are no performance graphs on CPU.
>>>
>>> I'm still pretty new to Nagios. I look around and found that pnp is
>>> the backend engine that produces graphs.
>>>
>>> [root at linuxbox check_commands]# cat ../pnp4nagios_release
>>> PKG_REL_DATE="05-02-2009"
>>> PKG_VERSION="0.4.14"
>>> PKG_NAME="pnp"
>>>
>>>
>>> I found that I have, but not the rrd file
>>> /usr/local/nagios/share/perfdata/linuxbox2/CPU_Stats.xml
>>>
>>> # pwd
>>> /usr/local/nagios/etc/pnp/check_commands
>>>
>>> I realize that I may need to have something at
>>> /usr/local/nagios/etc/pnp/check_commands
>>> to have my graphs generated.
>>>
>>> Does anyone have a recipe to have my graphs using check_cpu_stats.sh
>>> (nagios command named: check_cpu_stats) ?
>>>
>>> Thanks...
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> vRanger cuts backup time in half-while increasing security.
>>> With the market-leading solution for virtual backup and recovery,
>>> you get blazing-fast, flexible, and affordable data protection.
>>> Download your free trial now.
>>> http://p.sf.net/sfu/quest-d2dcopy1
>>> _______________________________________________
>>> Nagios-users mailing list
>>> Nagios-users at 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
>>
>>
>>
>> --
>> Christianity: The belief that some cosmic Jewish Zombie can make you live
>> forever if you symbolically eat his flesh and telepathically tell him that
>> you accept him as your master, so he can remove an evil force from your soul
>> that is present in humanity because a rib-woman was convinced by a talking
>> snake to eat from a magical tree. Makes perfect sense!
>>
>> ------------------------------------------------------------------------------
>> vRanger cuts backup time in half-while increasing security.
>> With the market-leading solution for virtual backup and recovery,
>> you get blazing-fast, flexible, and affordable data protection.
>> Download your free trial now.
>> http://p.sf.net/sfu/quest-d2dcopy1
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at 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
>>
>
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list