Monitor Windows Service stats from Linux
Moderators: Developers, Moderators
Hello everybody,
This is my first post here.
I'm trying to install the windows services monitoring, and I have some problems.
The used Cacti version is 0.8.6h
I'v changed the field type into the database, and I've changed the string length into the PHP script.
The issue I have is that the "verbose query" works, it means that there is an output with the good service names, but the query is not into the poller cache, even after rebuilding it, it's like as if the query had not been added into the database, it's not into the poller_item table even after a rebuild.
And I really do not know where I have to look for to solve this problem.
I attach a screenshot in order to illustrate what I'm trying to explain.
If someone has allready had this issue, that would be great.
Thanks a lot, and thanks for all work on Cacti.
Niccos
This is my first post here.
I'm trying to install the windows services monitoring, and I have some problems.
The used Cacti version is 0.8.6h
I'v changed the field type into the database, and I've changed the string length into the PHP script.
The issue I have is that the "verbose query" works, it means that there is an output with the good service names, but the query is not into the poller cache, even after rebuilding it, it's like as if the query had not been added into the database, it's not into the poller_item table even after a rebuild.
And I really do not know where I have to look for to solve this problem.
I attach a screenshot in order to illustrate what I'm trying to explain.
If someone has allready had this issue, that would be great.
Thanks a lot, and thanks for all work on Cacti.
Niccos
- Attachments
-
- verbose_query.jpg (59.2 KiB) Viewed 18880 times
-
- graph_choice.jpg (14.39 KiB) Viewed 18881 times
-
- Posts: 13
- Joined: Fri Jun 09, 2006 10:09 am
- Location: South Carolina
-
- Posts: 13
- Joined: Fri Jun 09, 2006 10:09 am
- Location: South Carolina
It is working..
Please disregard my last post. It is working now.
Re: It is working..
Any particular thing you did to get it working? As that info may help someone else out if they run into the same issue.SteveIs4Cacti wrote:Please disregard my last post. It is working now.
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
I'm having the same problem. When I go to create graphs for a particular device, I can see all the services. I select the ones I wish to monitor and create the graphs. Even though I know they are running, the graph stays at 0. I've seen several people with this problem but no solutions. Can anyone help?
Thanks
Thanks
I have had the same problem, got it working now, and even I don't known exactly how I figured it out. See a few messages above this one. http://forums.cacti.net/viewtopic.php?p=67694#67694
I had to change the size in two substr function calls
Hope this helps.
I had to change the size in two substr function calls
Hope this helps.
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
I have the services monitoring working for most services, however I have just put some more services in to monitor and they are not working.
I had a look at the snmp walk for the services index and found that the services that I am using have massive OID numbers.
As you can see from the info bellow the OID seems ok from the SNMP walk and in the poller_item table, but the cacti log shows the OID with about 44 characters truncated of the end.
I have done the arg1 to text database fix and the win_services oid fix, mentioned earlier in the thread, which did mean that most of the services monitoring ok.
Is there a limit on the length of an OID?
Backup Exec Remote Agent for Windows Servers
From Cacti log
1 4 get servstate 52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114., output: 0
From SNMPWALK
.1.3.6.1.4.1.77.1.2.3.1.1.52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114.32.69.120.116.101.110.115.105.111.110.115
Database (poller_item) (ARG1)
/var/www/html/scripts/win_services.php win_services ###### #### 1 4 get servstate 52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114.32.69.120.116.101.110.115.105.111.110.115
Any help on this would be appreciated.
Si
Running on CactiEZ(latest version)
I had a look at the snmp walk for the services index and found that the services that I am using have massive OID numbers.
As you can see from the info bellow the OID seems ok from the SNMP walk and in the poller_item table, but the cacti log shows the OID with about 44 characters truncated of the end.
I have done the arg1 to text database fix and the win_services oid fix, mentioned earlier in the thread, which did mean that most of the services monitoring ok.
Is there a limit on the length of an OID?
Backup Exec Remote Agent for Windows Servers
From Cacti log
1 4 get servstate 52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114., output: 0
From SNMPWALK
.1.3.6.1.4.1.77.1.2.3.1.1.52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114.32.69.120.116.101.110.115.105.111.110.115
Database (poller_item) (ARG1)
/var/www/html/scripts/win_services.php win_services ###### #### 1 4 get servstate 52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114.32.69.120.116.101.110.115.105.111.110.115
Any help on this would be appreciated.
Si
Running on CactiEZ(latest version)
simonuk1 wrote:I have the services monitoring working for most services, however I have just put some more services in to monitor and they are not working.
I had a look at the snmp walk for the services index and found that the services that I am using have massive OID numbers.
As you can see from the info bellow the OID seems ok from the SNMP walk and in the poller_item table, but the cacti log shows the OID with about 44 characters truncated of the end.
I have done the arg1 to text database fix and the win_services oid fix, mentioned earlier in the thread, which did mean that most of the services monitoring ok.
Is there a limit on the length of an OID?
Backup Exec Remote Agent for Windows Servers
From Cacti log
1 4 get servstate 52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114., output: 0
From SNMPWALK
.1.3.6.1.4.1.77.1.2.3.1.1.52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114.32.69.120.116.101.110.115.105.111.110.115
Database (poller_item) (ARG1)
/var/www/html/scripts/win_services.php win_services ###### #### 1 4 get servstate 52.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110.32.68.114.105.118.101.114.32.69.120.116.101.110.115.105.111.110.115
Any help on this would be appreciated.
Si
Running on CactiEZ(latest version)
Well I havent had any feedback on this and after investigation the only thing i couldnt rule out was cactid, I have switch back to CMD.PHP and now everything is working.
So it would appear to be a problem with cactid.
Has long OID ever been reported as a bug in cactid ?
Si
time
hello cigamit,
i am trying your template since some weeks and just realize that when a service stop or start, snmp oids are not updated before 2 long minutes.
is it like that on your systems or i have bad luck ?
i have tested on win xp sp2, win2003 sp1, win 2000 sp4
thanks
i am trying your template since some weeks and just realize that when a service stop or start, snmp oids are not updated before 2 long minutes.
is it like that on your systems or i have bad luck ?
i have tested on win xp sp2, win2003 sp1, win 2000 sp4
thanks
Who is online
Users browsing this forum: No registered users and 5 guests