wmiplus checkuptime warning thresholds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

wmiplus checkuptime warning thresholds

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: wmiplus checkuptime warning thresholds

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nottheadmin
Posts: 53
Joined: Thu Dec 19, 2013 9:51 am
Location: Amsterdam, NL

Re: wmiplus checkuptime warning thresholds

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: wmiplus checkuptime warning thresholds

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked