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
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 !
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
Script to monitor apcupsd on remote server
Opmanager Version 11600 on Windows 2008 $servername = psexec \\servername c:\apcupsd\bin\apcaccess status -p BCHARGE -u Write-Host 'Data:' Write-host $servername I am running the above Powershell commands from the Opmanager server to get the battery charge from a server running APCUPSD and trying to convert this into a script template. The value returned by the command is 100.0 if all is OK and want to set the threshold to alert if this drops below 50.0 but cannot get the script to work. Have tried
Mail Queue Monitoring
Hi, How can I setup mail queue monitoring using OpManager to monitor if the amount of mail in our queue (which is using postfix) is above 100? I have this script, and I want to run it on the server and have OpManager run it and create a ticket/request if the queue is above 100 #!/bin/bash queuelength=`/usr/sbin/postqueue -p | tail -n1 | awk '{print $5}'` queuecount=`echo $queuelength | grep "[0-9]"` if [ "$queuecount" == "" ]; then echo 0; exit 0; else echo ${queuelength};
Monitoring File count in a Folder using Script Monitor ( Linux and Solaris)
OpManager supports different scripts (Powershell , Shell,Perl & VBScript) for adding custom script monitors. Here is a sample shell script for monitoring number of files on a Linux and Solaris servers. For Linux server : Script Body: #!/bin/bash files=$(ls /opt/ManageEngine | wc -l) set -e echo "Message: Files" printf "Data:\n files $files" For Solaris: Script Body : #!/bin/bash files=`ls /opt/SUNWmlib/lib | wc -l` set -e echo "Message: File Count" echo "Data:\nfiles\t$files " (command ls /opt/SUNWmlib/lib
OpManager not parsing SSH output
Because I want to run a script on a UTM, linux based, I got a problem when OpManager tries to parse the SSH output, but can't fix it. Because OpManager executes: cd /tmp echo $? On the log I can't see a JAVA exception in trying to convert the "echo $?" to integer at: 0 utm-test:/tmp # Which basically is the box not breaking the line, to the OpManager terminal (works on putty simply well). So OpManager confuse itself trying to take the 0. Any recommendation? OpManager has no flexibility, it's all
need to convet shell script in xml format to run in op manager
#!/usr/bin/ksh #author : Jugvinder Punia #email id : jugvsing@in.ibm.com #Purpose : This script will add hostname in each line of "df -gt" output #WeeklyHIRISE HOSTNAME=`hostname` Weekly_HIRISE=/tmp/$HOSTNAME rm -f $Weekly_HIRISE/*HMSI*.csv if [ ! -d $Weekly_HIRISE ] then mkdir $Weekly_HIRISE fi df -gt > $Weekly_HIRISE/df.tmp grep -v Filesystem $Weekly_HIRISE/df.tmp > $Weekly_HIRISE/df.tmp1 while read line do echo `hostname` $line >> $Weekly_HIRISE/df.`hostname` done < $Weekly_HIRISE/df.tmp1
Historical traffic interface data from multiple fractioned tables
Hi, I need to build historical traffic reports on op manager. Eg. the in/out traffic for a week or a month... as you may know, data collection tables at OpManager (statsdata_daily_yyyy_mm_dd, ifhcraw_yyyy_mm_dd, etc...) are fractioned when they reach specific amount of rows, and the date range where the tables are "cutted" is variable... so I need a SQL query or procedure, or a view that can join this tables so If I need the weekly or monthly report... something that can query from all required tables.
Monitoring
I have many problems for monitoring Mikrotik (pppoe interfaces) and OLT PARK (GPON INTERFACES). Anyone can Help me
CPU MEMORY Allied Telesis 8000GS problem
Hello I have problem to monitoring Allied Telesis 8000GS how I could solve this? NO cpu no memory
Python script
Hi, I have script that work well with Nagios in my SUSE sles 11 machine. How can i use the same script and add in Opmanager -script monitor template? Below are the script that i need to put in Opmanager. Thanks #!/bin/bash if [ $# != 2 ]; then echo "Bad number of parameters. Provide warning limit and critical limit" exit 3 fi ntpfile='/etc/init.d/ntp' if [ ! -f $ntpfile ]; then echo "ntp daemon not found" exit 3 fi offset=`/etc/init.d/ntp status | awk ' { print $9} ' | sed -n 3p` if [
Error after enabling Threshold for Script Template
If I edit a Script Template I can test and save successfully. However it I attempt to Enable Threshold and then save the template I get the error: Error occured in template modification. And yes the word occurred is incorrectly spelt in the error message.
Plugin: Network Configure Management can't detect device in OpManager Database. Error when use SSH backup configuration!!!
Dear Support, Now my system have some issue, please show me way to fit it? 1) IP addresses of devices can’t be detected in NCM plug-in, even though those devices are added and defined in OpManager. ( Device : Cisco ASA5520, HP Switch) 2) I use Telnet to backup Cisco devices successfully, but there is an error when I use SSH to backup HP devices. Moreover, my group wants to move all protocols to SSH for backup process. Can you let us know meet ability of this requirement? ( Device :
Service Monitoring
Is there anyway to monitor only the services marked "Automatic" on all devices we currently have? I spoke to ManageEngine Support and they said that you can write a custom script to do that. Can you help with the script? Thanks.
Monitorize Python Script
hello, we need to monitorize a Python script, located in one directory. the result of the script is this: is there any way to monitorize this? BR
Passing Parameters to a PowerShell Script
Hello I have a PowerShell script (defined in OpManager as Script Template), as mentioned in the help I can pass the IP and the name of the device using the command line (cmd /c powershell.exe -ExecutionPolicy Unrestricted .\${FileName}.ps1 -serverIP ${IPAddress} -serverName ${DeviceName}) My script will be called by different devices, the question is, can I pass other parameters to that script. For know, I have to copy the script for each device, and in each version I am specifying different values
Windows Serive Not starting while testing
I have set up monitoring of a Windows Service on one of our test boxes. Under Device Details Monitoring is set to 1 min. Under the Windows Services the box for, Do the following action, if the service is unavailable. Is checked. The radio button for Restart this service is checked. On the server itself the service is set to automatic. When I stop the service, The status shows that it is down in Opmanager. Does Opmanager only restart the service on failure, or should it also start on Graceful shutdown.
Customed Script on URL Based monitoring
Dear All, Could please help with sample script on URL monitoring where I need to skip monitoring for 2 hours. Roshan
EXtreme networks EAPS monitoring..
Hi! Has anybody had any success of monitoring Extreme NEtwork Switches EAPS in opmanager?
Alert on FTP file age
Hello, We are looking at using opmanager to replace our existing monitoring software but I need to be able to check the file age of a file on a FTP server and if the file is greater than 30 mins to create an alert. Has anybody created a custom script to do something like this? Thanks Greg
Test email send and receive
Hi, Looking for a script to test email send and receive thru POP3. Is there anything available for OpManager?
normal script to show alert
Hi, I made a script to test with opmanager to monitor disk in freebsd. I can run this script on server console but while chekcking with opmanager got, below error. Script Result Exit Code 4 Message Monitor Disk Health :For Windows machines scripts cannot be executed remotely:Hhg-sto-100 Data Data is not found/invalid data format - Please refer the help card 'Output Format' part for assistance. my bash script: #!/usr/local/bin/bash tmpfile=`mktemp` trap "rm -f $tmpfile" INT EXIT TERM check_drive()
PowerShell Script to monitor strings in Log file
Hello, I have written a script to monitor certain strings in a Log file. The script works fine on the server itself but not via opmanager. Please help. param ( [Parameter(Position=1)] [DateTime]$StartDate = (Get-Date -Hour 0 -Minute 0 -Second 0 -Millisecond 0), [Parameter(Position=2)] [DateTime]$EndDate = (Get-Date -Hour 23 -Minute 59 -Second 59 -Millisecond 999), [Parameter(Position=3)] $FilePath = "c:\qp_data.log", [Parameter(Position=4)] $Strings = @("Getting",
SNMP trap parser -Link Down with Match criteria not working
Hi, I am creating a custom Trap parser Link down configured similar to the default link down trap parser except I was putting a match criteria. The default link down is also activated at the same time. However, my custom trap parser never gets triggered, always the default link down. The match criteria is based on the varbind 1 corresponding to the interface index and it is properly configured but I cannot figure out why it is not working. Disabling the default link down trap parser also results
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
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>
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
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
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?
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.
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
Next Page