Microsoft® provides a command line interface for WMI called Windows Management Instrumentation Command-line ( WMIC) which is used by Pandora FMS to perform only query operations, with permission of the owners of those computers and only for monitoring purposes. WMI allows scripting languages (such as Windows PowerShell or VBScript) to manage personal computers and servers running Microsoft Windows®, by default, both locally and remotely. WMI stands for Windows Management Instrumentation®, a technological invention of Microsoft®, whose purpose is to manage the different operational environments of the Windows® operating system. In order to use this script we should take these tips into account: Script execution must have the following format: #!/bin/bash # pingcheck.sh if then echo "Syntax:" echo " " echo "pingcheck.sh ip_address" echo " " exit fi COUNT= $1 TIMEOUT= $2 IP= $3 ping -c $COUNT -W $TIMEOUT $IP 2 > /dev /null > /dev /null It would deliver 1 if the machine answers or 0 if it doesn't. Using the pingcheck.sh script would provide us with a simple solution. So that, if a machine doesn't answer to the first package we could fix it by modifying the script with a number of packages higher than 1, that way the result will be successful. Module status would be also critical if the icmp_checks value is higher than 1,the reason for this is that this parameter only executes “independent” pings so check results would always be wrong.Ī solution would be to use a script which executes a ping sending as many packages as we want upon its execution. If the icmp_checks parameter is set as 1 inside the Server Configuration File (Default path: /etc/pandora/pandora_nf) it will show critical value because it only considers the first try at sending the ping command. This problem appears when the first package from the ping execution doesn't reach the recipient. This entry has been kept for its historical value. Pandora FMS currently uses the fping command which is more efficient than the ping command.
0 Comments
Leave a Reply. |