OPMANAGER Script Error Code 4
Hi, i have the following Error and i dont see any issues in the LOGS. Every Script is Ending with ERROR 4. Hier is the TESTSCRIPT in PS Thanks for your time and have a nice day.
how can I get OpManager alerts\events in SCOM (2019)
If we want to get alerts and events in SCOM from ManageEngine OpManager, do you have anything off the shelf or recommended api calls to get device info and or status so we can alerts in our SCOM dashboards
Script Monitor with Param()
I am trying to create a monitor to track when a cert is going to expire. Works great when using it outside OpManager but when I try and use it as a script monitor I get the following error: E:\Program Files\ManageEngine\OpManager\bin\temp\OpManager_Script_3901_1681840754938.ps1
Workflow: Remote Scripts
I have a monitor watching a log file on an IIS server for a particular error. If the error is found I want it to trigger a workflow to restart an IIS App Pool. I have the monitor working fine. The issue seems to be running the remote windows script function in Workflow. I want to use the PowerShell Command "Restart-WebAppPool <mypoolname>" but it seems to try to run from the OpManager server and not the remote host. Do I need to wrap the command in an Invoke-Command? I am currently use the following...
Script Monitor alert - curl Elasticsearch call on monitoring machine
I am quite new at all this scripting and is struggling. I keep getting following output: Exit Code: 127 Message: Script message not found/invalid script message format Raw Output: -bash: OpManager_50000003303_1612338271947.sh: command not found The script
OPmang Exchange 2016 Monitoring
Hi team, Hope you are doing well. i add exchange server 2016 but unable to see full monitoring as i go exchange tab many monitoring features showing not enabled. Please help me out to enable the these features. Snapshot is also attached for your reference.
Need to monitor last generated file on linux system
Hi guys, I would like to monitor the las generated file with below custom cli command $ls -l |tail -1 I could see return on 'test script' with last geneted file name but I don't know how it displays in dashboard as a text. Is there any way to display output with text form?
workflow debug step
Hi, I am looking if there are workflow debug procedure to check if defined workflow can be executed as planned. Please advise any solution to check the workflow step by step? Thank you! Code Chang
How to run .bat file in workflow
Hi I know someone may ask before but I did not see the answer from forum to solve my issue. I have one .bat file and want to run in OpManager workflow. Can someone tell me how to configure it? command line: ${FileName}.bat ? Script Body: direct copy .bat to here? Thank you! Code Chang
Custom scripts cannot run
I am using Opmanager build 9101, and tried to run a built-in custom script (script names "File Size") on a Linux CentOS5 server, and got error: Exit code: 4, Message File Size:Unable to connect: Connection refused: connect. I tested server SSH credential (by clicking on password link) and it was OK. Many ideas were tested but still not work. Please help me, thanks very much.
SQL Row Count Script
I was playing with this script: https://resources.manageengine.com/resources/resource/script-to-execute-sql-query-against-a-local-or-remote-mssql-db-using-sqlcmd-utility And it properly retrieve a list of rows but now I am trying to figure out how to generate a threshold off of that. Ideally, I would like to run a "Count" using the same logic. Unfortunately, using "select count (*) From xxxx" is giving me an script error in OpManager even though running the SQLCMD from the OpManager server command
how to pass usernme and password in script monitor for network device
Hi I use script monitor in OpManager to monitor network device. but I have a problem to pass username and password to script for network device login. Please advise how to pass username and password to script for the network device. python3 ${FileName}.vbs ${DeviceName} ${UserName} ${Password} In Opmanager 12.3.201 -> Credentials settings, I can't pass UserName and Password for a network device. but a server script can work without any problem. Thank you! Code Chang
create a script for polling APC UPS info via apcupsd
Hi, I need to poll information from a server running apcupsd which monitors serveral APC UPSes. It's a linux server and on the local CLI (apcupsd is running on) I get the information by apcaccess -p BCHARGE the CLI output is e.g.: "100.0 Percent" remotely from another computer I use: apcaccess -h 192.168.1.231 -p BCHARGE How do I convert this command into a OpManager script monitor? And shall I execute this script from the local server or monitored machine? Best
OPmanager; Estadísticas de Disponibilidad en Widgets
Hola amigos. Favor, serían tan gentiles de apoyarme? Pasa que la vista de “Estadísticas de disponibilidad” necesito poder visualizarla en los “Widgets” del Panel de Control pero no logro encontrarlo.
Error in script monitors
I have added scripts for monitoring my remote server (Linux server) Opmanager also installed in Linux but when I perform Test script for my Monitored machine it throws an error like "httpd_tree_physical:For Windows machines scripts cannot be executed remotely" Here nowhere windows machines involved but this error exist!!! Remote Linux server is Centos6.9,
Energy Wise MIBS
Hi. We are planning to creat some monitors for a customer, using energywise mibs from cisco. For some reason once I tried to check the mib with the mib browser I experiment some issues (Mib browser software get stuck) I wonder if you can confirm if the mib file ,( attached), has the right sintaxis in order to impor it to Opmanager and create a custom Monitor?
custom reports opmanager
Hello, How can i get a custom report with top 10 assets with more alerts, and the top 10 alerts? Thanks
$ message truncated
I am using telegram to broadcast alerts from server events/incidents/alarms etc in our support group, now $message on the notification is truncated I have done the process on your article in extending message lengths. But does not work, it seems that after a space it will not post the whole alarm eg: $message%20 output Message: Discards rate for Interface XXXXXXX is now back to normal, current value is 0%.<-- truncated after space chat rooom output: Discard <<< tahts it Is there a solution to this?
Custom script message to alert
Hello guys, How can I add custom script "Message:" to opmanager alert? It's very important for me.
oid value dec to hex and next to floating point number 32 bit
is possible make this in opmanager, i have a OID with the next value 1085738763, i need convert to HEX and next make this.
Rule Engine Failing to Add Script Monitor
Hi All, I have just created a script monitor which I would like to deploy out to all windows computers and the only way I could see to do this in bulk was to create a new rule in Rule Engine. Currently the rule has the following criteria and is set to match on all criteria: Criteria Condition Value Type contains Windows Vendor equals Microsoft The action for the rule is as follows (the name of my script monitor is 'Service Account Audit'): Action Action Properties Associate a Script Monitor Service
Custom script for opmanager
Hi, I'd like to create a custom script de check the availability of several services, like, DNS, RDP, ... based on a script because I really want to check the service response not only the windows service or tcp port. How and where can I learn how to create such scripts ? What are the languages supported ? What is the interface between the scripting language(engine) and opmanager (monitor, alert) I'd like to return the service availability and response time... I can not afford App Manager for now
Display Raw Data from Custom Script
Good morning all I have imported a custom script to OpManager 12200 to display the Up-time of each machine. The script works well and pulls back the requested data however i am actually struggling to display the information in a readable format. I would like to display the data in a dashboard but the only widget i can find to display the data is "Top N Monitored Values of a Performance Monitor" Which gives an average. Is it possible to display the raw data that is returned from the script
Process Count Script
Hi Team ; when i try to get process count of the local machine where the opmanager is installed it gives error credential not given. when i tried to give credential for a local machine it gives message "user credentials cannot be used for local connections" can i use process count monitor for local machine ? Thanks.
Script Templates for cpu,ram, disc space monitoring and allerting via e-mial if 80% threshold
As in a topic i need script for my device that would allow me automation seendning notification whene 80% treshhold on cpu, ram usage or disc space occure. I write with hope that some wise kind person ( :-) ) would help with writint adequate script. Aks me if you need more information or just help mi do it on my own. I need this for linux and windows.
Monitor current connections mysql
Hola, Tengo un servidor con OS Red Hat 6, con mysql. Como puedo monitorear el numero de conexiones concurrentes a la base de datos desde el opmanager? O como puedo crear un script que ejecute el comando "netstat -an | grep :3306 | grep ESTABLISHED | wc -l " y me gnere una alarma al sobrepasar un limite. I appreciate your help
opmanager 12100 problem
opmanger used maps.googleapis.com, but I locate in China . so when i open opmanger, It's so slower. and it try to open maps.googleapis.com, but you know it can'nt open maps.googleapis.com. so , how do i ? Thanks !
Graphing a Script Monitor
Hi, I've got the following script monitor set up for a linux server which is working fine, however I'd like to graph the output over time so I can see trend the number of connections that are seen by the monitor, I just can't seem to nail it, any chance anyone can assist please? Thanks, main () { CONNS=`netstat -an | grep 3000 | wc -l` echo "Message: Connections calculated successfully." echo "Data:" echo -e "$CONNS" exit 0 } main $*
Apply template with script condition
Hello all, I'm new in OPM and I testing in a demo product. I create a linux script whose reply me an integer like 1 or 0 if one service exists (if exists the control file). There are any possibilities to control the result of this script and, if for example, the result is 1, apply the threshold template X, and if the result is 0, apply the threshold template Y? Thanks, Jordi
OPManager and GMSA
GMSA is a service account which initially has a blank password but as you use it for a account it gets a complex password from Key Distribution Service (KDS) and keeps on renewing it momentarily which makes it highly secure. Lot of application like task scheduler or Opmanager do not allow to enter blank password to start with. To counter this for task scheduler we use Powershell like below :- To use the PowerShell, you need to define an Action (what), a Trigger(when) and a Principal(under which identity):
To add script monitoring result to custom dial
Memory utilization in default dial using cli was showing wrong data so i have added script monitoring which is showing correct value but i want to display this on custom dial,what is steps to reflect in custom dial.
Custom widget from 11.6 to 12.2
Hi to all, I've a problem with a custom widget. In detail, this widget works fine with OpManger 11.6. I upgraded OpManager to the 12.2 version a few weeks ago, but I don't know how "convert" the widget. Can you help me? Thank you in advance for your support!
Windows Batch Script
Hi. I create batch script for monitor server time offset, result from command as below. How to i adjust script for return output can used in Opmanager format (In red Color) Command w32tm /stripchart /computer:172.18.41.10 /samples:1 /dataonly Result Tracking 172.18.41.10 [172.18.41.10:123]. Collecting 1 samples.
The current time is 12/21/2016 3:55:59 PM.
15:55:59, +00.8685234s
Custom Script Templates....Questions...
Hello all, I am a recent newcomer to OpManager 11, I like the product, but am frustrated by the lack of information on some aspects. Custom Script Templates being the current problem. I am fairly competent with powershell, and have created a little script that checks some settings on a server that can't be done in OpMan. My script works fine, but I cannot seem to implement it on OpMananager. After spending many hours trying to get this working as a template in OpManager and scouring the internet
Simple script monitor
Hello i've a simple script monitor : cat /home/backup/finale.txt exit 0 I've the following result : Script Result Exit Code 0 Message Script message not found/invalid script message format - Please refer the help card 'Output Format:portion' for assistance. Inside finale.txt is writen: Data: host01 <number> host02 <number> host03 <number> The instance name and value are separated by a TAB space ( using in bash host01\t<number>) Is that normal ? Regards Franco
Exit Code 4: Error in getting output for the script (Suse linux)
Hello all, I'm trying to use custom script(Cache Memory) on monitored machine from Opmanger server Im runing this script with error as below After got that error message, I check log on Op server as image At the same time, I also checked excution directory on monitored machine and saw OpMnager file with empty content I m stucked at custom script a week, Any help would be greatly appreciated.
DFS replication backlog script
Hi All, This is a script I have hacked together to report on the DFS replication backlog numbers. A couple of things to note: The opmanager service needs to be running as an administrator and not local service account or you will get access denied. The script is configured to only show values greater than zero. Command to run the script is cscript ${FileName}.vbs ${DeviceName} As DFS replication normally always has some backlog I would not set the alerting values too low Thanks and hope you enjoy
OpManager VBscript log files
Good morning. I need to debug an OpManager VBscript script. Could you, please, let me know which log file(s) contain the information when the script is being executed by OpManager? Also, the logging nevel would need to be adjusted in the logging_parameters.conf file, correct? Thanks a lot in advance O. Urbina
Where to set the variable ${filename} required to use a script in OpManager
Hi all, I need to manipulate some OIDs and hence I'm preparing a script in powershell. I correctly expressed the executable path and name in the way PATH\${filename}.ps1 but when I test it OpManagers complains that PATH\OpManager_903_1463997551056.ps1does not exist. Moreover that string changes everytime and my understanding its value is derived on-the-fly because the variable ${filename} is not initialized. I thought filename would be taken from the name of the script. So my question is: how can
I'd like to know how to show particular file name of monitoring to the mail statement
I set a folder monitoring to the OPManager. If particular file *yyyymmdd* such as FILE20160708.csv. arises OPManager sends a mail. Finding the particular file name and sending a mail worked,but the statement is not good. I want to show the filename to the mail statement such as ----A new file FILE20160708.csv has arise in the folder------ I used a Variable {FILENAME} but it didn't work. The statement showd like ----A new file {FILENAME} has arise in the folder------ Will someone show me how to show
Next Page