For that matter, you could do the filtering on the percentage inside awk (but I haven't done it in the following script). By using tools appropriately, for the tasks they do well, you benefit from a simpler and more comprehensive overall strategy. SQL Monitor give you a detailed view of your SQL Server instances, and databases, right across your network, however they are hosted. To avoid this behavior and get parseable output from dh, pass the -P option.Īlso df prints a header line which again will result in nonsensical data. SCOM is good at monitoring the status of your servers. Partial lines will be caught in your filter and result in nonsensical data. There are several problems with the way you parse the output of dh which result in $usep not being numeric.ĭepending on the lengths of the filesystems, dh may split its output on several lines. Since $ALERT is always numeric, $usep has to be the culprit. The error is due to one of the arguments to -ge not being numeric.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |