how to write a custom windows script for OpManager
Where can I find examples of how to write custom Windows scripts and use them inside OPManager ? OPManager version = 11 Thanks,
Problem running powershell commands in script monitor in OM 11200
I would like to schedule a Test-MAPIConnectivity script on one of our Exchange servers but am having problems setting it up as a script monitoring template. I have found the script body that I think will work but when testing it I get the following: "The term 'Test-MapiConnectivity' is not recognized as the name of a cmdlet, fun ction, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." Is there a way of installing
Delta values not being graphed
Hello. I am working with OpManager version 10. I created a script monitor which polls counter64 values contained in an SNMP table (I can't use SNMP monitor due to device SNMP agent restrictions). Values are being polled and stored into database. I changed the saveabsolutes value to true for the monitor entry in the database but I am still viewing in the graph the counter value and not the delta value. Is there any other thing I need to modify in order to make delta values to be displayed? Thanks
Custom script to count connected wireless users
Hi, we are monitoring an Aerohive 330 and want to create a script that counts the current users connected to the device. This vendor doesn´t have this SNMP variable in their devices, but there is an OID that could give the IP list of connected clients. So we need help to build a script that polls this OID with snmp, and "count" the IPs in the response so we can get an integer number and have a graphic with the user count connected during the day. IS this possible creating a script monitor? We are
VBS Script (template) not Polling Remote Computer Correcty
I created a script to poll a server's uptime in minutes using VBS and WMI. The problem seems to be the strComputer = "." command it ends up polling the Opmanager server's uptime. If I put the device variable or the specific server name it throws errors errors like: Microsoft VBScript runtime error: Permission denied: 'GetObject' (on a w2003 machine) , (null): 0x80041003 (on W2008 or w2000). The command line is: cscript //nologo ${FileName}.vbs ${DeviceName} ${UserName} ${Password} svchost.exe
Script variables in Custom Script
I have created a custom script for the script monitoring feature in OpManager 11100 . In this script I have a variable which is set. I was under the impression that we could enter this variable in the message field so that the email alert will show the variables contents. This does not work. Is there a way to have script gathered data in the alert email?
AIX CPU Hardware Thread Contexts.xml
Description: Capture the percentage utilization of the Virtualized CPU threads. This will help if user is looking for how many threads a heavy process is using. Confirmed working on AIX 7.1 . 3/18/2014 I have updated the command to account for wrapped lines in the mpstat output. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="thresholdEnabled">false</entry> <entry key="executeFrom">1</entry> <entry key="interval">5</entry>
Cluster Shared Volume Disk Space Monitoring?
Hi, I am running OpManager 9.0. Is it possible to monitor the disk space for a Hyper-V failover cluster CSV disk (cluster Shared Volume)? If so can anyone provide further information? I already have a powershell script that will list the free space, used space and percent free but I want to be alerted in OpManager when the threshold falls below 100GB (attention), 75GB (trouble), 50GB (critical). Here is the powershell script: Import-Module FailoverClusters $objs = @() $csvs = Get-ClusterSharedVolume
Script monitoring
Hi, is it possible to retrieve the disk free space from script monitoring? If yes, is there anyone can share me some reference scripts and give me some ideas? Many thanks. Regards, Rita
Cannnot execute the scripts in OpManager
Hi, Now I am trying "Nslookup" monitoring with scripting. But I cannot execute the script. There is no error message, but it took too long yet noting displayed. But once I run the script the attention about "Windows Script Host" is pop up. Here is my script. Any Idea?? Command line - cmd /c powershell.exe -ExecutionPolicy RemoteSigned .\${FileName}.ps1 ${DeviceName} "ip address" Script body - $deviceName = $args[0] $dnsServer = $args[1] $exitcode = 1 $output = nslookup www.google.com $dnsServer
how to monitor aix errpt report??
dear sir I would like to monitor the error report (errpt) on a Aix server with OPmanager would you give me some suggestion or detail solution. thank you
SLA milestone notification are not received
Dear, We have an issue in the SLA milestone notification! I have configured customized SLA notification for response and resolution. But none of the assignees and owners receives the notification. could any body can help ,because we have issues in production environment . SLA 's are getting attached but when response time exceed to 50% ..user is not getting warning breached notification to their mails. Remedy ITSM 8.0 looking to hear from you in next future. Thanks, Rakesh
Script is not running in opmanager
Hi Team, i wrote a VB Script to connect the database and fetch the values from there . the problem is when i execute the script from my desktop it works fine and no errors but if i execute the script in opmanager im getting error like this Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. asfd C:\MANAGE~1\OPMANA~1\temp\OpManager_317_1379676097149.vbs(26, 1) ADODB.Connection: Provider is not specified and there is no designated default
Script Template sorting
Hi, I have created a script template to pull some information out but for some reason OpManager is sorting the output. I have sorted the output before writing it out into alphabetical order. Why does OPM sort and what does it sort, as you can see it is not the instance and not the value. This means that the i click on the Script Template monitor on a machine the graphs come in a very random order Script Result Exit Code 0 Message List of memory usage for each dkPosService Process Data Instance
Custom Script
Hi there I am trying to run a basic script against a linux server to get the 5 minute load average, cat /proc/loadavg | awk -F" " '{print $2}' the script runs fine and the raw data returned is the correct value but i get an error and nothing is logged in opmanager. what am i doing wrong? Exit Code 0 Message Script message not found/invalid script message format - Please refer the help card 'Output Format:portion' for assistance. Data Data is not found/invalid data format - Please refer the help
run a script at a specific time
Can you run a script at a specific time like 0:00 am?
msmq monitoring custom script
hii, im a biginner. does anybody hav the script to monitor MSMQ .either in vb or shell script. or atleast any suggestions to write the script . regards , ashwin
Script Monitor - Perl script on remote windows system to check socket status on another system
Hello, I have OpManager setup to run script monitors on a linux box that checks socket connections to a third (remote server) OpManager runs a script on System B that checks a port on System C and returns the result to opmanager. This works fine. The problem is I need to move the current linux system to windows and need to find a way to execute a perl (or other script) on System B from opmanager that checks port/socket status on System C, and get the results back to opmanager. This this possible?
Send SMS though third party gateway ...
Hi team OpManager can support third party SMS gateway through SOAP or HTTP API for sending SMS...
OpManager script for Ubuntu
I would like to create a script monitor that checks for the existence of /var/run/reboot-required. If the file exists, the monitor should be in alarm. If it does not exist, the monitor should be in the cleared state. I assume this would be a simple script. How do I do it?
Associate Custom Script to Dails
Hi I've written a couple of custom PowerShell SNMP scripts to return CPU and Memory usage on a Dell 6248 switch. How can I associate the result with the CPU Utilization and Memory Utilization dials on the device page? The return from each script is simply the % CPU utilization or % Memory Utilization Thanks Al.
I need to monitor a log file (application) text file for specific text and act on the text if found.
Is there anything available in the base product or must I create a custom script. If custom script is there any repository that i can pull from.
Access Denied when running .bat file w/vbs script in it
Hello, I'm trying to run a .bat file that has a vbs script in it but I keep getting access denied. I can browse to that network folder (with the current user logged in to my test machine) and can run the .bat file just fine with no errors. Screenshot below. The .vbs script is a script to remove Office 2010. I'm running this from the Custom Script command in desktopcentral.
Create own warning message from log file for monitoring
Hi, I need help! There is scrip of monitoring: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="thresholdEnabled">true</entry> <entry key="executeFrom">1</entry> <entry key="interval">1</entry> <entry key="monitorName">Monitor replication cluster</entry> <entry key="commandLine">sh ${FileName}.sh /tmp/monitoring/monitor_replication_cluster.log</entry> <entry key="yaxisText">True(1)/False(0)</entry> <entry key="clrMessage"></entry>
Where can I see alarm message in the script template
Hello, Help me, please I created script template of opManager. Launched it on server. It work fine, but I want check conditions of threshold details. Where can I see alarm messages and status check conditions of threshold details??!?!
Exit code 4
Hi, I have a problem with custom scripts. After the monitoring service Opmanager is up scripts returns exit code zero and shows correct values. But after several hours after that the same scripts returns exit code 4 and stop collecting the data. This problem can be solved only by restarting the monitoring service. How have the same problem?
Custom Script OpManager
Hello Folks ; we are trying to restart server with below custom script but couldnt achived it . When we run the script with double click on the server it works. Any idea about that issue ? or any other custom scripts are aprreciated . Dim objShell, strComputer, strInput Dim strShutdown strShutdown = "shutdown -r -t 0 -f " set objShell = CreateObject("WScript.Shell") objShell.Run strShutdown
Exit Code 4: Solaris - custom script
Hello, I'm trying to get a Custom script monitor working on a Solaris box. Script Body: DBC="DB Connections" EVAL=`/home/apa/db_connect_test.sh` echo Data:'\n' echo instance'\t'value echo $DBC:'\t'$EVAL If I put this script on the Solaris box it runs with out error and outputs the following: Data: instance value DB Connections: 12 I'm running the script as the same user set in OpManager's stored credentials so, I know that the script *should* work. However, I get this error when testing the
disk usage alert script
Hello, I want to make a script to alert if a specific directory space less than 50%. Does this seem to work? #!/bin/bash DLOC="/dev/sda1" DVAL=`/bin/df -kl | /bin/grep $DLOC | /bin/sed 's/^.* \([0-9]*\)%.*$/\1/'` if [ $DVAL -gt 50 ]; then echo "Data:" echo -e "diskusage($DLOC):\t$DVAL" fi
script monitor - output format
i try to run a vbs script and add result counters in the DB. even if the script works fine when i run it directly (using the session of the user used to run the opmanager service), this script didn't work in OPManager. is there limitations when OPManager run vbs scripts ? thanks
Restore problems
Hello I use after 9400, backup can't restore,,can not find the path,Please let us know how to operate
script monitor and custom alert message
Hello support, I created a powershell script monitor. It's working fine. But I would like to have a custom alert message. I enabled all thresholds (attention/trouble/critical/rearm). My script has got the following strings: Write-Host "Message: Licenses in use: $list" But I don't see my message in the OpManager's alarm. How to use custom 'Message' for that ? Can you please provide any examples ? Help is not clear on that: Output Format: Message:This message will be used as alarm message.
Checking external mail flow - script available if wanted. Tell us how you check this!
Anyone interested in a script to check external mail is working? Components are a linux VM (Ubuntu) with mpop and msmtp installed to run the scripts on, MS Exchange 2007, a gmail account set up to forward and delete all the mails sent to it and Opmanager with a custom script and a workflow reutilising the same script. The process is: delete mail file left from last check call msmtp to send an email via our Exchange server (on our LAN) to a gmail account gmail account is configured to forward mails
Evaluating and comparing values based on OID using scripts
Hi everyone, I am looking for a way to evaluate and compare values (based on OID) using script monitors. Assume that I have a device (.1.2.3.4) which reports its expected state (.1.2.3.4.1) and current state (.1.2.3.4.2). I'd like to periodically evaluate the values of the two states and compare them to check whether the current state is expected (i.e. no problem). The way I am doing it is querying from the OpManager database in script. Is this the only way? Is there any better, easier, less flaky
OpMnager Table Alert
I need data of the table alert but not to identify correctly that type of date and time format is
integration of smsgateway with OpManager
Now, I am trying to integrate OpManger with sms gateway using gammu in term of alarm notification. But I am still confused how to integrate gammu with OpManager, how to integrate/send the alarm message using gammu? I need help to deal with it, please help. thank you.
Shell script for monitoring file existence in Linux
Attached is a simple shell script file for monitoring the existence of a file in linux. Download the XML file and go to Admin --> Script templates and import the XML file. While saving it, provide the file name as the name of the template. On the command line, provide the file name along with the full path of the file you want to monitor as an argument. For ex. sh ${FileName}.sh /root/opm_be.txt where /root/opm_be.txt is the file name along with the path and save it. If the file exists, the value
Monitor iNodes on Linux servers
Here is the script template for monitoring iNodes on Linux servers. Pravin
Need to monitor Ubiquiti Unifi wifi access points via shell script - AP runs linux and busybox (ash shell)
What we are after is the status of the ath1 or wifi0 interface which can be got via ifconfig on the device. OpManager is running on windows. Not sure where to start but it sounds like we want to run the ifconfig on the device and parse the output for "up" appearing close to/within one line of "ath0" An idea of how to do this will give me clues to look at other stats from the device eg with the athstats command which gives detailed packet stats for the wifi interface. Output of ifconfig below
Issue Using Perl for Windows and Custom Script Templates
I have an issue where I have OpManager installed on a Windows 2003 server and am trying to use Perl to write a custom script template. The issue I have is that whenever I try to use a "foreach" loop, the script just hangs and eventually times out. The script runs fine when ran manually. It only fails when ran through OpManager. Has anyone else seen this issue? If so, did you get it resolved? Thanks!
Next Page