Page 1 of 1

wmiplus checkuptime warning thresholds

Posted: Thu May 01, 2014 10:24 am
by nottheadmin
Hello lovely nagios people,

I have been asked to monitor the uptime of a large number of windows servers. When they reach 180 days of uptime they will be manually rebooted by a human.

What i'm thinking is, a check_xi_service_wmiplus command with a warning at 179 days and a critical alert at 180 days.

In addition to this i'd like to schedule a report to be emailed, listing the servers with warning or critical uptimes. Either that or just a list of uptimes in order of uptime.

Does that seem reasonable?

I have a check already made here but it's triggering warnings (yellow on the tactical view) no matter what i set the warning threshold to. The critical threshhold seems to work ok, only those server with uptimes of over 180 days are going red.

I'd really appreciate it if somebody could have a look at this picture below and let me know what i have done wrong?

User and pass are censored on the screen shot below.

Image

Thanks !
Matt

Re: wmiplus checkuptime warning thresholds

Posted: Thu May 01, 2014 10:31 am
by abrist
Try removing the ':' from the warning threshold:

Code: Select all

-w '179day' -c '180day'
You should be able to create a report if using enterprise, to just show the service tables for just the uptime services. They will all need to be in a servicegroup, or the hosts will need to be in a hostgroup.

Re: wmiplus checkuptime warning thresholds

Posted: Fri May 02, 2014 3:43 am
by nottheadmin
Thanks for that, I misread the documentation and thought it was needed, when i removed it the first time the check failed but now it's ok.

I am applying this check to a few hostgroups but to get a report i t looks as though i have to create a service group as you suggest. The trouble is that the check i made is not in the drop down list in CCM>Service Groups>Add New > Manage Service Groups.

Also, i dont have the enterprise license due to an ordering mix up but this report should still be possible, more complicated maybe?

Re: wmiplus checkuptime warning thresholds

Posted: Fri May 02, 2014 10:03 am
by abrist
nottheadmin wrote:The trouble is that the check i made is not in the drop down list in CCM>Service Groups>Add New > Manage Service Groups.
Add the service check to the relevant service group. Go to the actual service checks in the ccm and add them to the previously created servicegroup. Once they are all added, you can run reports on the servicegroup.