Custom script, rrd file, GAUGE datatype , UNKN
I have created a GPL Hobbit module to monitor Flex License Manager. It seems to be working and delivering data in Hobbit under the column flexlm .
On the server, the hobbitserver.cfg file has been changed like so: TEST2RRD="cpu=... ... flexlm=ncv" Data is delivered in the RRD file flexlm.rrd
The data arrives OK into the rrd file, with the correct number of used licenses in last_ds field with the default data type DERIVE.
SO far so good, but for the graphs, the datatype should be GAUGE.
So I added the following line to hobbitserver.cfg : NCV_flexlm="MATLAB:GAUGE"
I have tested this a few times, being extra careful to do: ~/server/bin/bb 127.0.0.1 "drop jotunn.rhi.hi.is flexlm" as hobbit user then after stopping the server:
rm /var/lib/hobbit/rrd/jotunn.rhi.hi.is/flexlm.rrd
Start the server a minute later.
Then the last_ds field is set to UNKN like in the following example.
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1211985894 </lastupdate> <!-- 2008-05-28 14:44:54 GMT -->
<ds>
<name> MATLAB </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 5.8800000000e+02 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
I wonder if this has something to do with the fact that the output format from my flexlm module to Hobbit is: $AWK '{printf "%.19s : %d\n", $3, $11 }' Resulting in lines like this: MATLAB : 1
Maybe it is the \n in the format string or maybe there should be a space after the number.
I am stuck here. Can anybody help me out. :) BTW: I am using Hobbit 4.2.0 with the allinone patch.
-- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
Hi,
I have made some interesting (to me anyway) changes to the hobbit code at the site I am currently contracting to. They had no monitoring system at all when I started working here so installing and integrating hobbit has been an interesting exercise.
These are after applying the allinone patch:
email acknowledgement details to the user that acknowledges an alert (allows you to the forward to heldesk or other).
a working but not thoroughly tested change that propogates the ticks from acknowledgements upwards so that you see ticks at the top level if everything below has been acknowledged.
an additional column on the hobbit screen that lists an icon next to the server name that is a link to rdp://servername or ssh://servername so that you can click next to the server name and fire up a terminal session directly to that server.
a php and perl script that creates an excel file returned to the user through the web browser outlining outages etc for a given period
a module for monitoring the status of EMC/Legato Networker Backup systems (including mulitple Backup servers with many clients).
a small javascript web page that displays two frames in your browser, the top one shows a summary of alerts by color and the bottom frame swaps between the front hobbit screen and the non green view on a 10 second cycle.
Additionally, I found it hard to keep the config file up to date with a large number of IT staff making changes to servers and adding new servers constantly. In order to make this easier, I created a database and an application in front of this to handle adds and changes in a way that allows for verification and approval of server data. This data is then pulled automatically via a perl script that is run periodically to update the entire hobbit bb-hosts configuration. This includes the ability to auto generate pages by system owner, by location, by priority. There is also the capability to determine additional pages that a server should appear on such as by Service.
The database contains details such as Contract No, install date model number, owner, support group etc which are displayed in a table on the info page of hobbit so that anyone can bring up a server and find details on it directly from within hobbit.
Unfortunately, I was forced to write the application in MS Access with an Access Front End and a seperate Access Database. I would have preferred MySQL and PHP, but they are paying the bills so they get to determine the method.
I would like to gauge interest in these changes/additions and see if anyone is interested in helping me get the code above into the main stream. In addition I would like to write a PHP / MySql version of the DB but would need some help given my time and financial constraints.
My current employer is happy for all this code to be released back into Open Source or GPL.
This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
Hi,
I would definitely be interested in these patches. I guess some of them are candidates for incorporation in the main distribution and others as add-ons at The Shire?
Perhaps you could post a link to the patchset / files for others to test?
Regards,
Magnus Carlebjork Stockholm, Sweden +46 76 116 9008
On Thu, 29 May 2008 david.peters at dpi.nsw.gov.au wrote:
Hi,
I have made some interesting (to me anyway) changes to the hobbit code at the site I am currently contracting to. They had no monitoring system at all when I started working here so installing and integrating hobbit has been an interesting exercise.
These are after applying the allinone patch:
email acknowledgement details to the user that acknowledges an alert (allows you to the forward to heldesk or other).
a working but not thoroughly tested change that propogates the ticks from acknowledgements upwards so that you see ticks at the top level if everything below has been acknowledged.
an additional column on the hobbit screen that lists an icon next to the server name that is a link to rdp://servername or ssh://servername so that you can click next to the server name and fire up a terminal session directly to that server.
a php and perl script that creates an excel file returned to the user through the web browser outlining outages etc for a given period
a module for monitoring the status of EMC/Legato Networker Backup systems (including mulitple Backup servers with many clients).
a small javascript web page that displays two frames in your browser, the top one shows a summary of alerts by color and the bottom frame swaps between the front hobbit screen and the non green view on a 10 second cycle.
Additionally, I found it hard to keep the config file up to date with a large number of IT staff making changes to servers and adding new servers constantly. In order to make this easier, I created a database and an application in front of this to handle adds and changes in a way that allows for verification and approval of server data. This data is then pulled automatically via a perl script that is run periodically to update the entire hobbit bb-hosts configuration. This includes the ability to auto generate pages by system owner, by location, by priority. There is also the capability to determine additional pages that a server should appear on such as by Service.
The database contains details such as Contract No, install date model number, owner, support group etc which are displayed in a table on the info page of hobbit so that anyone can bring up a server and find details on it directly from within hobbit.
Unfortunately, I was forced to write the application in MS Access with an Access Front End and a seperate Access Database. I would have preferred MySQL and PHP, but they are paying the bills so they get to determine the method.
I would like to gauge interest in these changes/additions and see if anyone is interested in helping me get the code above into the main stream. In addition I would like to write a PHP / MySql version of the DB but would need some help given my time and financial constraints.
My current employer is happy for all this code to be released back into Open Source or GPL.
This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
I would be interested some of this code too..
Thanks
Padraig Lennon Senior Systems Engineer Production Services Pioneer Global Investments (Dublin) 5th Floor Georges Quay Plaza, Dublin 2 ext: 2081 Direct dial: 00353 1 480 2081
-----Original Message----- From: Magnus Carlebjörk [mailto:magnus at carlebjork.se] Sent: 29 May 2008 09:13 To: hobbit at hswn.dk Subject: Re: [hobbit] Any interest in some patches / additional code.
Hi,
I would definitely be interested in these patches. I guess some of them are candidates for incorporation in the main distribution and others as add-ons at The Shire?
Perhaps you could post a link to the patchset / files for others to test?
Regards,
Magnus Carlebjork Stockholm, Sweden +46 76 116 9008
On Thu, 29 May 2008 david.peters at dpi.nsw.gov.au wrote:
Hi,
I have made some interesting (to me anyway) changes to the hobbit code at the site I am currently contracting to. They had no monitoring system at all when I started working here so installing and integrating hobbit has been an interesting exercise.
These are after applying the allinone patch:
email acknowledgement details to the user that acknowledges an alert (allows you to the forward to heldesk or other).
a working but not thoroughly tested change that propogates the ticks from acknowledgements upwards so that you see ticks at the top level if everything below has been acknowledged.
an additional column on the hobbit screen that lists an icon next to the server name that is a link to rdp://servername or ssh://servername so that you can click next to the server name and fire up a terminal session directly to that server.
a php and perl script that creates an excel file returned to the user through the web browser outlining outages etc for a given period
a module for monitoring the status of EMC/Legato Networker Backup systems (including mulitple Backup servers with many clients).
a small javascript web page that displays two frames in your browser, the top one shows a summary of alerts by color and the bottom frame swaps between the front hobbit screen and the non green view on a 10 second cycle.
Additionally, I found it hard to keep the config file up to date with a large number of IT staff making changes to servers and adding new servers constantly. In order to make this easier, I created a database and an application in front of this to handle adds and changes in a way that allows for verification and approval of server data. This data is then pulled automatically via a perl script that is run periodically to update the entire hobbit bb-hosts configuration. This includes the ability to auto generate pages by system owner, by location, by priority. There is also the capability to determine additional pages that a server should appear on such as by Service.
The database contains details such as Contract No, install date model number, owner, support group etc which are displayed in a table on the info page of hobbit so that anyone can bring up a server and find details on it directly from within hobbit.
Unfortunately, I was forced to write the application in MS Access with an Access Front End and a seperate Access Database. I would have preferred MySQL and PHP, but they are paying the bills so they get to determine the method.
I would like to gauge interest in these changes/additions and see if anyone is interested in helping me get the code above into the main stream. In addition I would like to write a PHP / MySql version of the DB but would need some help given my time and financial constraints.
My current employer is happy for all this code to be released back into Open Source or GPL.
This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Thu, 2008-05-29 at 08:34 +1000, david.peters at dpi.nsw.gov.au wrote:
- Additionally, I found it hard to keep the config file up to date with a large number of IT staff making changes to servers and adding new servers constantly.
I have a similar requirement, revolving around network hardware. I currently use a mysql database to keep track of routers, firewalls, UPS, temperature probes, load-balancers, and the like, and use a script to auto-generate my hobbit config.
-- Daniel J McDonald, CCIE #2495, CISSP #78281, CNX Austin Energy http://www.austinenergy.com
I am interesting in the code for those as well but mainly the RDP, SSH column code and email alerts upon an acknowledgement being made.
Can you provide a link to the code or place it on the Shire?
Thanks, Geoff.
On Thu, May 29, 2008 at 7:09 AM, Daniel J McDonald < dan.mcdonald at austinenergy.com> wrote:
On Thu, 2008-05-29 at 08:34 +1000, david.peters at dpi.nsw.gov.au wrote:
- Additionally, I found it hard to keep the config file up to date with a large number of IT staff making changes to servers and adding new servers constantly.
I have a similar requirement, revolving around network hardware. I currently use a mysql database to keep track of routers, firewalls, UPS, temperature probes, load-balancers, and the like, and use a script to auto-generate my hobbit config.
-- Daniel J McDonald, CCIE #2495, CISSP #78281, CNX Austin Energy http://www.austinenergy.com
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- 'If my answers frighten you then you should cease asking scary questions.' --Sam Jackson
Hi Anna,
could you please post your flexlm script to the list? Or even to TheShire website? Thanks in advance.
Regards.
Massimo Morsiani Information Technology Dept.
Gilbarco S.p.a. via de' Cattani, 220/G 50145 Firenze, Italy tel: +39-055-30941 fax: +39-055-318603 email: massimo.morsiani at gilbarco.com web: http://www.gilbarco.it
-----Original Message----- From: Anna Jonna Armannsdottir [mailto:annaj at hi.is] Sent: mercoledì 28 maggio 2008 17.23 To: Hobbit user Subject: [hobbit] Custom script, rrd file, GAUGE datatype , UNKN
I have created a GPL Hobbit module to monitor Flex License Manager. It seems to be working and delivering data in Hobbit under the column flexlm .
On the server, the hobbitserver.cfg file has been changed like so: TEST2RRD="cpu=... ... flexlm=ncv" Data is delivered in the RRD file flexlm.rrd
The data arrives OK into the rrd file, with the correct number of used licenses in last_ds field with the default data type DERIVE.
SO far so good, but for the graphs, the datatype should be GAUGE.
So I added the following line to hobbitserver.cfg : NCV_flexlm="MATLAB:GAUGE"
I have tested this a few times, being extra careful to do: ~/server/bin/bb 127.0.0.1 "drop jotunn.rhi.hi.is flexlm" as hobbit user then after stopping the server:
rm /var/lib/hobbit/rrd/jotunn.rhi.hi.is/flexlm.rrd
Start the server a minute later.
Then the last_ds field is set to UNKN like in the following example.
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1211985894 </lastupdate> <!-- 2008-05-28 14:44:54 GMT -->
<ds>
<name> MATLAB </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 5.8800000000e+02 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
I wonder if this has something to do with the fact that the output format from my flexlm module to Hobbit is: $AWK '{printf "%.19s : %d\n", $3, $11 }' Resulting in lines like this: MATLAB : 1
Maybe it is the \n in the format string or maybe there should be a space after the number.
I am stuck here. Can anybody help me out. :) BTW: I am using Hobbit 4.2.0 with the allinone patch.
-- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.
On fim, 2008-05-29 at 11:26 +0200, Morsiani, Massimo wrote:
Hi Anna,
could you please post your flexlm script to the list? Or even to TheShire website? Thanks in advance.
Regards.
Massimo Morsiani Information Technology Dept.
That would be an honour. :) It is an early release, so there is room for improvements. It is very easy to use, especially easy to test outside Hobbit environment. One of its features, is that it reports the name or names of the master Flex LM license servers. Thus it shows clearly the source of the licenses.
For a more elaborate release, a patch
with all changes to Hobbit server config
files is desirable, to ease deployment.
And preferably also a patch with the client
config files.
-- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
What does your graph def look like in hobbitgraph.cfg?
Anna Jonna Armannsdottir wrote:
I have created a GPL Hobbit module to monitor Flex License Manager. It seems to be working and delivering data in Hobbit under the column flexlm .
On the server, the hobbitserver.cfg file has been changed like so: TEST2RRD="cpu=... ... flexlm=ncv" Data is delivered in the RRD file flexlm.rrd
The data arrives OK into the rrd file, with the correct number of used licenses in last_ds field with the default data type DERIVE.
SO far so good, but for the graphs, the datatype should be GAUGE.
So I added the following line to hobbitserver.cfg : NCV_flexlm="MATLAB:GAUGE"
I have tested this a few times, being extra careful to do: ~/server/bin/bb 127.0.0.1 "drop jotunn.rhi.hi.is flexlm" as hobbit user then after stopping the server:
rm /var/lib/hobbit/rrd/jotunn.rhi.hi.is/flexlm.rrd
Start the server a minute later.
Then the last_ds field is set to UNKN like in the following example.
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1211985894 </lastupdate> <!-- 2008-05-28 14:44:54 GMT -->
<ds> <name> MATLAB </name> <type> GAUGE </type> <minimal_heartbeat> 600 </minimal_heartbeat> <min> 0.0000000000e+00 </min> <max> NaN </max> <!-- PDP Status --> <last_ds> UNKN </last_ds> <value> 5.8800000000e+02 </value> <unknown_sec> 0 </unknown_sec> </ds>I wonder if this has something to do with the fact that the output format from my flexlm module to Hobbit is: $AWK '{printf "%.19s : %d\n", $3, $11 }' Resulting in lines like this: MATLAB : 1
Maybe it is the \n in the format string or maybe there should be a space after the number.
I am stuck here. Can anybody help me out. :) BTW: I am using Hobbit 4.2.0 with the allinone patch.
On fim, 2008-05-29 at 13:32 -0400, michael nemeth wrote:
What does your graph def look like in hobbitgraph.cfg?
I am not there yet, because I was stuck in getting the rrd file right. Maybe I misunderstood, and the rrd file depends on the hobbitgraph module? Yes/No?
-- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
On fim, 2008-05-29 at 13:32 -0400, michael nemeth wrote:
What does your graph def look like in hobbitgraph.cfg?
It is ok, I found out. :-/
-- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
Would you mind posting what you did wrong here should someone come across the same situation and want to learn from your mistake?
On Fri, May 30, 2008 at 2:49 PM, Anna Jonna Armannsdottir <annaj at hi.is> wrote:
On fim, 2008-05-29 at 13:32 -0400, michael nemeth wrote:
What does your graph def look like in hobbitgraph.cfg?
It is ok, I found out. :-/
-- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
This is request for enhancement to display GROUP email in "info" column. Missing the display of GROUP email is causing confusion on disk alerts configuration.
Example as following
hobbit-client.cfg
HOST=dd2005.test.com DISK /export/proj1 95 99 GROUP=teamA-partition-email DISK /export/proj2 95 99 GROUP=teamA-partition-email
hobbit-alert.cfg
GROUP=teamA-partition-email MAIL teammemberA at test.com FORMAT=SMS REPEAT=12h
T.J. Yang
Keep your kids safer online with Windows Live Family Safety. http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Ref...
On mið, 2008-05-28 at 15:22 +0000, Anna Jonna Armannsdottir wrote:
I wonder if this has something to do with the fact that the output format from my flexlm module to Hobbit is: $AWK '{printf "%.19s : %d\n", $3, $11 }' Resulting in lines like this: MATLAB : 1
Maybe I found out the reason for this. The source says: head ./hobbitd/rrd/do_ncv.c /*----------------------------------------------------------------------------*/ /* Hobbit RRD handler module. */ /* */ /* This module handles any message with data in the form */ /* NAME: VALUE */ /* */ /* Copyright (C) 2004-2006 Henrik Storner <henrik at hswn.dk> */ /* */ /* This program is released under the GNU General Public License (GPL), */ /* version 2. See the file "COPYING" for details. */
So it seems that there should not be any space between the name string and the colon. Like so: "%.19s: %d\n"
-- Kær kveðja, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix Kerfisstjórn, Reiknistofnun HÍ %& Q: Why is top posting bad?
participants (10)
-
annaj@hi.is
-
dan.mcdonald@austinenergy.com
-
david.peters@dpi.nsw.gov.au
-
geoff@hallford.ca
-
josh@imaginenetworksllc.com
-
magnus@carlebjork.se
-
massimo.morsiani@gilbarco.com
-
michael.nemeth@lmco.com
-
Padraig.Lennon@pioneerinvestments.com
-
tj_yang@hotmail.com