Nagios-MySQL Status Map User Supplied?

Jan Rasche jan.rasche at redbus.de
Sun Aug 15 22:33:32 CEST 2004


Dear Andreas,

Thanks for all your help!

 
>You need to define the x and y drawing coordinates in the mysql table. 
>'User-supplied Coords' means just that, that the user (you) have
supplied coordinates for 
>where every host on the map is supposed to be. 

Yeah I did this already and used it right from a working hostextinfo.cfg

of a Nagios-text installation already in production:

mysql> show tables;
+------------------+
| Tables_in_nagios |
+------------------+
| hostcomments     |
| hostdowntime     |
| hostextinfo      |
| hostretention    |
| hoststatus       |
| programretention |
| programstatus    |
| servicecomments  |
| servicedowntime  |
| serviceextinfo   |
| serviceretention |
| servicestatus    |
+------------------+
12 rows in set (0.00 sec)

mysql> select * from hostextinfo;
+---------------------------+-----------+---------------+---------------
+----------------+---------------------------+------+------+----------+-
---------+--------+----------------+----------------+
| host_name                 | notes_url | icon_image    | vrml_image
| gd2_icon_image | icon_image_alt            | x_2d | y_2d | x_3d     |
y_3d     | z_3d   | have_2d_coords | have_3d_coords |
+---------------------------+-----------+---------------+---------------
+----------------+---------------------------+------+------+----------+-
---------+--------+----------------+----------------+
| Cat5-3550AccessSwitch     |           | my_switch.jpg | my_switch.jpg
| my_switch.gd2  | Cat5-3550AccessSwitch     |   20 |  350 |  20.0000 |
350.0000 | 0.0000 |              0 |              0 |
| Fibre-3508AccessSwitch    |           | my_switch.jpg | my_switch.jpg
| my_switch.gd2  | Fibre-3508AccessSwitch    |  100 |  350 | 100.0000 |
350.0000 | 0.0000 |              0 |              0 |
| Fibre-9/0/0AccessRouter   |           | my_router.jpg | my_router.jpg
| my_router.gd2  | Fibre-9/0/0AccessRouter   |  180 |  350 | 180.0000 |
350.0000 | 0.0000 |              0 |              0 |

...

| Level3                    |           | my_router.jpg | my_router.jpg
| my_router.gd2  | Level3                    |  500 |  650 | 500.0000 |
650.0000 | 0.0000 |              0 |              0 |
+---------------------------+-----------+---------------+---------------
+----------------+---------------------------+------+------+----------+-
---------+--------+----------------+----------------+
15 rows in set (0.01 sec)


As said Nagios recognized the images as defined here but not the other
values for the cords.

It simply says: 'You have not supplied any host drawing coordinates...'

It only works with cgi.cfg:

# DEFAULT STATUSMAP LAYOUT METHOD
# This option allows you to specify the default layout method
# the statusmap CGI should use for drawing hosts.  If you do
# not use this option, the default is to use user-defined
# coordinates.  Valid options are as follows:
#       0 = User-defined coordinates
#       1 = Depth layers
#       2 = Collapsed tree
#       3 = Balanced tree
#       4 = Circular
#       5 = Circular (Marked Up)

default_statusmap_layout=2



>It's really cumbersome though, so if I were you, I'd probably just give
it up right on the 
>spot.

Lol - but I already did this with Nagios-text before some time. :-)

Beste regards, Jan



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list