Scripting noob here. Any help appreciated. We are trying to graph the active calls on several MGCP gateways. The routers are only accessible via SSH with SecureID. What I had to do was create a script on the router to run the "show voice call status | include active" command every 5 mins. The results are sent to a Windows server running Cacti and TFTP. The results of the file are one of two possibilities:
XX active calls found
No active calls found
I am just simply trying to graph the active calls every 5 mins and if the file contains no number, then return 0.
Scripting question
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Fri Mar 08, 2013 5:54 pm
Re: Scripting question
Hi,
I am not sure I understood your requirement. Do you need help in scripting to parse the results file and show results in Cacti format,
or you need to set up the upload/download of data to cacti from the MGCP?
If you need to parse, that should be very simple, please provide some more info on the format and I can send you a piece of code in python that does it.
Nik
I am not sure I understood your requirement. Do you need help in scripting to parse the results file and show results in Cacti format,
or you need to set up the upload/download of data to cacti from the MGCP?
If you need to parse, that should be very simple, please provide some more info on the format and I can send you a piece of code in python that does it.
Nik
-
- Posts: 5
- Joined: Thu Mar 07, 2013 11:05 am
Re: Scripting question
I need help parsing the file so that only the number value is returned to cacti. Essentially I have a standard text file with a changing variable every 5 mins. I just want the value pulled to cacti every 5 mins and graphed.
Who is online
Users browsing this forum: No registered users and 9 guests