Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jun 20, 2019 2:46 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Script Server Oddity
PostPosted: Wed Feb 15, 2012 9:46 am 
Offline
Cacti User

Joined: Tue Jan 09, 2007 8:28 am
Posts: 206
Location: London, UK
Hi

I'm experiencing some very strange results with a custom script running through the script server. When I test the script through the script server I get the following output...

Quote:
email-tg:169 monportal-tg:0 portal-tg:2 ug-auth:82 ww-auth:0 wwemail-tg:9 wwportal-tg:0


Which is the correct result. However, I get NaN's in the graphs.

I've ran the poller with logging set to debug for one poller cycle and I get the following in the log for the same script...

Quote:
02/15/2012 10:50:20 AM - CMDPHP: Poller[0] Host[191] DS[15037] SERVER: /dump/www/html/cacti/scripts/ss_bbc_myconnect_session_count.php ss_bbc_myconnect_session_count 132.185.151.137 4r0snmp 2 161 500 , output: 18


Which happens to be the same output as I get from another script server script for the same device...

Quote:
02/15/2012 10:50:20 AM - CMDPHP: Poller[0] Host[191] DS[3668] SERVER: /dump/www/html/cacti/scripts/ss_cisco_cpu_usage.php ss_cisco_cpu_usage 132.185.151.137:2:4r0snmp:::::::161:500 get fiveMin 2, output: 18


I'm also seeing some other strange entries in the logs that appear to have the reverse issue...

Quote:
02/15/2012 10:50:20 AM - CMDPHP: Poller[0] Host[191] DS[3667] SERVER: /dump/www/html/cacti/scripts/ss_cisco_cpu_usage.php ss_cisco_cpu_usage 132.185.151.137:2:4r0snmp:::::::161:500 get fiveMin 1, output: email-tg:198 monportal-tg:0 portal-tg:1 ug-auth:92 ww-auth:0 wwemail-tg:5 wwportal-tg:0


Anyone got any ideas, hints, clues as to why this might be happening? I've tried repairing the database and rebuilding the poller cache to no avail!!!


Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Sun Feb 19, 2012 11:43 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
This is which version of cacti, please?
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Sun Feb 19, 2012 11:52 am 
Offline
Cacti User

Joined: Tue Jan 09, 2007 8:28 am
Posts: 206
Location: London, UK
gandalf wrote:
This is which version of cacti, please?
R.


0.8.7g


Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Sun Feb 19, 2012 2:57 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Please upgrade to 087i for better support. But I have to say that I'm not aware of an exact fix, that matches your issue. So it would only help during debugging current code instead of old one.
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Wed Feb 22, 2012 10:43 pm 
Offline

Joined: Tue Feb 14, 2012 1:24 am
Posts: 23
I have the same issue with 0.8.7i both on Linux and Windows
The issue is intermittent and not isolated to one host. My attached picture is one of the host that is experiencing the issue now.

Sometime the issue go away if I reboot the Windows Host, and the issue is not isolated to fixed disk. Sometime it is C: Drive other time it could be D: Drive

Running the script server manually return correct value
PHP Script Server has Started - Parent is cmd
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk <ip> 29 2:161:500:1:10:monitor:::::: get used 2
16483588096
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk <ip> 29 2:161:500:1:10:monitor:::::: get total 2
36396831232
quit
PHP Script Server Shutdown request received, exiting


Attachments:
File comment: Windows Host with Script Server
cacti script server.PNG
cacti script server.PNG [ 54.3 KiB | Viewed 1745 times ]
Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Thu Feb 23, 2012 3:52 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
In case this sticks to windows hosts, the most recommended first step is to increase SNMP timeout. Windows is REALLY slow on this. I recommend 1000 ms as a start.
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Thu Feb 23, 2012 11:15 pm 
Offline

Joined: Tue Feb 14, 2012 1:24 am
Posts: 23
I have increase SNMP Timeout to 5000, but still the same problem

Any more idea?


Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Sun Feb 26, 2012 11:28 pm 
Offline

Joined: Tue Feb 14, 2012 1:24 am
Posts: 23
Another anomaly is sometime the graph will spike with unreasonable value like the graph attached


Attachments:
File comment: I do not have 1.53 TB of RAM :)
cacti script server3.PNG
cacti script server3.PNG [ 18.03 KiB | Viewed 1713 times ]
Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Fri Mar 02, 2012 11:37 pm 
Offline

Joined: Tue Feb 14, 2012 1:24 am
Posts: 23
any idea how to fix this?
Another info
The Windows Server is running inside VMWARE Workstation 7


Top
 Profile  
 
 Post subject: Re: Script Server Oddity
PostPosted: Thu Sep 13, 2012 4:09 am 
Offline

Joined: Wed Sep 12, 2012 12:14 am
Posts: 1
gandalf wrote:
In case this sticks to windows hosts, the most recommended first step is to increase SNMP timeout. Windows is REALLY slow on this. I recommend 1000 ms as a start.
R.

I had the same problem, this fixed it.

Thanks a bunch!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group