Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
The script checks if the processes of I/CAD (Intergraphs Computer Aided Dispatch, sold by Hexagon Safety & Infrastructure) started by ISM Intergraph Interface Service Manager) currently have the intended state. Depending on the type of process this means a warning or critical state is reached, if the process does not run on any machine, on two machines at the same time or on the backup server.
Current Version
1.0
Last Release Date
2016-06-14
Owner
Florian Fuchs
License
GPL
Compatible With
Purpose ======= The script checks if the processes of I/CAD (Intergraphs Computer Aided Dispatch, sold by Hexagon Safety & Infrastructure) started by ISM Intergraph Interface Service Manager) currently have the intended state. Depending on the type of process this means a warning or critical state is reached, if the process does not run on any machine, on two machines at the same time or on the backup server.
Requirements ============ The server running ISM needs the NSClient++ (https://www.nsclient.org/). On the Nagios server you must have the "check_nt" plugin installed.
Installation ============ Put the check_ism script into the /usr/local/nagios/libexec directory.
Usage ===== usage: $command -H1 <host_address1> -H2 <host_address2> -s <processname> [-w {1,2,s,d,n}] [-c {1,2,s,d,n}] [-p <portnumber>] [-t <timeout in seconds>]
-H1 <host_address1> hostname or ip address of first host to check -H2 <host_address2> hostname or ip address of second host to check -s processname to check -w warn if (optional) 1 service runs only on host1 2 service runs only on host2 s service runs only on one host but not both d service runs on both hosts n service runs neither on host1 nor or host2 combination also possible, e.g. d,n -c critical if (optional) 1 service runs only on host1 2 service runs only on host2 s service runs only on one host but not both d service runs on both hosts n service runs neither on host1 nor or host2 combination also possible, e.g. d,n -p port number (optional) -t timeout in seconds (optional)
Examples:
check_ism.pl -H1 sv001 -H2 sv003 -s listen.exe (only print the state)
check_ism.pl -H1 172.27.5.1 -H2 172.27.5.2 -s patidokserver.exe -c n,d -w 1 (critical if the service is not running at all or running on both server, warn if running on server 1)
check_ism.pl -H1 sv001 -H2 sv003 -s listen.exe -w s -c n (warn if the service is only running on one server, critical if not running at all)
You must be logged in to submit a review.
To:
From: