Business Services doesn't do anything
-
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 -> OKNothing.
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..
if ($node->status != 0)
{
$reason = "*** Check failed ***";
return FAIL;
}
return OK; -
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 -
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"

-
-
-
-
-
Can you please show content of slm_checks and slm_tickets tables in database?
Best regards,
Victor -
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

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login