(imported topic written by SystemAdmin)
I am trying to create an analyses that will check if a server is monitored by HPOV, SCOM or not monitored. I have this spread across Windows servers, Red Hat servers, and SunOS servers. This is my analysis:
if ((name of operating system as lowercase starts with
"win2") AND (exists service
"HealthService")) THEN
"SCOM" ELSE
if ((name of operating system as lowercase starts with
"Linux Red") AND (exists
package
"HPOvCtrl" of rpm)) then
"HPOV"
if ((name of operating systems as lowercase starts with
"SunOS") AND (exist pkginfo
"HPovCtrl" of pkgdb)) then
"HPOV"
else
"Not Monitored"
I’ve also tried:
if (((name of it as lowercase starts with
"Win2" as lowercase ) of operating system) AND (exists service
"HealthService")) THEN
"SCOM" ELSE
if (((name of it as lowercase starts with
"Linux Red" as lowercase ) of operating system) AND (exists
package
"HPOvCtrl" of rpm)) THEN
"HPOV" ELSE
if (((name of it as lowercase starts with
"Linux Red" as lowercase ) of operating system) AND (exist pkginfo
"HPovCtrl" of pkgdb)) THEN
"HPOV" ELSE
"Not Monitored"
The problem comes in with the operating system qualifier, it doesn’t seem to be working. It seems to ignore that part and attempts to check rpm and pckginfo It tries to check the relevance.
Any help would be appreciated.