Business Services doesn't do anything

Started by possamai, February 06, 2014, 02:33:09 PM

Previous topic - Next topic

possamai

I'm trying to get Business Services to work but I can't seem te get it working.
Here's what I've done so far.

Right click on Business Services -> Create Node Link -> select node (one that's up at the moment) -> OK
Right click freshly created node link -> Create service check -> name it -> OK
Right click freshly created service check -> properties -> script -> add example script from NetXMS wiki -> OK


Nothing.
Even adding just "return OK;" to the script still does nothing.
There's a question mark near all objects even 'business services' itself and that doesn't change.
As soon as I change the script the question mark changes for half a second into something that looks like it's checking a status and then changes back to a question mark again.

Any suggestions on what I'm doing wrong here?

Here's the script I used..
Quoteif ($node->status != 0)
{
   $reason = "*** Check failed ***";
   return FAIL;
}
return OK;

Victor Kirhenshtein

Everything seems correct. Can you set debug level to 6 and check server log? There should be messages about business service polling.

Best regards,
Victor

possamai

Nothing,
Until I added a Business service inside the 'business services' and added the node and service-check in there.
Then it started to show in the logfile and then it worked.

Might want to add that to the manual though or even popup an error message when tryin to add a node directly under "Business services" ;)

possamai

The service availability reports don't really work I think...
Having an uptime of 100% for a machine that hasn't even been on is a bit odd.....

ditonet

I have similar problem with Availability Chart.
When monitored printer is off, chart shows real values.
When printer is on, uptime value is 100% on every pie (today, week, month).
See attached screenshots.
NetXMS 1.2.11, SQLite, WinXP

Regards, Grzegorz.

possamai

#5
Something totally off-topic but you do know support for Windows XP ends April 8th this year? Any security hole discovered after that date will not be fixed.
Just so you know..

possamai

no change in the version 1.2.12.. Business services are all still 100% up while some should be at least 90% down

Victor Kirhenshtein

Can you please show content of slm_checks and slm_tickets tables in database?

Best regards,
Victor

possamai

mysql> select * from slm_checks;
+-----+------+--------------------------------------------------------------------------------------------------+--------------+----------------------+-------------+-------------+----------------+
| id  | type | content                                                                                          | threshold_id | reason               | is_template | template_id | current_ticket |
+-----+------+--------------------------------------------------------------------------------------------------+--------------+----------------------+-------------+-------------+----------------+
| 297 |    1 | if ($node->status != 0)
{
   $reason = "*** Check failed ***";
   return FAIL;
}
return OK; |            0 | *** Check failed *** |           0 |           0 |              0 |
| 300 |    1 | if ($node->status != 0)
{
   $reason = "*** Check failed ***";
   return FAIL;
}
return OK; |            0 |                      |           0 |           0 |              0 |
| 304 |    1 | if ($node->status != 0)
{
   $reason = "*** Check failed ***";
   return FAIL;
}
return OK; |            0 | *** Check failed *** |           0 |           0 |             16 |
| 306 |    1 | if ($node->status != 0)
{
   $reason = "*** Check failed ***";
   return FAIL;
}
return OK; |            0 | *** Check failed *** |           0 |           0 |              0 |
| 316 |    1 | if ($node->status != 0)
{
   $reason = "*** Check failed ***";
   return FAIL;
}
return OK; |            0 | *** Check failed *** |           0 |           0 |              0 |
+-----+------+--------------------------------------------------------------------------------------------------+--------------+----------------------+-------------+-------------+----------------+
5 rows in set (0.00 sec)

mysql> select * from slm_tickets;
+-----------+------------+----------+------------------+-----------------+----------------------+
| ticket_id | service_id | check_id | create_timestamp | close_timestamp | reason               |
+-----------+------------+----------+------------------+-----------------+----------------------+
|         1 |        301 |      304 |       1392127489 |      1392142854 | *** Check failed *** |
|         2 |        305 |      306 |       1392127749 |      1392127814 | *** Check failed *** |
|         3 |        301 |      304 |       1392157273 |      1392225199 | *** Check failed *** |
|         4 |        302 |      303 |       1392195537 |               0 | *** Check failed *** |
|         5 |        296 |      297 |       1392195732 |      1392195797 | *** Check failed *** |
|         6 |        301 |      304 |       1392244293 |      1392311920 | *** Check failed *** |
|         7 |        302 |      316 |       1392279906 |      1392280036 | *** Check failed *** |
|         8 |        301 |      304 |       1392311985 |      1392312050 | *** Check failed *** |
|         9 |        301 |      304 |       1392312115 |      1392312180 | *** Check failed *** |
|        10 |        301 |      304 |       1392329584 |      1392414865 | *** Check failed *** |
|        11 |        301 |      304 |       1392415060 |      1392415125 | *** Check failed *** |
|        12 |        301 |      304 |       1392430208 |      1392474364 | *** Check failed *** |
|        13 |        301 |      304 |       1392511094 |      1392553499 | *** Check failed *** |
|        14 |        301 |      304 |       1392559666 |      1392559731 | *** Check failed *** |
|        15 |        301 |      304 |       1392559796 |      1392559861 | *** Check failed *** |
|        16 |        301 |      304 |       1392590074 |               0 | *** Check failed *** |
|        17 |        296 |      297 |       1392635601 |      1392640587 | *** Check failed *** |
+-----------+------------+----------+------------------+-----------------+----------------------+
17 rows in set (0.00 sec)



Sory about the layout of the first table.. I couldn't get it more readable :(