Page 2 of 2

Re: False alert

Posted: Wed Jan 04, 2017 6:06 am
by Frédéric GRANAT
Hi,
Thanks it worked.

Frederic

Re: False alert

Posted: Wed Jan 04, 2017 10:40 am
by rkennedy
Awesome - are we good to mark this thread as resolved?

Re: False alert

Posted: Thu Jan 05, 2017 3:11 am
by Frédéric GRANAT
Hi,
No, because the problem still occurs today.
When I run "rm -f /tmp/cwpss_checkcpu*" the alert disappear and after a lap of time it appears.

Re: False alert

Posted: Thu Jan 05, 2017 10:19 am
by rkennedy
What are the permissions on the file? ls -la /tmp/cwpss_checkcpu

I suspect it may be a permission issue between root / nagios, depending on how the plugin is running.

Re: False alert

Posted: Thu Jan 05, 2017 11:35 am
by Frédéric GRANAT
Here it is :

Code: Select all

[root@nagiosxi tmp]# ls -la /tmp/cwpss_checkcpu*
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__10302___.state
-rw-r--r-- 1 nagios nagios 201 Jan  5 17:30 /tmp/cwpss_checkcpu__17216100169___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:30 /tmp/cwpss_checkcpu__172161010___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__172161011___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:34 /tmp/cwpss_checkcpu__172161012___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__17216101___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__17216102___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:32 /tmp/cwpss_checkcpu__17216103___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__17216104119___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__17216104179___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:32 /tmp/cwpss_checkcpu__1721610441___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__17216106___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__17216107___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:31 /tmp/cwpss_checkcpu__17216109___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:31 /tmp/cwpss_checkcpu__172161110___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172161111___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__172161112___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172161113___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:33 /tmp/cwpss_checkcpu__172161114___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:32 /tmp/cwpss_checkcpu__172161115___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:29 /tmp/cwpss_checkcpu__17216111___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:33 /tmp/cwpss_checkcpu__17216112___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:29 /tmp/cwpss_checkcpu__17216113___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:33 /tmp/cwpss_checkcpu__17216114___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:29 /tmp/cwpss_checkcpu__17216119___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__172161210___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__172161211___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__172161212___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:31 /tmp/cwpss_checkcpu__172161214___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:30 /tmp/cwpss_checkcpu__172161215___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:31 /tmp/cwpss_checkcpu__17216121___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:29 /tmp/cwpss_checkcpu__17216123___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:32 /tmp/cwpss_checkcpu__17216124___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:30 /tmp/cwpss_checkcpu__17216126___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__17216131___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__17216132___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__17216133___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:32 /tmp/cwpss_checkcpu__17216134___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:32 /tmp/cwpss_checkcpu__17216135___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:33 /tmp/cwpss_checkcpu__17216136___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__1721615___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__1721618___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__172162010___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__172162011___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172162012___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__172162014___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__172162015___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__172162016___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__172162017___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__172162018___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__172162019___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__17216201___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:34 /tmp/cwpss_checkcpu__172162020___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172162021___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__172162022___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__172162023___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__172162024___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__172162025___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172162026___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172162029___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__17216202___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172162030___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__172162031___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__172162032___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__172162033___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__172162034___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:31 /tmp/cwpss_checkcpu__17216203___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__17216204___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:29 /tmp/cwpss_checkcpu__17216205___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__17216207___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__17216210___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__17216211___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:31 /tmp/cwpss_checkcpu__17216212___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:33 /tmp/cwpss_checkcpu__17216213___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:30 /tmp/cwpss_checkcpu__1721624___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:30 /tmp/cwpss_checkcpu__1721625___.state
-rw-r--r-- 1 nagios nagios 207 Jan  5 17:30 /tmp/cwpss_checkcpu__1721627___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:34 /tmp/cwpss_checkcpu__1721628___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:29 /tmp/cwpss_checkcpu__1721629___.state
-rw-r--r-- 1 nagios nagios 196 Jan  5 17:31 /tmp/cwpss_checkcpu__17216310___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:32 /tmp/cwpss_checkcpu__1721636___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:30 /tmp/cwpss_checkcpu__1721638___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:30 /tmp/cwpss_checkcpu__1721639___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:30 /tmp/cwpss_checkcpu__17216411___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:29 /tmp/cwpss_checkcpu__17216515___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:32 /tmp/cwpss_checkcpu__1721652___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:33 /tmp/cwpss_checkcpu__1721653___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:31 /tmp/cwpss_checkcpu__1721655___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:30 /tmp/cwpss_checkcpu__1721657___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:31 /tmp/cwpss_checkcpu__1721658___.state
-rw-r--r-- 1 nagios nagios 200 Jan  5 17:33 /tmp/cwpss_checkcpu__1721659___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__17216611___.state
-rw-r--r-- 1 nagios nagios 199 Jan  5 17:30 /tmp/cwpss_checkcpu__1721666___.state
-rw-r--r-- 1 nagios nagios 200 Jan  5 17:29 /tmp/cwpss_checkcpu__1721668___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:29 /tmp/cwpss_checkcpu__17216710___.state
-rw-r--r-- 1 nagios nagios 199 Jan  5 17:30 /tmp/cwpss_checkcpu__17216711___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__17216712___.state
-rw-r--r-- 1 nagios nagios 206 Jan  5 17:31 /tmp/cwpss_checkcpu__17216714___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__17216715___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__1721671___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__1721674___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:31 /tmp/cwpss_checkcpu__1721675___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__1721677___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__1721678___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:33 /tmp/cwpss_checkcpu__1721679___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:32 /tmp/cwpss_checkcpu__1721681___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:31 /tmp/cwpss_checkcpu__1721683___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:30 /tmp/cwpss_checkcpu__1721684___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:31 /tmp/cwpss_checkcpu__1721685___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:32 /tmp/cwpss_checkcpu__17216913___.state
-rw-r--r-- 1 nagios nagios 204 Jan  5 17:32 /tmp/cwpss_checkcpu__1721691___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:31 /tmp/cwpss_checkcpu__1721693___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:33 /tmp/cwpss_checkcpu__1721694___.state
-rw-r--r-- 1 nagios nagios 205 Jan  5 17:31 /tmp/cwpss_checkcpu__1721697___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:33 /tmp/cwpss_checkcpu__1721699___.state
-rw-r--r-- 1 nagios nagios 206 Jan  5 17:31 /tmp/cwpss_checkcpu__1921681054___.state
-rw-r--r-- 1 nagios nagios 206 Jan  5 17:33 /tmp/cwpss_checkcpu__1921681055___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__1921681075___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__192168118___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:32 /tmp/cwpss_checkcpu__19216815___.state
-rw-r--r-- 1 nagios nagios 202 Jan  5 17:33 /tmp/cwpss_checkcpu__19216819___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:30 /tmp/cwpss_checkcpu__19216845116___.state
-rw-r--r-- 1 nagios nagios 207 Jan  5 17:32 /tmp/cwpss_checkcpu__19216845122___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:31 /tmp/cwpss_checkcpu__19216845134___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:33 /tmp/cwpss_checkcpu__192168502___.state
-rw-r--r-- 1 nagios nagios 198 Jan  5 17:29 /tmp/cwpss_checkcpu__192168515___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:29 /tmp/cwpss_checkcpu__192168516___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__192168519___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:31 /tmp/cwpss_checkcpu__192168606___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:30 /tmp/cwpss_checkcpu__192168616___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:28 /tmp/cwpss_checkcpu__192168626___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:28 /tmp/cwpss_checkcpu__192168636___.state
-rw-r--r-- 1 nagios nagios 203 Jan  5 17:32 /tmp/cwpss_checkcpu__192168646___.state

Re: False alert

Posted: Thu Jan 05, 2017 2:37 pm
by tgriep
Is it just this one server reporting the wrong load or are there others causing the same issue?
If it is only this one server, make sure it is patched to the latest level, reset the counters again and reboot the server.
After doing that, run this command to check the server's load without using using the state file. See if it works for you.

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H 172.16.1.14 -u domcompta/svc_riverbed -p dsisvc -m checkcpu -d --nokeepstate

Re: False alert

Posted: Fri Jan 06, 2017 2:34 am
by Frédéric GRANAT
Hi,
Only two servers having that problem.
we already reset the counters again and reboot the server : I don't see what it could bring to do that one more time.
Could you please plan a remote session ?

Re: False alert

Posted: Fri Jan 06, 2017 11:09 am
by tgriep
The check_wmi plugin doesn't seem to be the problem, it is gathering data from the Windows server but the server is returning bad data which from what I found could be caused by corrupted counters on the Windows server or that the time is out of sync on the Windows server.

Can you verify that the time for that server is correct.

I found a more comprehensive procedure for repairing the counters on the Windows server.
Log in as an Administrator user and run the following in a command prompt:

Code: Select all

    cd c:\windows\system32
    lodctr /R
    cd c:\windows\sysWOW64
    lodctr /R
    winmgmt /clearadap
    winmgmt /verifyrepository
        winmgmt /salvagerepository
    winmgmt /resyncperf
    sc stop WmiApSrv
    sc start WmiApSrv
Also, Microsoft has a WMI Diagnosis Utility that you can install on that server and see if that can find out what the problem is.
https://www.microsoft.com/en-us/downloa ... px?id=7684

Re: False alert

Posted: Fri Jan 20, 2017 5:05 am
by Frédéric GRANAT
Hi,
Time is ok on the server.
I asked to the system administrator to reset the counters.

Frederic

Re: False alert

Posted: Fri Jan 20, 2017 11:43 am
by tgriep
Thanks, let us know how it works.