I'm trying to poll one of our clients Windows 2003 server which has OMSA installed. I've been looking around to see if it's actually possible to do this via the check_nt plugin which has been recompiled with the additional functions of NC_Net.
Ideally I'd like to poll openmanage sensors such as temps and RAID health via a check_nt poll but i'm not keen on opening up port 161 on the router.
So far I've only come up with an active check that sends a query as:
check_nt!WMICHECK! -H <clientserver> -l "cimv2^select name,status from CIM_Fan"
but the result comes back as:
instance of Win32_Fan
{
Name = "Cooling Device";
Status = "OK";
};
instance of Win32_Fan
{
Name = "Cooling Device";
Status = "OK";
};
instance of Win32_Fan
{
Name = "Cooling Device";
Status = "OK";
};
to which Nagios has no idea what to do with the data.
The only other way I could see this working is to have a passive check that runs on the server, I'm having a look at the samplepassive.cfg at the moment, any pointers would be greatly appreciated.
Thanks
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is the file Commands.txt
In there is a list of all commands of NC_Net.
The WMI Check was initially desighed as a ENUMERATION command
Not as a service check.
The WMICOUNTER, and WMICAT, were designed for Numbers and text respectfully.
THE WMICAT_NEW is a newer version of the WMICAT the syntex of all these commands is in the command line help of check_nc_net.c
Asside from WMI, are there perfromance COunters?
IF OMSA has a command line tool you can use runscript to access it and parse its output.
TOny (author of NC_NEt)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
some more scrips than runs with check_nt and the runscript funktion.
you just have to save the script somewhere (for example C:\Service\dell\check_dell.exe)
then write a small check_dell.bat in your runscriptdirictory that looks like this
@echo off
c:\service\dell\check_dell.exe --storage --path c:\where\is\my\omreport.exe
have fun
rudolf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
most EXE files do not need a bat wrapper, they can be called directly from RUnscript IF they can be relocated to the NC_NET script folder and still function properly. Also the "do_not_blaim_nc_net" needs to be true to enable passing the command arguments to the file.
for the runscript command relative paths using ".." are removed by NC_NEt before trying to process the command, But Absolute paths and network paths have NOT been tested.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to poll one of our clients Windows 2003 server which has OMSA installed. I've been looking around to see if it's actually possible to do this via the check_nt plugin which has been recompiled with the additional functions of NC_Net.
Ideally I'd like to poll openmanage sensors such as temps and RAID health via a check_nt poll but i'm not keen on opening up port 161 on the router.
So far I've only come up with an active check that sends a query as:
check_nt!WMICHECK! -H <clientserver> -l "cimv2^select name,status from CIM_Fan"
but the result comes back as:
instance of Win32_Fan
{
Name = "Cooling Device";
Status = "OK";
};
instance of Win32_Fan
{
Name = "Cooling Device";
Status = "OK";
};
instance of Win32_Fan
{
Name = "Cooling Device";
Status = "OK";
};
to which Nagios has no idea what to do with the data.
The only other way I could see this working is to have a passive check that runs on the server, I'm having a look at the samplepassive.cfg at the moment, any pointers would be greatly appreciated.
Thanks
Simon
There is the file Commands.txt
In there is a list of all commands of NC_Net.
The WMI Check was initially desighed as a ENUMERATION command
Not as a service check.
The WMICOUNTER, and WMICAT, were designed for Numbers and text respectfully.
THE WMICAT_NEW is a newer version of the WMICAT the syntex of all these commands is in the command line help of check_nc_net.c
Asside from WMI, are there perfromance COunters?
IF OMSA has a command line tool you can use runscript to access it and parse its output.
TOny (author of NC_NEt)
hi
i am checking my dell server by using the runscript funktion.
on this page
http://www.itefix.no/phpws/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=61
you can download a script that is polling the information from your OMSA.
otherwise you could find over here
http://www.nagiosexchange.org/cgi-bin/search.cgi?d=1&catid=25&query=dell&Go=Go
some more scrips than runs with check_nt and the runscript funktion.
you just have to save the script somewhere (for example C:\Service\dell\check_dell.exe)
then write a small check_dell.bat in your runscriptdirictory that looks like this
@echo off
c:\service\dell\check_dell.exe --storage --path c:\where\is\my\omreport.exe
have fun
rudolf
most EXE files do not need a bat wrapper, they can be called directly from RUnscript IF they can be relocated to the NC_NET script folder and still function properly. Also the "do_not_blaim_nc_net" needs to be true to enable passing the command arguments to the file.
for the runscript command relative paths using ".." are removed by NC_NEt before trying to process the command, But Absolute paths and network paths have NOT been tested.