python script not populating nongreen.html
list Usa Ims
I wrote a quick python script.
cmd = "{BB} {BBDISP} \"status {NODE}.MemoryUtilization {COLOR} str({NOW}) {MSG} \"".format( BB = os.environ["BB"], BBDISP = os.environ["BBDISP"], NOW = datetime.datetime.now(), COLOR="green", MSG="Widgets loaded successfully.", NODE="server01")
I ran /usr/lib/xymon/server/bin/bbcmd so I can get to the xymon shell, I was able to verify that the BB environmental variables were there. When I ran the script, it didn't error but it didn't populate the nongreen.html as expected when a new test is executed. Any help will be appreciated.
list John Thurston
▸
On 5/27/2018 10:10 AM, usa ims via Xymon wrote:
When I ran the script, it didn't error but it didn't populate the nongreen.html as expected when a new test is executed.
What did it do?
Is the hostname in NODE defined in hosts.cfg?
If you check the 'info' page for that host, is there a test result for
the test result you delivered (MemoryUtilization)? The 'info' page can
probably be found at
/xymon-cgi/svcstatus.sh?HOST=foo.bar.com&SERVICE=info
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska