alert.chk
list Torsten Richter
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I just migrated a script I've written some time ago for Big Brother to XYmon for creating a special page for our operators. Thus I'm using the file alert.chk for evaluating the data that will be displayed on this page. Today I saw that there was a red icon for a test and when I clicked on it the page for the test itself was yellow for over 2 hours. When I grepped for the machine and test in alert.chk I saw that the color there was set to red. I doublechecked with hobbitd.chk and there the color was yellow. I'm talking about the fifth column in alert.chk and the sixth in hobbitd.chk. Maybe I should not use alert.chk for getting the data but use hobbitd.chk instead? But I was wondering why there are differences between these two files. Perhaps someone can turn me in the right direction so that I can see the light :-) Cheers Torsten - -- +---------------------------------------------------------+ | Richter IT-Consulting | | E-mail : user-c862b499d9fa@xymon.invalid | | | | Homepage: http://www.richter-it.net/ | +---------------------------------------------------------+ Download my public key from: http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) iD8DBQFKCwLF7DlmxomQk6wRAgRxAKDG3IIS4auPYDgvmKWtceJgA0VF2wCgqs32 dLDRcgMaqFsWPh2ooMl3P8w= =TE3/ -----END PGP SIGNATURE-----
list Dominique Frise
▸
Torsten Richter wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I just migrated a script I've written some time ago for Big Brother to XYmon for creating a special page for our operators. Thus I'm using the file alert.chk for evaluating the data that will be displayed on this page. Today I saw that there was a red icon for a test and when I clicked on it the page for the test itself was yellow for over 2 hours. When I grepped for the machine and test in alert.chk I saw that the color there was set to red. I doublechecked with hobbitd.chk and there the color was yellow. I'm talking about the fifth column in alert.chk and the sixth in hobbitd.chk. Maybe I should not use alert.chk for getting the data but use hobbitd.chk instead? But I was wondering why there are differences between these two files. Perhaps someone can turn me in the right direction so that I can see the light :-) Cheers Torsten - -- +---------------------------------------------------------+ | Richter IT-Consulting | | E-mail : user-c862b499d9fa@xymon.invalid | | | | Homepage: http://www.richter-it.net/ | +---------------------------------------------------------+ Download my public key from: http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) iD8DBQFKCwLF7DlmxomQk6wRAgRxAKDG3IIS4auPYDgvmKWtceJgA0VF2wCgqs32 dLDRcgMaqFsWPh2ooMl3P8w= =TE3/ -----END PGP SIGNATURE-----
Better to use "bb" command to query Xymon internal statuses. example: $ ./bb 127.0.0.1 "hobbitdboard host=admiral test=ldap" admiral|ldap|green||1239861135|1242279011|1242280811|0|0|12.34.56.78|-1|green Thu May 14 07:29:59 2009 Check bb(1) man page for more info. Dominique
list Torsten Richter
Hi Dominique, thanks for the answer. I've just changed the script an now it shows the correct status. Didn't think of using "bb ... hobbitdboard". Nevertheless I am just curious why the status is written with a different color to alert.chk. Cheers Torsten
▸
Torsten Richter wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I just migrated a script I've written some time ago for Big Brother to XYmon for creating a special page for our operators. Thus I'm using the file alert.chk for evaluating the data that will be displayed on this page. Today I saw that there was a red icon for a test and when I clicked on it the page for the test itself was yellow for over 2 hours. When I grepped for the machine and test in alert.chk I saw that the color there was set to red. I doublechecked with hobbitd.chk and there the color was yellow. I'm talking about the fifth column in alert.chk and the sixth in hobbitd.chk. Maybe I should not use alert.chk for getting the data but use hobbitd.chk instead? But I was wondering why there are differences between these two files. Perhaps someone can turn me in the right direction so that I can see the light :-) Cheers Torsten - -- +---------------------------------------------------------+ | Richter IT-Consulting | | E-mail : user-c862b499d9fa@xymon.invalid | | | | Homepage: http://www.richter-it.net/ | +---------------------------------------------------------+ Download my public key from: http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) iD8DBQFKCwLF7DlmxomQk6wRAgRxAKDG3IIS4auPYDgvmKWtceJgA0VF2wCgqs32 dLDRcgMaqFsWPh2ooMl3P8w= =TE3/ -----END PGP SIGNATURE-----
Better to use "bb" command to query Xymon internal statuses. example: $ ./bb 127.0.0.1 "hobbitdboard host=admiral test=ldap" admiral|ldap|green||1239861135|1242279011|1242280811|0|0|12.34.56.78|-1|green Thu May 14 07:29:59 2009 Check bb(1) man page for more info. Dominique