hostmonitor did not execute external programs in alert prof.

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
sine
Posts: 37
Joined: Wed Feb 07, 2007 6:42 am

hostmonitor did not execute external programs in alert prof.

Post by sine »

Hi

from some days HM didn't execute external programs in an alert profile.
This alert profile worked fine for about 1 year...but now when a test status is bad the external program will not be executed.

how can i solve this issue?
thanks for your support
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Could you provide more information, please?
- What version of HostMonitor do you use?
- What Windows do you use? Service Pack?
- Are you sure alert profile is configured properly?
- Do you see any error messages in System Log (file is specified in menu "Options" -> "System Log"). You may access the System Log using menu "View" - > "System Log". HostMontor writes information about performed actions if "Record info about successful actions" and "Record info about failed actions" options are enabled in "Options" -> "System Log" tab.
- What kind of program HostMonitor should perform?
- Probably, the external program is located on some network drive and hostmonitor does not have necessary permissions?

Regards,
Max
sine
Posts: 37
Joined: Wed Feb 07, 2007 6:42 am

Post by sine »

KS-Soft Europe wrote:Could you provide more information, please?
Sure
- What version of HostMonitor do you use?
6.80
- What Windows do you use? Service Pack?
Win VISTA Business Edition
- Are you sure alert profile is configured properly?
i think that it's configured properly...it has worked fine up to the 6 of november.
- Do you see any error messages in System Log (file is specified in menu "Options" -> "System Log"). You may access the System Log using menu "View" - > "System Log". HostMontor writes information about performed actions if "Record info about successful actions" and "Record info about failed actions" options are enabled in "Options" -> "System Log" tab.
no...i can't see any arror in my syslog. the system log is configured to log only failed actions
- What kind of program HostMonitor should perform?
a simple .exe. We use them to understand the destinatary of SMS and to send it using our GSM modem.

this is the command line

Code: Select all

"C:\Program Files\HostMonitor6\esterni\sendsms.exe" %TestName% %Reply%
i have tryed also to open a command prompt and lunch the sendsms.exe program with 2 test parameters and it works fine.
- Probably, the external program is located on some network drive and hostmonitor does not have necessary permissions?
as you can se it's located in the same directory of hostmonitor.
The user running HM have the right permission to execute the program (it's a Domain admins :-) )
Regards,
Max
Thanks for your support,
Salvatore
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

sine wrote:no...i can't see any arror in my syslog. the system log is configured to log only failed actions
Could you enable "Record info about successful actions" option? Just for testing?
sine wrote:C:\Program Files\HostMonitor6\esterni\sendsms.exe" %TestName% %Reply%
Could you wrap this command into .bat file with extended logging functions? Like the following:

Code: Select all

echo C:\Program Files\HostMonitor6\esterni\sendsms.exe" %1 %2 > C:\Temp\hm_program.log
C:\Program Files\HostMonitor6\esterni\sendsms.exe" %1 %2 >> C:\Temp\hm_program.log
As you may see, this script writes echo into C:\Temp\hm_program.log and after that performs sendsms.exe. You just should save this fscript somewhere (e.g. C:\Temp\sms_script.bat) and use the following line to start it from "Execute External Program" action:

Code: Select all

C:\Temp\sms_script.bat %TestName% %Reply%
Actually, version 6.80 is too old for Vista. We have made several improvements in HostMonitor to make it work properly on Vista/Server 2008, so we recommend you upgrade to the latest version.

Regards,
Max
sine
Posts: 37
Joined: Wed Feb 07, 2007 6:42 am

Post by sine »

i have tryed with batch but nothing change (the C:\Temp\hm_program.log isn't created)

now i'm tryng to update HM to the last version...but my license isn't compliant.

I'm waithing for a reply from sales@ks-soft.net

i will update you as soon as possible.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

sine wrote:i have tryed with batch but nothing change (the C:\Temp\hm_program.log isn't created)
Hm. So, do you see a log record in system log about this action?
Also please ensure alerts are enabled. You may enable alerts using menu "Monitoring" -> "Enable alerts" or by pressing "Enable alerts" button on the toolbar.
If monitoring is started, actions are enabled, "Record info about successful actions" and "Record info about failed actions" are enabled and you still cannot find any messages in the system log you should check properties of the action: http://www.ks-soft.net/hostmon.eng/mfra ... properties

Regards,
Max
sine
Posts: 37
Joined: Wed Feb 07, 2007 6:42 am

Post by sine »

KS-Soft Europe wrote:
sine wrote:i have tryed with batch but nothing change (the C:\Temp\hm_program.log isn't created)
Hm. So, do you see a log record in system log about this action?
Also please ensure alerts are enabled. You may enable alerts using menu "Monitoring" -> "Enable alerts" or by pressing "Enable alerts" button on the toolbar.
If monitoring is started, actions are enabled, "Record info about successful actions" and "Record info about failed actions" are enabled and you still cannot find any messages in the system log you should check properties of the action: http://www.ks-soft.net/hostmon.eng/mfra ... properties

Regards,
Max
Max...thanks a lot

Now i'm sure: some one of my collegue are very stupid: the alerts are disabled.

I'm very very sorry.
Bye
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If several persons have access to HostMonitor, you may delegate different set of rights for each operator. E.g. you may provide "start/stop monitoring" permission to single person.
http://www.ks-soft.net/hostmon.eng/mfra ... #operators

Regards
Alex
Post Reply