|
|
| Author |
Message |
slay
Joined: 04 Oct 2006 Posts: 15
|
Posted: Sat Nov 11, 2006 9:26 pm Post subject: |
|
|
Hi
I am trying to convert this to work on linux. My cacti runs on linux but BES on windows.
So I am trying this using the check_nt / NSClient route and I am not sure I am doing it right.
I have tried this:
| Code: | | [root@host ~]# /usr/local/nagios/libexec/check_nt -H $HOST -p 1248 -v COUNTER -l '"winmgmts:\\" & strComputer & "\root\cimv2"' |
With this reply but I am not sure I am getting a proper reply:
| Code: | | strComputer = 0.00 "\root\cimv2" | ' strComputer '=0.000000 "\root\cimv2";0.000000;0.000000; |
Can anyone help me out. Let me know if I am on the right path?
Thanks....
--
|
|
| Back to top |
|
 |
Daniel.S
Joined: 02 Nov 2006 Posts: 4 Location: Sydney, Australia
|
Posted: Mon Dec 04, 2006 7:33 pm Post subject: |
|
|
| mrh wrote: | Please everyone make sure the polling account for the schedule task has administrator privileges on the target machine (or at least the same as when you're succeed on the command-line).
Thanks  |
I wish I read that earlier... I ended up figuring it out on my own.
Thanks for the script/templates.
|
|
| Back to top |
|
 |
vizzor
Joined: 11 Jan 2007 Posts: 2
|
Posted: Fri Jan 12, 2007 4:24 pm Post subject: Multiple Returns on the VB script |
|
|
I've got BES 4.1 service pack 2 and when I run the script I get the entry below.
My Message queue graph registered once then never again.
Any way to tell the vbs script to only output one line?
MessagesExpired:36 MessagesFiltered:7661 MessagesQueuedForDelivery:2075 MessagesReceived:672270 MessagesSent:36993
MessagesExpired:36 MessagesFiltered:7661 MessagesQueuedForDelivery:2075 MessagesReceived:672270 MessagesSent:36993
MessagesExpired:36 MessagesFiltered:7661 MessagesQueuedForDelivery:0 MessagesReceived:672040 MessagesSent:36987
|
|
| Back to top |
|
 |
slay
Joined: 04 Oct 2006 Posts: 15
|
Posted: Thu Feb 15, 2007 6:33 pm Post subject: |
|
|
So when calling this from linux, did you have to change the path for the data input method to the path on the windows machine? Or does it run from the linux box?
--
| Daniel.S wrote: | | mrh wrote: | Please everyone make sure the polling account for the schedule task has administrator privileges on the target machine (or at least the same as when you're succeed on the command-line).
Thanks  |
I wish I read that earlier... I ended up figuring it out on my own.
Thanks for the script/templates. |
|
|
| Back to top |
|
 |
zlynt
Joined: 08 Nov 2005 Posts: 9
|
Posted: Fri Feb 16, 2007 11:35 am Post subject: no data in script |
|
|
When I run this script against my bes, i don't get any data returned. I fired up scriptomatic and it didn't see the source Win32_PerfRawData_BlackBerryEnterpriseServer_BlackBerryServer, is there something which needs to be installed on the BES to add that field to WMI?
simon
|
|
| Back to top |
|
 |
vizzor
Joined: 11 Jan 2007 Posts: 2
|
Posted: Mon Feb 19, 2007 2:04 pm Post subject: Re: no data in script |
|
|
When I had problems seeing it in Script-o-matic I had to refresh the WMI tables. I had the problem with my clustered Exchange servers.
http://support.microsoft.com/kb/820847
| zlynt wrote: | When I run this script against my bes, i don't get any data returned. I fired up scriptomatic and it didn't see the source Win32_PerfRawData_BlackBerryEnterpriseServer_BlackBerryServer, is there something which needs to be installed on the BES to add that field to WMI?
simon |
|
|
| Back to top |
|
 |
zlynt
Joined: 08 Nov 2005 Posts: 9
|
Posted: Tue Feb 20, 2007 9:48 am Post subject: |
|
|
vizzor,
thanks for the reply. I checked out that article and refreshed the tables. The odd thing is, at the bottom of that article, it references using wbemtest to query against the wmi db. I tried that and it looks like the Win32_PerfRawData_BlackBerryEnterpriseServer_BlackBerryServer is present from wbemtest, but when i run the script both locally and remotely, i don't get any data. Also, even after refreshing the table I don't see that information in scriptomatic.
tia
|
|
| Back to top |
|
 |
generic_user
Joined: 15 Jun 2007 Posts: 25
|
Posted: Thu Jun 21, 2007 1:25 pm Post subject: Data Input Methods Missing |
|
|
Gents-
I imported the graphs and host template and I am missing the data input methods. Can someone export or tell me how to define. I am still new at this.
|
|
| Back to top |
|
 |
superdave913
Joined: 14 Jan 2005 Posts: 28
|
Posted: Wed Jul 25, 2007 10:31 pm Post subject: Linux Templates and Script |
|
|
| _JPL_ wrote: | | You can do the same thing in linux using the nsclient in windows (or similar client) by polling the perfmon values with check_nt. |
I have created a Linux compatible script/template which uses check_nt. The graphs look identical to the original poster. You will need to modify the perl script to point to the check_nt location... and change "BLACKBERRY1" to the name of your BlackBerry Enterprise Server name (not necessarily the hostname). Please try it out and let me know if it works for you.
Thanks,
Dave
| Description: |
| Script and modified templates for Blackberry Monitoring with Linux |
|
 Download |
| Filename: |
bes_linux.zip |
| Filesize: |
6.17 KB |
| Downloaded: |
278 Time(s) |
|
|
| Back to top |
|
 |
generic_user
Joined: 15 Jun 2007 Posts: 25
|
Posted: Thu Jul 26, 2007 12:56 pm Post subject: Great! |
|
|
| Great! Thanks for the assistance!
|
|
| Back to top |
|
 |
slesdog
Joined: 02 May 2007 Posts: 3
|
Posted: Fri Aug 03, 2007 2:34 pm Post subject: Re: Linux Templates and Script |
|
|
| superdave913 wrote: | | _JPL_ wrote: | | You can do the same thing in linux using the nsclient in windows (or similar client) by polling the perfmon values with check_nt. |
I have created a Linux compatible script/template which uses check_nt. The graphs look identical to the original poster. You will need to modify the perl script to point to the check_nt location... and change "BLACKBERRY1" to the name of your BlackBerry Enterprise Server name (not necessarily the hostname). Please try it out and let me know if it works for you.
Thanks,
Dave |
Cool. Works great for me with one major problem.
Things will graph fine for a while then report a value something like 880,956,823.75 for messages sent or received. It seems to be a related to the counter values going backwards.
Obviously, this is not a problem with your script but the data being provided by the BES counters.
|
|
| Back to top |
|
 |
rtyler778
Joined: 11 Jul 2008 Posts: 8
|
Posted: Fri Jul 11, 2008 2:32 pm Post subject: |
|
|
edit..
permissions issues ftl.
|
|
| Back to top |
|
 |
wozzyke
Joined: 19 Aug 2008 Posts: 1
|
Posted: Tue Aug 19, 2008 3:17 am Post subject: |
|
|
thanks alot for the great script
We are using it for a pretty long time without problems now, but we have some issues since we migrated to the last version of our BES server.
Since we migrated to version 4.1.6 the WMI does not longer return any data
Has anyone else noticed this and does anyone have a solution for this?
thanks in advance
|
|
| Back to top |
|
 |
raykain
Joined: 13 Nov 2008 Posts: 1
|
Posted: Thu Nov 13, 2008 4:17 pm Post subject: |
|
|
| I got this script working but I am getting all Zeros anything I should look into?
|
|
| Back to top |
|
 |
|